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(codegen): remove namespaces that only contain logfilters #574

Merged
merged 2 commits into from
Jul 26, 2022

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Jul 25, 2022

Model Namespaces

Problem: model namespaces containing only a filterSensitiveLog function are generated alongside most model interfaces. This is distracting to readers of the model file, and worse, creates an interruption when users use VSCode’s go-to-definition functionality on model interfaces that have an identical name with these namespaces.

Solution: remove these namespaces and generate the filter functions with unique names.

@kuhe kuhe requested a review from a team as a code owner July 25, 2022 20:30
@kuhe kuhe force-pushed the feat/namespaces branch from 838865a to d360906 Compare July 25, 2022 20:40
@kuhe kuhe force-pushed the feat/namespaces branch from d360906 to 8e90f46 Compare July 25, 2022 21:19
@kuhe kuhe merged commit d3d2984 into smithy-lang:main Jul 26, 2022
@kuhe kuhe deleted the feat/namespaces branch July 26, 2022 02:37
gosar added a commit to gosar/smithy-typescript that referenced this pull request Aug 31, 2022
This was removed in directed-codegen branch as it was unused, but since then a
new PR smithy-lang#574 in main is using
it, so adding it back.
srchase pushed a commit to srchase/smithy-typescript that referenced this pull request Mar 17, 2023
…-lang#574)

* feat(codegen): remove namespaces that only contain logfilters

* feat(namespaces): remove unused import in test file
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.

3 participants