-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update push activity and push details views to query _PushStatus #378
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
Conversation
_PushStatus class in Parse Server can be queried directly when using the master key. This allows us some basic functionality of viewing push history and statuses.
By analyzing the blame information on this pull request, we identified @drew-gross, @gavrix and @durunvo to be potential reviewers. |
|
||
if (features.push && features.push.storedPushData) { | ||
if (features.push && parseServerVersion >= '2.2.8') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are trying to avoid inspecting the server version directly, and instead adding info to the serverInfo
endpoint in Parse Server to let the dashboard know that new features are available. Could you do that instead?
This particular check would also start to fail once we get to 2.10.0
or etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. I'll change back to features.push.storedPushData
and submit a PR to Parse Server to update that value.
And, yeah, version string comparison 😞
Wow this looks awesome! Just a few suggestions then we can merge this. We are going to do a new release of Parse Server soon so any changes that need to be made there will be able to go out quickly. |
… enabling push activity
…eck if query is set
@JeremyPlease updated the pull request. |
It's assumed that when push is available, the pushHandler is used and data is saved in _PushStatus. This allows Parse Dashboard push history to be enabled: parse-community/parse-dashboard#378
Thanks, @drew-gross! Everything should be good to go with this PR and the referenced PR in Parse Server. |
…1923) It's assumed that when push is available, the pushHandler is used and data is saved in _PushStatus. This allows Parse Dashboard push history to be enabled: parse-community/parse-dashboard#378
Great. We can get this into a release shortly after the next Parse Server version. |
@drew-gross I saw the recent release of a new Parse Server version. Any schedule/plan for the next release of Parse Dashboard? Thanks! |
Want to review #390? Then I can do a release. |
After update at last version (Parse dashboard and Parse server) Past Pushes in the dash infinite load and don't show nothing... have i to set something in the server? |
@MattiaConfalonieri everything works as expected for me (screenshot). Two questions for you:
|
@JeremyPlease thanks for reply and sorry if i am so newbie here log error on the dash page
|
Any idea? how i can solve the problem? |
Originally Parse Dashboard used some custom endpoints to Parse for fetching push notifications and statuses. Now, the "_PushStatus" class in Parse Server can be queried directly when using the master key. From what I can tell, this has been available since Parse Server v2.2.8.
There's still a lot of stale/unused code regarding push notifications (experiments, audiences, push opens, scheduled pushes, etc.). I'm not sure what (if any) of those features will eventually be implemented, so I kept most of that code untouched.
This pull request gives the basic functionality of:
One thing to note is that Parse Server has a "source" of "rest" for all push notifications right now. So, all push notifications in the dashboard will have a "type" of "api" in the list view. Parse Server will need some updates to accept the "source" as part of
Parse.Push.send(...)
.Please try this out with your Parse Server apps and let me know if you have any problems, suggestions, comments, or feedback. Thanks!