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

Open
wants to merge 1 commit into
base: feat/otter-training
Choose a base branch
from

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 d544e8d. 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
"options": {
"script": "extract"
},
"inputs": [
Copy link
Contributor

Choose a reason for hiding this comment

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

The following file seems missing {projectRoot}/openapitools.json
(if not already part of source)

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