HeyPublisher / heypublisher-submission-manager

HeyPublisher Wordpress Plugin
GNU General Public License v2.0
2 stars 1 forks source link

Plugin calls server `/statistics` endpoint prior to initialization #123

Open aguywithanidea opened 2 years ago

aguywithanidea commented 2 years ago

Steps to Reproduce:

  1. Start with a fresh install (or deactivate the plugin)
  2. Activate the plugin
  3. 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: