-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RRM publications list not filtering correctly #9247
Comments
Hi @nfmohit, the IB and linked PR looks good. However, can we add some test coverage for this? Maybe add a |
@kuasha420 Good call! I've updated the test coverage to include testing for the filter. I've also bumped up the estimate accordingly. Thanks! |
Thanks @nfmohit ! IB ✅ |
QA Update
|
Hi @kelvinballoo. I just tested and I can confirm that the fix is working as expected. In your screenshot, I can see that you're testing the Could you give this a try again now that the change exists in the Thank you! |
QA Update ✅Thanks @nfmohit , indeed it was due to the testing being on develop and the fix was on main. Reviewed this on develop today after the merge and it's working as expected.
|
Bug Description
It appears that due to the change introduced here, the RRM
GET:publications
endpoint is no longer filtering the publications based on the current site URL.Reported during bug bash here.
Steps to reproduce
rrmModule
feature flag from the tester plugin.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
GET:publications
endpoint should correctly filter publications relevant to the current site only, based on the criteria mentioned in the ACs of #8791, also quoted below:Implementation Brief
includes/Modules/Reader_Revenue_Manager.php
:get_publication_filter
method:URL::permute_site_url
method invocation, instead of passing the raw URL, pass the actual URL which includes the URL schema.Test Coverage
tests/phpunit/integration/Modules/Reader_Revenue_ManagerTest.php
:test_get_publications
test case:filter
query parameter is set appropriately in the request URL.QA Brief
Steps to reproduce
section.Changelog entry
The text was updated successfully, but these errors were encountered: