-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix(correlation): use api.get to fetch people #7024
Closed
Closed
Conversation
This file contains 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 change adds a new method to the `personsModelLogic` to allow for specifying a url to be used to retrieve people from. I've avoided overloading the existing `loadPeople` and rather added a new one, `lostPeopleFromUrl`. Currenlty this is only being used by correlations, but the intention is to extend it's usage to anywhere else that is performing drilldowns to people from, for instance, the trends aggregation.
This updates to use api.get, and also converts the returned uri from the correlation endpoint to an absolut uri, instead of just an absolute path. The `api.get` method expects either an abolute uri, or a relative path. I'd rather not use an relative path as it's not obvious what it should be relative to.
In the previous pr I'd accidentially not committed this change. For consistency I updated to use api.get instead of fetch
@EDsCODE did this in one of his PRs |
yakkomajuri
added a commit
that referenced
this pull request
Dec 13, 2021
* add special migration definition and example * types * special migrations runner * fix tests * fix tests 2 * add clickhouse runner * add temp fix for tests * wip * add special migrations api (#7448) * wip new structure * update example sourcing * Update .gitignore * yet another wip structure * code quality * cypress * test docker image build * implement resumable ops * code quality * add comments * add warning * add conditional requirements for migration * add comment on is_required * add dependency map * wip dependencies and run migration on startup * code quality * fix bugs * fix more bugs * format * types * remove api from this branch * types * types * update clickhouse script * add is_migration_in_range util * fix type * Add special migrations API * fix api * update api with new columns * fix runner * add AUTO_START_SPECIAL_MIGRATIONS env var * reset migration on start * Special migrations UI (#7054 pt. 6) (#7493) * update UI with new cols * fix UI * new UI statuses * cleanup * wip per op rollback * add refresh button * wip tests * prevent accidental status rollback * finish api tests * Update bin/tests * add utils and definition test * update example with rollback per op * wip test special migration * add first runner tests * add runner tests * add util for code paths * fix test * fix types * fix types again * cleanup * cleanup * add periodic healthcheck task tests * remove unused imports * safer row updates * fix coalescing none checks * code quality * add handling for non-staff users * Add special migrations to instance status * add docstrings * fix * fix deploys issue * update scripts * add delay * address reviews * address review comments * address review comments * address final comments * fix import error * fix tests * remove unused imports * fix tests * fix task test * remove unused return value * remove unused special migrations code from migrate_clickhouse * tweaks to support fresh deployments * make instance first user staff * fix import
paolodamico
pushed a commit
that referenced
this pull request
Dec 15, 2021
* add special migration definition and example * types * special migrations runner * fix tests * fix tests 2 * add clickhouse runner * add temp fix for tests * wip * add special migrations api (#7448) * wip new structure * update example sourcing * Update .gitignore * yet another wip structure * code quality * cypress * test docker image build * implement resumable ops * code quality * add comments * add warning * add conditional requirements for migration * add comment on is_required * add dependency map * wip dependencies and run migration on startup * code quality * fix bugs * fix more bugs * format * types * remove api from this branch * types * types * update clickhouse script * add is_migration_in_range util * fix type * Add special migrations API * fix api * update api with new columns * fix runner * add AUTO_START_SPECIAL_MIGRATIONS env var * reset migration on start * Special migrations UI (#7054 pt. 6) (#7493) * update UI with new cols * fix UI * new UI statuses * cleanup * wip per op rollback * add refresh button * wip tests * prevent accidental status rollback * finish api tests * Update bin/tests * add utils and definition test * update example with rollback per op * wip test special migration * add first runner tests * add runner tests * add util for code paths * fix test * fix types * fix types again * cleanup * cleanup * add periodic healthcheck task tests * remove unused imports * safer row updates * fix coalescing none checks * code quality * add handling for non-staff users * Add special migrations to instance status * add docstrings * fix * fix deploys issue * update scripts * add delay * address reviews * address review comments * address review comments * address final comments * fix import error * fix tests * remove unused imports * fix tests * fix task test * remove unused return value * remove unused special migrations code from migrate_clickhouse * tweaks to support fresh deployments * make instance first user staff * fix import
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
In the previous pr I'd accidentially not committed this change. For
consistency I updated to use api.get instead of fetch