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

Replace Cursor#observeChanges calls with MongoDB change streams #1003

Closed
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
cc3de07
:construction: progress: First attempt at leveraging change streams.
make-github-pseudonymous-again May 30, 2024
ef50c02
:construction: progress: Attempt to fix first draft.
make-github-pseudonymous-again May 30, 2024
d282c5e
:construction: progress: Second attempt.
make-github-pseudonymous-again May 30, 2024
78de8b6
:construction: progress: Sketch polling implementation.
make-github-pseudonymous-again May 31, 2024
b3ab843
:construction: progress: Squash.
make-github-pseudonymous-again Jun 4, 2024
cff8a6c
:construction: progress: First working polling implementation.
make-github-pseudonymous-again Jun 5, 2024
330766e
:construction: progress: Fix type issues.
make-github-pseudonymous-again Jun 5, 2024
21454d4
:construction: progress: Fix lint.
make-github-pseudonymous-again Jun 5, 2024
ecb159a
:construction: progress: Rewrite note on diffing.
make-github-pseudonymous-again Jul 4, 2024
95c3636
:construction: progress: Replace more observe logic with changes stre…
make-github-pseudonymous-again Jul 4, 2024
17393f5
:construction: progress: Fix initial implementation of event observers.
make-github-pseudonymous-again Jul 4, 2024
c9b7496
:construction: progress: Take initial value in consideration in observe.
make-github-pseudonymous-again Jul 5, 2024
37e3ddc
:construction: progress: Add comment on how to make events views reac…
make-github-pseudonymous-again Jul 5, 2024
26f8b5b
:woman_technologist: dx: Add missing methods for `meteor/mongo`'s `Cu…
make-github-pseudonymous-again Jul 7, 2024
8db9c00
:lock: deps: Update lock file.
make-github-pseudonymous-again Jul 7, 2024
706a675
:recycle: refactor: Depend on internals instead of `Meteor` in `api/s…
make-github-pseudonymous-again Jul 7, 2024
3325d64
:recycle: refactor: Use change streams instead in subscriptions/publi…
make-github-pseudonymous-again Jul 7, 2024
348b882
:recycle: refactor(`api/consultations`): Leverage `observeSetChanges`.
make-github-pseudonymous-again Jul 7, 2024
06c7965
:recycle: refactor(`api/createTagCollection`): Leverage `observeSetCh…
make-github-pseudonymous-again Jul 7, 2024
79d0e33
:recycle: refactor(`api/makeCachedFindOneOpt`): Leverage `observeSetC…
make-github-pseudonymous-again Jul 7, 2024
c315675
:recycle: refactor(`api/makeFilteredCollection`): Leverage `observeSe…
make-github-pseudonymous-again Jul 7, 2024
ce18d10
:recycle: refactor(`api/publication/patient/noShows`): Use `observeSe…
make-github-pseudonymous-again Jul 7, 2024
0827375
:recycle: refactor(`api/.../frequencyBySex`): Use `observeSetChanges`.
make-github-pseudonymous-again Jul 7, 2024
712233f
:recycle: refactor(`api/stats`): Leverage `observeSetChanges`.
make-github-pseudonymous-again Jul 7, 2024
1e97eba
:recycle: refactor(`publishCursors`): Extract duplicates detection lo…
make-github-pseudonymous-again Jul 8, 2024
81e3732
:woman_technologist: dx: Allow to define event emitters.
make-github-pseudonymous-again Jul 8, 2024
8204efa
:recycle: refactor(`meteor/diff-sequence`): Rename `Options` to `Diff…
make-github-pseudonymous-again Jul 8, 2024
81d8aa1
:recycle: refactor: Rewrite cursor `watch` and `observe*Changes` as e…
make-github-pseudonymous-again Jul 8, 2024
d77b152
:bicyclist: perf(observers): Narrow projections to skip ignored changes.
make-github-pseudonymous-again Jul 8, 2024
b8878d0
:adhesive_bandage: fix: Call `WatchHandle#emit('change', init)` befor…
make-github-pseudonymous-again Jul 8, 2024
bbacb30
:recycle: refactor(`watch`): Add `enqueue` typings.
make-github-pseudonymous-again Jul 8, 2024
ed9332f
:microscope: test: Increase coverage of `duplicates` and `unique`.
make-github-pseudonymous-again Jul 9, 2024
ffa8d46
:recycle: refactor(`publishCursors`): Extract input validation function.
make-github-pseudonymous-again Jul 9, 2024
6764269
:woman_technologist: dx(tests): Allow to use `undefined` in template …
make-github-pseudonymous-again Jul 10, 2024
ad438f2
:adhesive_bandage: fix(`frequencyBySex`): Correctly handle patient de…
make-github-pseudonymous-again Jul 10, 2024
4a04ee3
:microscope: test(`ui/stats/useFrequencyStats`): Increase coverage.
make-github-pseudonymous-again Jul 10, 2024
ebf1571
:woman_technologist: dx(`_test/fixtures`): Add missing `Meteor` import.
make-github-pseudonymous-again Jul 10, 2024
5e18e13
:woman_technologist: dx(`Accounts`): Remove rate limiting in all tests.
make-github-pseudonymous-again Jul 10, 2024
f1915d9
:recycle: refactor(`frequencyBySex`): Hide 0 counts to simplify testing.
make-github-pseudonymous-again Jul 10, 2024
d1884ae
:microscope: test(`useFrequencyStats`): Cover patients updates.
make-github-pseudonymous-again Jul 10, 2024
e1d48a8
:woman_technologist: dx(tests): Add `dropOwners` fixture.
make-github-pseudonymous-again Jul 10, 2024
cbb8810
:microscope: test(`useAvailability`): Cover common usage.
make-github-pseudonymous-again Jul 10, 2024
17c3b1c
:woman_technologist: dx: Keep track of collections by name in a regis…
make-github-pseudonymous-again Jul 10, 2024
57fcca1
:woman_technologist: dx(tests): Increase timeout of appointments E2E …
make-github-pseudonymous-again Jul 10, 2024
e109072
:adhesive_bandage: fix(`publishCursors`): Correct collection mapping.
make-github-pseudonymous-again Jul 10, 2024
12f68d6
:adhesive_bandage: fix: Actually use `publishCursors` in `publication…
make-github-pseudonymous-again Jul 10, 2024
387e704
:microscope: test(`publishCursors`): Increase coverage.
make-github-pseudonymous-again Jul 10, 2024
cc8f4c6
:recycle: refactor(appointments): Make patient names optional for upd…
make-github-pseudonymous-again Jul 10, 2024
263f308
:recycle: refactor(user): Update `Account.createUser{Async}` usage.
make-github-pseudonymous-again Jul 10, 2024
bdbe099
:microscope: test(`useNoShowsForPatient`): Cover common usage.
make-github-pseudonymous-again Jul 10, 2024
ce3e52b
:microscope: test: Increase coverage target to 68%.
make-github-pseudonymous-again Jul 10, 2024
3912c1f
:recycle: refactor(`publishCursors`): Extract `publishCursorObserver`.
make-github-pseudonymous-again Jul 10, 2024
cb25469
:recycle: refactor(`makeFilteredCollection`): Leverage `publishCursor…
make-github-pseudonymous-again Jul 10, 2024
3275a7f
:adhesive_bandage: fix(`useSubscription`): Set `loading = false` on s…
make-github-pseudonymous-again Jul 11, 2024
6983357
:woman_technologist: dx(`events/intersects`): Use silent error on bad…
make-github-pseudonymous-again Jul 11, 2024
54dd72a
:microscope: test(`useIntersectingEvents`): Cover common usage.
make-github-pseudonymous-again Jul 11, 2024
fea1722
:adhesive_bandage: fix(`useSubscription`): Disable stale handles call…
make-github-pseudonymous-again Jul 11, 2024
db10212
:adhesive_bandage: fix(`makeObservedQueryHook`): Move updates to `use…
make-github-pseudonymous-again Jul 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
👩‍💻 dx(tests): Increase timeout of appointments E2E tests.
  • Loading branch information
make-github-pseudonymous-again committed Jul 27, 2024
commit 57fcca142d88fbba66d45273868562c352279323
2 changes: 1 addition & 1 deletion test/app/client/patient/appointments.app-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const scheduleAppointmentForPatient = async (
console.debug('Click on Schedule');
await user.click(await findByRole('button', {name: 'Schedule'}));
console.debug('Check heading');
await findByRole('heading', {name: /^\/consultation\//});
await findByRole('heading', {name: /^\/consultation\//}, {timeout: 10_000});
console.debug('Check button');
await findByRole('button', {name: 'Cancel'});
await historyBack();
Expand Down