-
-
Notifications
You must be signed in to change notification settings - Fork 386
perf(10749): move tasks_by_contact view to offline-only design document #10776
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
Merged
witash
merged 18 commits into
medic:master
from
sh1vam31:10749-move-tasks-by-contact-to-offline-clients
Apr 16, 2026
Merged
Changes from 5 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
67e737e
perf(10749): move tasks_by_contact view to offline-only design document
sh1vam31 f1d1dc2
feat(api): whitelist new offline tasks design document
sh1vam31 bbd8b62
fix(api): restore missing constant and fix lint errors in authorizati…
sh1vam31 2e9ced3
Merge branch 'master' into 10749-move-tasks-by-contact-to-offline-cli…
sh1vam31 bdc21d4
Merge branch 'master' into 10749-move-tasks-by-contact-to-offline-cli…
sh1vam31 052c692
revert: remove unnecessary authorization changes for offline ddoc
sh1vam31 bd175bd
Merge branch 'master' into 10749-move-tasks-by-contact-to-offline-cli…
sh1vam31 5d3ed0f
test: stabilize flaky Import Records JSON test by allowing api reload
sh1vam31 bb38b2d
test: include medic-offline-tasks in local only docs assertion
sh1vam31 9fa26b2
Merge branch 'master' into 10749-move-tasks-by-contact-to-offline-cli…
sh1vam31 eddcd45
test: ignore flaky nouveau doc_count variations in monitoring checks
sh1vam31 3dbf503
chore: retry famously flaky message duplicates test
sh1vam31 fbd124c
chore: remove unrelated changes in integration tests as requested
sh1vam31 b9f87cb
fix(tests): add request retry logic and clean up unrelated changes
sh1vam31 72cb37c
fix(tests): resolve linting errors in request retry logs
sh1vam31 e332890
Merge branch 'master' into 10749-move-tasks-by-contact-to-offline-cli…
sh1vam31 a8d18d2
chore: revert request retry logic as per maintainer feedback
sh1vam31 cf08e7e
Merge branch 'master' into 10749-move-tasks-by-contact-to-offline-cli…
sh1vam31 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
webapp/src/js/bootstrapper/offline-ddocs/medic-offline-tasks/index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| const tasksByContact = require('./tasks_by_contact'); | ||
|
|
||
| const packageView = ({ map }) => ({ map: map.toString() }); | ||
|
|
||
| module.exports = { | ||
| _id: '_design/medic-offline-tasks', | ||
| views: { | ||
| tasks_by_contact: packageView(tasksByContact), | ||
| } | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
I don't think this change is necessarry? This list is of documents on the server side that will be replicated to offline clients...but MEDIC_OFFLINE_TASKS_DDOC doesn't exist on the server at all; we don't need to add
medic-offline-freetexthere so also shouldn't formedic-offline-tasks