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

fix(sdk): ambiguous api paths are allowed #4291

Closed
wants to merge 167 commits into from
Closed

fix(sdk): ambiguous api paths are allowed #4291

wants to merge 167 commits into from

Conversation

gcfbn
Copy link
Contributor

@gcfbn gcfbn commented Sep 26, 2023

Fixes the issue #4052 by adding a check if newly added path is ambiguous with paths already added to the API.

Checklist

  • Title matches Winglang's style guide
  • Description explains motivation and solution
  • Tests added (always)
  • Docs updated (only required for features)
  • Added pr/e2e-full label if this feature requires end-to-end testing

By submitting this pull request, I confirm that my contribution is made under the terms of the Wing Cloud Contribution License.

@gcfbn gcfbn requested a review from a team as a code owner September 26, 2023 16:17
@gcfbn gcfbn marked this pull request as draft September 26, 2023 16:46
Copy link
Collaborator

@tsuf239 tsuf239 left a comment

Choose a reason for hiding this comment

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

Can you please add an invalid wing file (testing a cloud.Api with invalid paths) to this folder: examples/tests/invalid?

libs/wingsdk/src/cloud/api.ts Show resolved Hide resolved
libs/wingsdk/src/cloud/api.ts Show resolved Hide resolved
libs/wingsdk/src/cloud/api.ts Show resolved Hide resolved
libs/wingsdk/test/target-sim/api.test.ts Show resolved Hide resolved
@monadabot monadabot added the ⚠️ pr/review-mutation PR has been mutated and will not auto-merge. Clear this label if the changes look good! label Sep 28, 2023
@gcfbn gcfbn requested a review from tsuf239 September 28, 2023 13:34
monadabot and others added 19 commits September 28, 2023 16:46
monadabot and others added 25 commits October 1, 2023 06:00
@gcfbn gcfbn closed this Oct 1, 2023
@gcfbn gcfbn deleted the 4052-ambiguous-api-paths branch October 1, 2023 11:25
mergify bot pushed a commit that referenced this pull request Oct 4, 2023
Fixes the issue #4052 by adding a check if newly added path is ambiguous with paths already added to the API. I've re-created the #4291 PR, as it got stuck on merging main to the feature branch.

## Checklist

- [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
- [x] Description explains motivation and solution
- [x] Tests added (always)
- [ ] Docs updated (only required for features)
- [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ pr/review-mutation PR has been mutated and will not auto-merge. Clear this label if the changes look good!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants