Skip to content

track deprecated arguments alongside deprecated fields#3549

Merged
rmosolgo merged 3 commits intormosolgo:masterfrom
anujbiyani:analyze-deprecated-arguments
Aug 9, 2021
Merged

track deprecated arguments alongside deprecated fields#3549
rmosolgo merged 3 commits intormosolgo:masterfrom
anujbiyani:analyze-deprecated-arguments

Conversation

@anujbiyani
Copy link
Copy Markdown
Contributor

@anujbiyani anujbiyani commented Jul 7, 2021

Added tracking for deprecated arguments. I didn't add tracking for all arguments as my app doesn't need it, but happy to add that if you prefer!

Comment on lines +39 to +45
if argument.definition.type.kind.input_object?
extract_deprecated_arguments(argument.value.arguments.argument_values)
elsif argument.definition.type.list?
argument.value.each { |value| extract_deprecated_arguments(value.arguments.argument_values) }
end
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not really sure if this is the best way to recurse through input objects. Do you have a better suggestion?

@anujbiyani anujbiyani marked this pull request as ready for review July 7, 2021 22:14
@anujbiyani
Copy link
Copy Markdown
Contributor Author

Hey @rmosolgo, would you be able to take a look at this?

Copy link
Copy Markdown
Owner

@rmosolgo rmosolgo left a comment

Choose a reason for hiding this comment

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

Thanks for the ping! I took a look before but I see I failed to submit my review -- it was sitting here "pending." Sorry about that!

@rmosolgo rmosolgo added this to the 1.12.15 milestone Aug 9, 2021
@rmosolgo rmosolgo merged commit 7cebf9b into rmosolgo:master Aug 9, 2021
@anujbiyani anujbiyani deleted the analyze-deprecated-arguments branch August 9, 2021 20:44
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