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

feat: add adoption tokens #63

Merged
merged 16 commits into from
Mar 22, 2025
Merged

feat: add adoption tokens #63

merged 16 commits into from
Mar 22, 2025

Conversation

alexey-yarmosh
Copy link
Member

@alexey-yarmosh alexey-yarmosh marked this pull request as draft March 19, 2025 17:57
@alexey-yarmosh alexey-yarmosh marked this pull request as ready for review March 21, 2025 17:37
.where({ uuid: probe.uuid })
.orWhere({ ip: probe.ip })
.orWhereRaw('JSON_CONTAINS(altIps, ?)', [ probe.ip ])
.first<AdoptedProbe>();

let id: string;

if (existingProbe) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that if the user matches as well, we can return here? Then we could also make adopt-by-token PUT instead of POST and allow retries from the API side.

@MartinKolarik MartinKolarik merged commit 9e4bf3d into store-all-probes Mar 22, 2025
2 of 4 checks passed
@MartinKolarik MartinKolarik deleted the adoption-token branch March 22, 2025 20:19
MartinKolarik pushed a commit that referenced this pull request Mar 23, 2025
MartinKolarik pushed a commit that referenced this pull request Mar 23, 2025
MartinKolarik pushed a commit that referenced this pull request Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants