-
Notifications
You must be signed in to change notification settings - Fork 4
[DT-1329] Enable RAS in production #3039
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
Conversation
88d0148
to
a423e38
Compare
}) | ||
}) | ||
|
||
describe('Test environment-disabled cases', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RAS is enabled in all environments, so these tests no longer make sense.
mount(<ResearcherStatus user={userWithCard} pageProps={pageProps} />) | ||
cy.contains('Researcher Status') | ||
cy.contains('eRA Commons Account') | ||
cy.contains('RAS Account') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Profile page will always point to RAS account
import StackdriverReporter from 'src/libs/stackdriverReporter' | ||
import { Config } from 'src/libs/config' | ||
import { MemoryRouter, Route } from 'react-router-dom' | ||
import { MemoryRouter, Route, Router } from 'react-router-dom' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Router should be imported from react-router-dom
in v5
@@ -96,7 +96,8 @@ export default function ERACommons(props) { | |||
window.location.href = await AuthenticateNIH.getECMProviderAuthUrl(origin, redirectTo) | |||
} | |||
catch (error) { | |||
const errorMessage = 'Error from Authentication Provider: ' + error?.response?.data?.message + ': ' + currentUser.email | |||
const userEmail = currentUser?.email || 'unknown user' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is possible that the email is empty in tests.
list: processVoteHistoryRowData(voteHistory), | ||
sort, | ||
})) | ||
// eslint-disable-next-line react-hooks/exhaustive-deps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drive-by fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you! Looking forward to the cleanup task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
a423e38
to
d1374e4
Compare
|
Warning
DO NOT MERGE UNTIL 2025-09-29. Requires DataBiosphere/consent#2647 to be merged first.
Addresses
https://broadworkbench.atlassian.net/browse/DT-1329
Summary
Enables RAS in production. The cleanup for this code is explicitly called out in DT-2116.
Have you read Terra's Contributing Guide lately? If not, do that first.