Skip to content

Conversation

@bp-cos
Copy link
Contributor

@bp-cos bp-cos commented Aug 21, 2025

  • Ticket: [eng-8505]
  • Feature flag: n/a

Purpose

To activate the GFP on the configure page, the component needs to know the external storage addon wb key.

Summary of Changes

Added tests for TTD
Added extended the addon and configured addon models
Added and refactored to models to have the Model at the end since I was getting so confused between the state and the model, etc.
Add documentation
Started a pattern of testing the action/state/selector all in one test since the action isn't viable to test in isolation. The selector is garbage in/garbage out. So lumping the action and selector tests with the state test feels like the way to go.
It also allows for testing of the loading selector and any other selectors used by the action.

Starting to really love the flow of the angular ecosystem.

@bp-cos bp-cos requested a review from futa-ikeda August 21, 2025 22:05

beforeEach(() => {
TestBed.configureTestingModule({
imports: [NgxsModule.forRoot([AddonsState])],
Copy link
Collaborator

Choose a reason for hiding this comment

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

We use standalone components, so I would prefer to use provideStore.

@bp-cos bp-cos added this pull request to the merge queue Aug 22, 2025
Merged via the queue into CenterForOpenScience:main with commit 256184a Aug 22, 2025
@bp-cos bp-cos deleted the feature/eng-8505-1 branch August 22, 2025 15:51
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