Start with a fresh install (or deactivate the plugin)
Activate the plugin
Click on HeyPublisher menu option (the statistics page)
Expected Result:
A call to the server /statistics endpoint should not be made because the publisher OID is not yet known.
Actual Result:
The server endpoint is called but is getting treated as a request OID "statistics", which results in 404
# Logging from server:
Started GET "/api/publishers//statistics" for 127.0.0.1 at 2021-08-15 16:36:02 -0700
Processing by Api::PublishersController#show as JSON
Parameters: {"source"=>"plugin", "id"=>"statistics"}
HEADER: : Basic Og==
we have version in header: application/vnd.xm.device+json;version=3.3.0
uoid: , poid:
Steps to Reproduce:
Expected Result:
A call to the server
/statistics
endpoint should not be made because the publisher OID is not yet known.Actual Result:
The server endpoint is called but is getting treated as a request OID "statistics", which results in 404