-
Notifications
You must be signed in to change notification settings - Fork 820
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
chore: refactor to use showApiAuthAcm from API Category #12484
Conversation
@alharris-at is this PR still on hold?
|
cc83104
to
a25ec17
Compare
1f1d4bf
to
fdd580f
Compare
fdd580f
to
979ed06
Compare
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!
"@aws-amplify/graphql-auth-transformer": "^2.1.5", | ||
"@aws-amplify/graphql-transformer-core": "^1.3.1", |
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.
lovely !
@@ -1,14 +1,12 @@ | |||
import { stateManager, pathManager } from '@aws-amplify/amplify-cli-core'; | |||
import { readProjectSchema } from 'graphql-transformer-core'; | |||
import { showApiAuthAcm } from '@aws-amplify/amplify-category-api'; |
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.
what's Acm
? public apis should avoid acronyms of possible.
(for the record - it seems this has shipped already)
import { getProviderPlugins } from './get-provider-plugins'; | ||
import { getProjectConfig } from './get-project-config'; | ||
|
||
import { checkForcedUpdates as checkApiForcedUpdates } from '@aws-amplify/amplify-category-api'; |
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.
thought for future. if we ever get to ApiCategory implements ICategory
then there should be ICategory.checkForcedUpdate
with default no op impl. or some cross cutting mechanism.
Description of changes
Breaking direct dependencies from Amplify CLI on transformer packages. There's a bit more to do, but this addresses auth and one of the core packages.
Issue #, if available
N/A
Description of how you validated changes
Tests/E2E Tests
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.