Commit Graph

75 Commits

Author SHA1 Message Date
Alexander Nicolaysen Sørnes
0f41ee390c maintainer notifications: Only check data for accepted versions 2008-01-17 10:52:08 -05:00
Alexander Nicolaysen Sørnes
351e54255c Minor improvements to maintainer notification mails 2008-01-17 10:51:34 -05:00
Alexander Nicolaysen Sørnes
b52fb8e0e4 Fix typo in screenshot queue link 2008-01-02 21:54:24 -05:00
Alexander Nicolaysen Sørnes
79dd0cfcf8 Allow users to modify/delete their queued apps 2007-12-23 11:18:53 -05:00
Alexander Nicolaysen Sørnes
da97299eeb Use sState as parameter to objectGetItemsPerPage() 2007-12-19 21:01:18 -05:00
Alexander Nicolaysen Sørnes
8c7bd3a5e9 Add initial un-delete support 2007-12-18 20:17:06 -05:00
Alexander Nicolaysen Sørnes
176377f025 application: Rename 'queued' to 'state' 2007-12-15 12:24:33 -05:00
Alexander Nicolaysen Sørnes
aee69c1735 version: Rename 'queued' to 'state' 2007-12-15 12:23:16 -05:00
Alexander Nicolaysen Sørnes
06f693859f testData: Rename 'queued' to 'state' 2007-12-15 12:22:07 -05:00
Alexander Nicolaysen Sørnes
b3e71b0a81 maintainer: Simplify SQL code 2007-11-07 00:15:22 -05:00
Alexander Nicolaysen Sørnes
3723f34a11 maintainer: add new 'pending' queue state 2007-10-31 18:52:57 -04:00
Alexander Nicolaysen Sørnes
31bb4c0d9d maintainer: Fix SQL field in isUserMaintainer 2007-10-24 21:13:05 -04:00
Alexander Nicolaysen Sørnes
5672f2e82b Fix maintainer processing 2007-10-21 13:05:30 -04:00
Chris Morgan
fafcbce1bd Add more php5 scope keywords to class methods. 2007-09-24 21:11:49 -04:00
Alexander Nicolaysen Sørnes
c4736bf21c maintainer: Make the unit tests happy 2007-09-24 19:55:16 -04:00
Alexander Nicolaysen Sørnes
e5d1bc1bf0 Use objectManager to submit super maintainer requests 2007-09-20 21:29:57 -04:00
Alexander Nicolaysen Sørnes
3ab41b6fca Use objectManager to submit maintainer requests 2007-09-20 21:29:00 -04:00
Chris Morgan
2827e0654e Alexander Nicolaysen Sørnes <alex@thehandofagony.com>
Let objectManager handle deletion and delete notification.
2007-09-14 23:02:12 -04:00
Alexander Nicolaysen Sørnes
faf7d9bb19 Add objectGetChildren() method to classes without child objects 2007-09-08 22:29:17 +00:00
Chris Morgan
43a7ea8f1d Add object manager support to the bug class. Add menu entries for displaying the bug queue and
list of bugs and remove the existing link to admin/adminBugs.php. Remove now unused
admin/adminBugs.php. Remove now unused getNumberOfQueuedBugLinks() and getNumberOfBugLinks()
from util.php. Add object manager unit test support for the bug class.
2007-08-27 03:48:44 +00:00
Chris Morgan
fb5a695e12 Fix formatting issue with 2nd notification email where we didn't specify that the duration was
in days and we were missing a space after the day interval.
2007-08-08 23:40:33 +00:00
Chris Morgan
cc955617bb Maintainer notification improvements. Add some spaces to the notification emails, fix the url
for the test results queue and screenshots queue. Add an email for the third level where we are
removing the maintainership for the user to explain to the user why we are removing their
maintainership. Factor out a few lines of common code.
2007-08-05 17:34:42 +00:00
Chris Morgan
6119246b51 Replace direct mysql_xxx() calls with query_xxx() calls. Replace calls to mysql_insert_id()
with calls specific to the appdb or bugzilla database. Fixes a bug where a call to
mysql_insert_id() can potentially retrieve an id from either the bugzilla or appdb database,
depending on whichever database was last opened by mysql_connect().
2007-08-03 23:27:25 +00:00
WineHQ
3d1d86cdd8 Authors: Alexander Nicolaysen Sørnes <alex@thehandofagony.com>, Chris Morgan <cmorgan@alum.wpi.edu>
Clean up some html in maintainer notification emails, add information about who the email is
addressed to so there is some way to see who the notification system is notifying.
2007-08-01 02:19:33 +00:00
Chris Morgan
0e3472e1bf objectGetHeader() should return a TableRow instance as this is closer to what the information
represents and is a much more useful form.
2007-07-31 01:51:40 +00:00
Alexander Nicolaysen Sørnes
f37fa6e42f Speedup maintainer::objectGetEntries and maintainer::objectGetEntriesCount. Use UNION for sql
statements and multipage controls
2007-07-26 14:42:21 +00:00
Alexander Nicolaysen Sørnes
0b979fee68 Add return value to maintainer::delete() 2007-07-24 21:52:55 +00:00
Chris Morgan
2652e68d01 Programmatic table support. Enhances several tables with highlightable and clickable rows and
cleans up the existing table row highlight and click code.
2007-07-23 19:56:43 +00:00
Chris Morgan
f08ae29f58 Split maintainer::notifyMaintainerOfQueuedData() into two parts.
maintainer::fetchNotificationUpdate() that retrieves much of the email to the maintainer and
the target notification level, and maintainer::processNotificationUpdate() that acts on the
target notification level and completes and optionally sends the email to the maintainer. Add
admin/maintainerNotification.php to aid in debugging the notification system.
2007-07-21 23:49:36 +00:00
Chris Morgan
b5a41fba77 Add the long awaited 'maintainer notification' system. This system, running from the cron
cleanup scripts, will look for maintainers that have queued entries that the maintainer can
process. If the queued entries aren't processed for X days an email is sent. In X*2 days
another email is sent. After X*3 days the maintainer is stripped of their maintainership as
they aren't really maintaining the application anyway. The hope is that this system lets
maintainers know that they have pending queued entries to process to reduce the pressure on the
appdb admins to handled hundreds of queued entries.
2007-07-20 22:24:37 +00:00
Chris Morgan
62bfb16016 Make objectGetTableRow() return a TableRow class instance. Added accessors to set the
appropriate parameters in the TableRow class. Removed some unused parameters from the TableRow
class.
2007-07-02 00:35:17 +00:00
Alexander Nicolaysen Sørnes
cd198f44d7 Replace objectOutputTableRow() with objectGetTableRow(). Redesign the table output mechanism so
that we fetch a table row from a class instead of letting the class display it. Move adding of
edit/delete links from the classes to the objectManager. Fix a hole in the distribution class
where an uninitialized variable could have been used in the constructor.
2007-06-14 00:50:35 +00:00
Alexander Nicolaysen Sørnes
f7b24fab9a Object constructors shouldn't require an id if passed a $oRow object. Gets rid of
objectGetInstanceFromRow() since we can pass the row into the constructor instead.
2007-06-10 18:51:33 +00:00
Alexander Nicolaysen Sørnes
f4b7f2bd04 Don't display supermaintainers twice on maintainer processing screen. When printing the list of
non-super maintainers, only print the entry if the user is not a super maintainer
2007-05-13 16:54:33 +00:00
Alexander Nicolaysen Sørnes
11ecfa230b Add allowAnonymousSubmissions(). objectManager checks the return value of this new function and
exists with an error during certain actions if the user is not logged in and the function returns
false
2007-04-29 23:00:01 +00:00
Alexander Nicolaysen Sørnes
59d97b676d Display user name in the maintainer approval form 2007-04-21 18:23:11 +00:00
Alexander Nicolaysen Sørnes
b584fe1df7 Fix maintainer listing for versions. getMaintainersForAppIdVersionId() did not check that
additional entries had a superMaintainer = 1 so a maintainer of one version would be listed
as the maintainer for all versions of the application. Correct that issue and update the
unit test.
2007-04-16 23:19:44 +00:00
Alexander Nicolaysen Sørnes
169d7ca493 Use objectMakeUrl()/Link() in more places 2007-04-08 23:04:31 +00:00
Alexander Nicolaysen Sørnes
6b9abce52c Avoid overlapping maintainer entries. When a user becomes a super maintainer of an
application remove all of their maintainer entries for the application versions. Update unit
tests to test maintainter overlapping.
2007-04-01 00:08:12 +00:00
Alexander Nicolaysen Sørnes
a93bcb6ffe maintainer::deleteMaintainersForVersion() should properly return $hResult 2007-03-25 20:29:58 +00:00
Alexander Nicolaysen Sørnes
b57a9f516c Add links to maintainer::objectOutputTableRow() 2007-03-25 03:54:07 +00:00
Alexander Nicolaysen Sørnes
c545581571 objectManager, add rejection support. Add support in objectManager for handling rejected
data.
2007-03-24 18:30:16 +00:00
Alexander Nicolaysen Sørnes
ed7026be6e Let objectManager output table headers. A class returns an array of header cells and then
the objectManager adds an edit column if appropriate.
2007-03-17 21:04:43 +00:00
Alexander Nicolaysen Sørnes
75e6320a51 Show links in maintainer processing form 2007-03-17 19:39:29 +00:00
Alexander Nicolaysen Sørnes
4d5b566a78 Fix maintainer::objectGetEntries(). Remove UNION SELECT and properly check for application
queue status for un-queued maintainers
2007-03-17 00:51:20 +00:00
Alexander Nicolaysen Sørnes
641e1c32f6 Test objectGetEntries() in the objectManager tests 2007-03-17 00:50:10 +00:00
Alexander Nicolaysen Sørnes
9ef6268fa6 Let objectManager label the edit link in objectOutputTableRow() because the edit link text
depends on the queue state
2007-03-13 21:08:39 +00:00
WineHQ
43ac9708ca Authors: Alexander Nicolaysen Sørnes <alex@thehandofagony.com>, Chris Morgan <cmorgan@alum.wpi.edu>
Fix queued maintainer sql with missing join causing millions of rows to be generated by a
relatively simple sql statement
2007-03-11 20:39:02 +00:00
Alexander Nicolaysen Sørnes
f12a5ded10 Include supermaintainers in getMaintainersForAppIdVersionId() 2007-03-10 03:35:06 +00:00
Alexander Nicolaysen Sørnes
bf7daaa789 Let ObjectManager handle maintainer requests 2007-03-04 23:22:57 +00:00