Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Store the default push actions in a more efficient manner #1923
+50
−11
Conversation
erikjohnston
assigned
NegativeMjark
Feb 16, 2017
| + | ||
| + | ||
| +def _serialize_action(actions, is_highlight): | ||
| + """Custom serializer for actions. This allows us to "compress" common actions |
erikjohnston
added some commits
Feb 14, 2017
| + """Custom serializer for actions. This allows us to "compress" common actions. | ||
| + | ||
| + We use the fact that most users have the same actions for notifs (and for | ||
| + highlights). We replaces these default actions with the emtpy string. |
NegativeMjark
Feb 16, 2017
Contributor
"replaces", "emtpy"
Maybe something more along the lines of "We store these default actions as the empty string rather than the full JSON. Since the empty string isn't valid JSON there is no risk of this clashing with any real JSON actions."
erikjohnston
merged commit b6557f2
into
develop
Feb 16, 2017
1 of 7 checks passed
Sytest Dendron (Commit)
Build #1542 origin/erikj/push_action_compress failed in 3 min 26 sec
Details
Sytest Dendron (Merged PR)
Build started sha1 is merged.
Details
Sytest Postgres (Commit)
Build #2361 origin/erikj/push_action_compress in progress...
Details
Sytest Postgres (Merged PR)
Build started sha1 is merged.
Details
Sytest SQLite (Merged PR)
Build started sha1 is merged.
Details
continuous-integration/travis-ci/pr
The Travis CI build is in progress
Details
continuous-integration/travis-ci/push
The Travis CI build passed
Details
erikjohnston
added a commit
that referenced
this pull request
Mar 13, 2017
erikjohnston
deleted the
erikj/push_action_compress
branch
Mar 29, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
erikjohnston commentedFeb 16, 2017
No description provided.