Create a new page under /nf/admin/ which lists new projects. Order by _id, so that new ones are listed first. Limit 100 by default, and use the standard pagination widget so that more results can be accessed easily. Omit projects whose name starts with 'u/'. This can be done as a regexp in the query (mongo is effecient on regexps if they begin with '^' and the field is indexed)
Show these columns:
All that content can make it pretty wide, so omit the left nav on this page. If necessary to make it readable, set certain columns to certain widths, use a smaller font, make each row have 2 rows of content, etc.
Add a checkbox at the beginning of each row, and an empty <div>
underneath the table. Whenever a project is checked, add the project shortname
to the <div>
so it makes a list of all the names. Separate the shortnames by spaces. (We will use this to copy/paste to our internal deletion tool)
Diff:
created #110: [#4349] Create a new page under /nf/admin/ which lists new projects (2cp)
Related
Tickets:
#4349closed #110, see 42cc_4349 branch
The test only checks for non-authorized users. There should be a test using an admin, so the page is actually rendered.
The regex for projects starting with 'u/' doesn't work for me. I tried it at http://regexpal.com/ and in the mongo shell in an actual query. Also my statement regexps starting with ^ being fast on mongo doesn't apply either, since we're looking for negative matches. I guess it would be better to just query for the Neighborhood where name=='Users', and filter out projects with that neighborhood id.
A small feature addition: please make the project name be a link to the project's url.
created #119: [#4349] Write tests and small amendments (1cp)
Related
Tickets:
#4349closed #119, pushed changes into 42cc_4349