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

list endpoint and segment migration #2145

Merged
merged 4 commits into from
Dec 9, 2024

Conversation

bcb37
Copy link
Collaborator

@bcb37 bcb37 commented Dec 2, 2024

The return value for the /delete segment endpoint (along with the service and repository methods in its call stack) was falsely typed as Promise<Segment> . It was actually returning Promise<Segment[]>, which the front end was set up to expect. Now the typing is correct (and consistent with the swagger annotation). This pr adjusts the front end code accordingly.

@bcb37 bcb37 linked an issue Dec 2, 2024 that may be closed by this pull request
if (!segmentDoc) {
throw new Error(SERVER_ERROR.QUERY_FAILED);
}
await Promise.all(
Copy link
Collaborator

Choose a reason for hiding this comment

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

These should happen in a transaction

@bcb37 bcb37 merged commit 25fa07d into dev Dec 9, 2024
14 checks passed
@bcb37 bcb37 deleted the feature/2085-segments-redesign-backend branch December 9, 2024 14:42
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.

Backend changes for Segment redesign
2 participants