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 command/models.js into independent functions, add jsdoc type annotations #693

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

alharris-at
Copy link
Contributor

@alharris-at alharris-at commented Sep 12, 2023

Description of changes

This refactor should make the functional change to support modelgen without an amplify initialized backend a bit more straightforward, and the type annotations have helped me in the refactor. There are no functional changes, and I'm relying on unit tests to verify that fact.

Issue #, if available

N/A

Description of how you validated changes

Unit Tests

Checklist

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

@alharris-at alharris-at requested a review from a team as a code owner September 12, 2023 21:26
@alharris-at alharris-at changed the base branch from main to noinit-modelgen September 12, 2023 21:26
@alharris-at alharris-at changed the title modelgen function refactor chore: refactor command/models.js into independent functions, add jsdoc type annotations Sep 12, 2023
@alharris-at alharris-at merged commit 9337382 into noinit-modelgen Sep 12, 2023
alharris-at added a commit that referenced this pull request Sep 12, 2023
alharris-at added a commit that referenced this pull request Sep 13, 2023
…degen models without an initialized amplify app (#698)

* feat: use default directive definitions if outside amplify project (#686)

* chore: refactor command/models.js into independent functions, add jsdoc type annotations (#693)

* feat: support modelgen without an amplify backend (#694)

* feat: support modelgen without an amplify backend

* chore: add unit tests for new utils

* chore: add tests to confirm that tests for detached projects return the right files

* chore: add additional unit tests for uninitialized backend states

* feat: add e2e tests for modelgen in an uninitialized project (#696)

* feat: add e2e tests for modelgen in an uninitialized project

* fix: expecting to reject failed in CI, trying to just use a try-catch instead

---------

Co-authored-by: Dane Pilcher <[email protected]>
@alharris-at alharris-at deleted the modelgen-function-refactor branch November 29, 2023 17:31
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