Closed (fixed)
Project:
Project Browser
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 May 2022 at 16:28 UTC
Updated:
2 Jun 2022 at 16:29 UTC
Jump to comment: Most recent
Comments
Comment #3
fjgarlin commentedComment #4
fjgarlin commentedAdded a RandomDataPlugin, which generates totally random data in the format that we expect. It ignores the filters to query projects and returns a new set of random projects, so the front-end should remain fully functional.
Note that this depends on some of the changes done in the related issue https://www.drupal.org/project/project_browser/issues/3280176, as the current front-end is tied to the Mock.
Once the related issues gets merged, we can safely merge this one too.
Comment #5
hooroomooTest fixture is 25 projects which is laid out below to be able to test a wide range of sorting/filtering options. Each fake project also has either 0, 1, 2, 3 tags (taxonomy_vocabulary_3) associated with it and different "changed" and "created" values.
12 Under Active Development (7 security covered, 5 not covered)
- 3 Actively Maintained
- 3 Minimally Maintained
- 2 Seeking New Maintainer
- 2 Seeking Co-maintainer
- 2 Unsupported
6 Maintenance Fixes Only (3 covered, 3 not covered)
- 2 Actively Maintained
- 1 Seeking New Maintainer
- 1 Unsupported
- 2 Seeking Co-maintainer
4 No Further Development (2 covered, 2 not covered)
- 1 Actively Maintained
- 1 Minimally Maintained
- 2 Unsupported
3 Obsolete ( 2 covered, 1 not covered)
- 1 Unsupported
- 2 Minimally Maintained
Comment #6
narendrarComment #7
fjgarlin commented@hooroomoo - can you see the feedback from @narendraR. I guess it's probably a copy/paste issue but I'll let you have a look in any case. I'm happy to clean it up if needed, I just don't know yet where or how that file will be used.
Comment #8
hooroomooComment #10
tim.plunkettThanks @narendraR! Working on this more
Comment #11
tim.plunkettI think all we're missing now is two more test methods: one for using the module categories, one for the advanced filtering. See the one I included for testing the pager for inspiration
Sorting should be handled in #3277260: Update and move sort criteria
Unassigning myself for now
Comment #12
hooroomooComment #13
hooroomooComment #14
hooroomooComment #15
hooroomooFound a bug while working on this with category filtering. Filed #3281252: Category filter allows duplicates. The category filtering test should be added as a part of that bug issue since it's partly broken right now and after this test fixture is in.
Comment #16
tim.plunkettAwesome, thanks @hooroomoo. Agreed on splitting that out to another issue, what we have here is good.
Comment #17
fjgarlin commentedThe code looks good and the tests are running, plus they are a great foundation for more tests!
The only thing I miss is some comment saying that it’s using the MockApi, or a line like this
$this->config('project_browser.admin_settings')->set('enabled_source', 'drupalorg_mockapi')->save(TRUE);in the test to make it more obvious.Perhaps that line could go here: https://git.drupalcode.org/project/project_browser/-/blob/0c9464a3fd141f...
Comment #18
fjgarlin commentedComment #19
hooroomooComment #20
fjgarlin commentedCode looks good and tests (including the new ones) are green. RTBC. Great work!
Comment #21
tim.plunkettRebased (multiple merge commits in here) and fixed the @see to point to a function, not a file. Will merge shortly.
Comment #22
tim.plunkettMerged!