Add tracking of WWT usage for planet parade #174
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a server-side implementation of the functionality requested in cosmicds/planet-parade#60. This primarily consists of model and endpoint updates to add in several new fields, which are:
wwt_time_reset_count
: How many times the user reset the WWT timewwt_reverse_count
: How many times the user changed whether or not time is reversedwwt_play_pause_count
: How many times the user pressed the play/pause buttonwwt_speedups
: A list of numbers which records the time rate after each time the user presses the speedup buttonwwt_slowdowns
: A list of numbers which records the time rate after each time the user presses the slowdown buttonwwt_rate_selections
: A list of numbers which records time rates selected from the "More Speed Controls" optionwwt_start_stop_times
: The initial and final times on the WWT clock recorded between each update sent to the database. This isn't any sort of interval as these times are fundamentally unrelated.Additionally, this adds an extra
created
field to each entry. This will be set once on the entry creation. Thus we have a sense of when the user first visited the app as well as the last time that their entry was updated.