EnabledSourceHandler is still messy, because it suffers from the old design that presumed that Project Browser had internal tabbing and could store all data, for all tabs, in one place.
Let's improve that:
- It should no longer be possible to send a query to the backend proxy without a source ID.
- Queries and results for each source should be cached by EnabledSourceHandler in a key-value storage specific to that source.
- It should be possible to clear storage for a single source.
Issue fork project_browser-3498560
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
phenaproximaComment #4
fjgarlin commentedThe code looks good and it reflects what we need. However, I don't see the tabs anymore (not sure this is introduced by these changes). I enabled core and contrib modules.
https://8080-project-drupalpod....gitpod.io/admin/modules/browse/drupalorg_jsonapishows contrib moduleshttps://8080-project-drupalpod....gitpod.io/admin/modules/browse/drupal_coreshows core modulesBut there are no tabs shown in the front end, at all. No JS errors, no watchdog errors.
Using the developer tools we can see that the
project-browser/data/categoriesreturns data for the two enabled plugins.The
project-browser/data/projectonly returns data for the plugin that is present in the URL.I'm going to test with 2.0.x and see if this happens ===> This also happens in 2.0.x, without this MR applied. That means there is no regression in here.
Comment #5
fjgarlin commentedComment #8
chrisfromredfinyeah boi, onward and upward