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

feat: otter sdk training - how to use the otter sdk #2493

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

sdo-1A
Copy link
Contributor

@sdo-1A sdo-1A commented Nov 20, 2024

Proposed change

How to use the Otter SDK step
The goal is for the user to create a fetch client and use the pet API to display the results in the UI

Related issues

- No issue associated -

@sdo-1A sdo-1A requested a review from a team as a code owner November 20, 2024 15:06
@sdo-1A sdo-1A force-pushed the feat/training-sdk-how-to-use branch from 07f2aaf to fa63274 Compare November 20, 2024 15:42
Copy link

nx-cloud bot commented Nov 20, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit f6b4b49. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Comment on lines 15 to 30
const localStorageStates: Record<string, Serializer<any>>[] = [/* Store to register in local storage */];
const storageSync = new StorageSync({
keys: localStorageStates, rehydrate: true
});

const rootReducers = {};

const metaReducers = [storageSync.localStorageSync()];
const runtimeChecks: Partial<RuntimeChecks> = {
strictActionImmutability: false,
strictActionSerializability: false,
strictActionTypeUniqueness: !environment.production,
strictActionWithinNgZone: !environment.production,
strictStateImmutability: !environment.production,
strictStateSerializability: false
};
Copy link
Contributor

Choose a reason for hiding this comment

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

we should remove all the @ngrx stuff, it's adding a lot of noise and is not the relevant for the sdk training

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I cleaned up the app.config.ts file, but I left the @ngrx dependencies in the package.json files since some are peer dependencies for other packages. What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

we are already installing using --legacy-peer-deps so I don't think the warnings will matter
there is no reason for @ngrx to be used in the training so we can safely remove the dependency

@sdo-1A sdo-1A force-pushed the feat/training-sdk-how-to-use branch from fa63274 to 97cfa4c Compare November 21, 2024 14:52
@sdo-1A sdo-1A force-pushed the feat/training-sdk-how-to-use branch from 97cfa4c to b46170a Compare November 22, 2024 11:33
@sdo-1A sdo-1A force-pushed the feat/training-sdk-how-to-use branch from b46170a to d544e8d Compare November 22, 2024 13:52
@sdo-1A sdo-1A force-pushed the feat/training-sdk-how-to-use branch from d544e8d to 95a2a2d Compare November 25, 2024 13:25
@sdo-1A sdo-1A force-pushed the feat/training-sdk-how-to-use branch 2 times, most recently from 886642d to 42b6554 Compare November 25, 2024 13:43
@sdo-1A sdo-1A force-pushed the feat/training-sdk-how-to-use branch from 42b6554 to f6b4b49 Compare November 25, 2024 13:45
Comment on lines +12 to +14
/** Title of the application */
public title = 'tutorial-app';

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/** Title of the application */
public title = 'tutorial-app';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The title variable is currently being used in the test file app.component.spec.ts, we can update this test file eventually or remove them for the case of this training (but in a separate PR)

Copy link
Contributor

Choose a reason for hiding this comment

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

we are not running the test and if we are it will fail :)
but yes we can do it in another PR

Comment on lines +12 to +14
/** Title of the application */
public title = 'tutorial-app';

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/** Title of the application */
public title = 'tutorial-app';

@sdo-1A sdo-1A merged commit 7020c59 into feat/otter-training Nov 25, 2024
2 checks passed
@sdo-1A sdo-1A deleted the feat/training-sdk-how-to-use branch November 25, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants