Skip to content

Conversation

@gribnoysup
Copy link
Collaborator

@gribnoysup gribnoysup commented Oct 1, 2024

This patch adds the rolling index build support to compass (only available in compass-web when logged in to Atlas)

image

@github-actions github-actions bot added the feat label Oct 1, 2024
@gribnoysup gribnoysup added the no release notes Fix or feature not for release notes label Oct 1, 2024
@gribnoysup gribnoysup marked this pull request as ready for review October 2, 2024 13:53
Comment on lines +49 to +63
function isAtlasAPIError(
err: any
): err is { error: number; errorCode: string; detail: string } {
return Boolean(err.error && err.errorCode && err.detail);
return Boolean(err && err.error && err.errorCode && err.detail);
}

function isCloudBackendError(err: any): err is {
errorCode: string;
message: string;
version: string;
status: string;
} {
return Boolean(
err && err.errorCode && err.message && err.version && err.status
);
Copy link
Collaborator

@syn-zhu syn-zhu Oct 3, 2024

Choose a reason for hiding this comment

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

What is this second one? i.e. where do you get them from

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I only saw your comment now after I merged. I'm seeing similar code here: https://github.com/10gen/mms/blob/2ee6cb60d064e6eb4d3350d073cba947f1ae26f8/client/packages/components/Access/ServiceAccounts/utils.ts#L223-L232 for example. Don't know if that's related. But I can find results for both message and detail in the codebase.

Hopefully more a question than a review comment :)

Copy link
Contributor

@lerouxb lerouxb left a comment

Choose a reason for hiding this comment

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

Approving and I'm going to merge. I'm aware that there's a delay between pressing the button and the rolling build showing up in the table, but I think it is best to try and deal with that (if at all) in a follow-up.

@lerouxb lerouxb merged commit 5b3ca4b into main Oct 4, 2024
@lerouxb lerouxb deleted the compass-8216-create-rolling-index branch October 4, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat no release notes Fix or feature not for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants