Skip to content

feat(generator): introduce new didGenerateDirective hook #1818

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

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

dariuszkuc
Copy link
Collaborator

📝 Description

Adds new didGenerateDirective hook that is invoked AFTER generating the directive. This PR also fix directive generation logic to ensure hooks are only called once (when generating the directive). Previously we were always invoking willGenerateDirective hook regardless whether the directive was already generated or not (which lead to creation of new directive when modifying the directive in the new didGenerateDirective hook).

🔗 Related Issues

Type generation still suffers from the same bug (#1815)

Adds new `didGenerateDirective` hook that is invoked AFTER generating the directive. This PR also fix directive generation logic to ensure hooks are only called once (when generating the directive). Previously we were always invoking `willGenerateDirective` hook regardless whether the directive was already generated or not (which lead to creation of new directive when modifying the directive in the new `didGenerateDirective` hook).
@dariuszkuc dariuszkuc added the changes: minor Changes require a minor version label Jul 28, 2023
@dariuszkuc dariuszkuc enabled auto-merge (squash) July 28, 2023 19:29
@dariuszkuc dariuszkuc changed the title feat(generator): add didGenerateDirective hook feat(generator): introduce new didGenerateDirective hook Jul 28, 2023
@dariuszkuc dariuszkuc merged commit 41dfd6e into ExpediaGroup:master Aug 2, 2023
@dariuszkuc dariuszkuc deleted the generate_directive branch August 2, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes: minor Changes require a minor version
Development

Successfully merging this pull request may close these issues.

2 participants