Skip to content
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

Harmonize TrackLog and ClientError #344

Merged
merged 13 commits into from
Apr 3, 2024
Merged

Conversation

jacob-xhio
Copy link
Contributor

This PR adds new fields to TrackLog and ClientError databases to consolidate the two (to the extent that it makes sense)

It also refactors the XhController endpoints for track and submitError to expect the input parameters to be posted as JSON to the request body. One note about this change, because of the current implementation of the ensureClientUsernameMatchesSession method, clientUsername still needs to be posted to the server as a param.

Finally, this server-side change refactors the ClientErrorAdminController to use a new service, the ClientErrorAdminService, to use filters provided by the client to do server-side filtering (this pattern is used in TrackLogAdminController and TrackLogAdminService).

@lbwexler
Copy link
Member

lbwexler commented Apr 2, 2024

Looks great jacob -- will be nice to have these back in line

@amcclain amcclain merged commit a373055 into develop Apr 3, 2024
4 checks passed
@amcclain amcclain deleted the harmonizeTrackLogAndClientError branch April 3, 2024 00:38
amcclain pushed a commit to xh/hoist-react that referenced this pull request Apr 3, 2024
+ Update to new APIs just merged into hoist-core (xh/hoist-core#344) for posting client error and activity tracking queries
+ Update Admin Client Error query tool to post filter params to server for DB-level querying, as was recently done with Activity Tracking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants