Skip to content

chore: remove Atlas Sign-In logic COMPASS-9595 #7150

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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

gagik
Copy link
Contributor

@gagik gagik commented Jul 29, 2025

DO NOT MERGE UNTIL FEATURE FLAG IN #7129 IS MOVED TO RELEASED

Since we're removing the signin requirement from the AI features we do not hacve any components in need of the Atlas sign-in flows. As it's also built using a pattern we have deviated from, it's best to remove it now and re-add it through a different structure later if needed.

I'm relying on tests to ensure no unintentional functionality breaks but let me know if this has unintended effects on parts of Compass or DE that depend on auth for different reasons.

gagik added 5 commits July 25, 2025 12:50
Since we're removing the signin requirement from the AI features we do not hacve any components in need of the Atlas sign-in flows. As it's also built using a pattern we have deviated from, it's best to remove it now and re-add it through a different structure later if needed.
@gagik gagik changed the base branch from main to gagik/opt-in-ai July 29, 2025 08:53
@@ -60,18 +53,6 @@ export function configureStore(
)
);

options.atlasAuthService.on('signed-in', () => {
void store.dispatch(getUserInfo());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

sanity check: this isn't necessary for data explorer-related thing is it?

Copy link
Contributor

@mabaasit mabaasit Jul 30, 2025

Choose a reason for hiding this comment

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

On cloud we are always in logged in state, plus we don't have settings feature there.

I don't think we are now listening for these events anywhere else, so probably should be safe to clean that as well.

// because oidc options overlap with atlas login used for ai feature
isAIFeatureEnabled
) {
if (isOIDCEnabled) {
Copy link
Contributor Author

@gagik gagik Jul 29, 2025

Choose a reason for hiding this comment

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

if I understand right we still have OIDC logins(?). I'm not sure if any of the removed code may have been an unintentional dependency there.

@gagik gagik marked this pull request as ready for review July 29, 2025 08:57
@gagik gagik requested a review from a team as a code owner July 29, 2025 08:57
@gagik gagik changed the title WIP chore: remove Atlas Sign-In logic COMPASS-9595 chore: remove Atlas Sign-In logic COMPASS-9595 Jul 29, 2025
@mabaasit
Copy link
Contributor

With this change, would Compass AI features work with the current atlas apis? Or does this change need api endpoint updates and backend in production?

@gagik
Copy link
Contributor Author

gagik commented Jul 30, 2025

@mabaasit Yeah, this change will need to use a different endpoint (the upcoming no-auth one @lerouxb is working on with MMS) so all of it will live in a feature branch for a while

@mabaasit
Copy link
Contributor

@mabaasit Yeah, this change will need to use a different endpoint (the upcoming no-auth one @lerouxb is working on with MMS) so all of it will live in a feature branch for a while

Great, totally missed the target part in your comment. I see that you've removed atlas-login.test.ts in another PR, can you also clean up process.env.COMPASS_E2E_SKIP_ATLAS_SIGNIN now that we removed login.

@gagik
Copy link
Contributor Author

gagik commented Aug 4, 2025

@mabaasit I rename the environment variable to be about the AI opt-in, does that sound good?

@gagik gagik changed the base branch from gagik/opt-in-ai to main August 4, 2025 08:53
@gagik gagik changed the base branch from main to gagik/opt-in-ai August 4, 2025 08:53
@gagik
Copy link
Contributor Author

gagik commented Aug 4, 2025

I added a feature flag now so we will only want to do this cleanup after we actually release the feature.

@gagik gagik marked this pull request as draft August 4, 2025 14:57
Base automatically changed from gagik/opt-in-ai to main August 11, 2025 12:26
@lerouxb
Copy link
Contributor

lerouxb commented Aug 12, 2025

We also have to wait for the new endpoints to be released to production and enabled, probably on staging and QA: https://wiki.corp.mongodb.com/spaces/MMS/pages/285087612/Config+Service+Application+Property+Admin+UI

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.

3 participants