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

chore: refactor to use showApiAuthAcm from API Category #12484

Merged
merged 1 commit into from
May 26, 2023

Conversation

alharris-at
Copy link
Contributor

@alharris-at alharris-at commented Apr 17, 2023

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

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Sorry, something went wrong.

@alharris-at alharris-at requested a review from a team as a code owner April 17, 2023 18:31
@alharris-at alharris-at changed the title chore: refactor to use showApiAuthAcm from API Category [PENDING API CATEGORY RELEASE] chore: refactor to use showApiAuthAcm from API Category Apr 17, 2023
@danielleadams
Copy link
Contributor

danielleadams commented Apr 26, 2023

@alharris-at is this PR still on hold?

@danielleadams - It is, I'm pending this merge of the API Category into the CLI #12527 - just updating some snapshots over there that were added (which pin codegen version in the snapshot).

@danielleadams danielleadams added the do-not-merge PRs that are approved and green, but should not be merged yet label Apr 26, 2023
@alharris-at alharris-at force-pushed the use-api-category-acm branch from cc83104 to a25ec17 Compare May 24, 2023 16:44
@alharris-at alharris-at reopened this May 24, 2023
@alharris-at alharris-at changed the title [PENDING API CATEGORY RELEASE] chore: refactor to use showApiAuthAcm from API Category chore: refactor to use showApiAuthAcm from API Category May 24, 2023
@alharris-at alharris-at removed the do-not-merge PRs that are approved and green, but should not be merged yet label May 24, 2023
@alharris-at alharris-at force-pushed the use-api-category-acm branch 4 times, most recently from 1f1d4bf to fdd580f Compare May 26, 2023 19:27
phani-srikar
phani-srikar previously approved these changes May 26, 2023
dpilch
dpilch previously approved these changes May 26, 2023
@alharris-at alharris-at dismissed stale reviews from dpilch and phani-srikar via 979ed06 May 26, 2023 20:42
@alharris-at alharris-at force-pushed the use-api-category-acm branch from fdd580f to 979ed06 Compare May 26, 2023 20:42
Copy link
Member

@sobolk sobolk left a 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!

Comment on lines -68 to -69
"@aws-amplify/graphql-auth-transformer": "^2.1.5",
"@aws-amplify/graphql-transformer-core": "^1.3.1",
Copy link
Member

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';
Copy link
Member

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';
Copy link
Member

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.

@sobolk sobolk merged commit eda51ff into dev May 26, 2023
@sobolk sobolk deleted the use-api-category-acm branch May 26, 2023 22:12
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.

None yet

5 participants