-
Notifications
You must be signed in to change notification settings - Fork 286
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
Implement RRM findMatchedPublication()
action
#8795
Comments
IB LGTM 👍 ✅ |
QA Update
|
Hi @kelvinballoo, As we discussed during our call, the Google service API is returning only a single publication despite multiple publications. This may be due to a configuration issue in how the publication was created within the RRM console or the API needing more time to sync the data. However, this is outside the scope of this issue and is not an issue from Site Kit. You can mock the data directly in your browser console to test the behavior with multiple publications. You can copy the mock JSON data from this file and use it with the Run the following command in the browser console: googlesitekit.data.dispatch( 'modules/reader-revenue-manager' ).receiveGetPublications(mockJsonData); Replace |
@hussain-t thanks for the explanation, I just want to highlight one point.
While I realise this is an API issue, shouldn't we be flagging this with someone? The AC says we have to test with multiple publications, and that's hard to do if the API is not functioning as expected. That aside, I am going to look at this ticket and sync with @kelvinballoo when I have looked at it. |
Thanks, @wpdarren.
As mentioned in my previous comment, I'm not 100% sure if it's an API issue or a configuration issue. Please try creating a few more publications and see if they pull. |
QA Update:
|
@wpdarren, I've updated the QAB with clearer instructions. Please let me know if that's easy to follow. |
QA Update:
|
Hi @wpdarren, it seems you misunderstood the
I hope that clears your concerns. |
@hussain-t in the QAB on this ticket it mentions QA Update: ✅Verified: The modules/reader-revenue-manager data store has a findMatchedPublication() action added, that finds a matching publication from the list of available publications based on the following criteria:
|
Feature Description
The
findMatchedPublication()
action should be implemented for the Reader Revenue Manager module that finds a matching publication from the list of all publications based on the following criteria:Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
modules/reader-revenue-manager
data store should have afindMatchedPublication()
action added, that finds a matching publication from the list of available publications based on the following criteria:ONBOARDING_COMPLETE
) and return that publication.Implementation Brief
In
assets/js/module/reader-revenue-manager/datastore/publications.js
:findMatchedPublication()
that finds a matching publication with the following logic:getPublications
selector.undefined
if the publications have not been loaded yet.null
.publication.onboardingState
property is set toONBOARDING_COMPLETE
) and return that publication.Test Coverage
findMatchedPublication()
inassets/js/module/reader-revenue-manager/datastore/publications.test.js
.QA Brief
null
when there are no publications, run the following command in the browser console:Changelog entry
The text was updated successfully, but these errors were encountered: