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

Pass the serialized group name when creating a PR for grouped updates #7166

Merged
merged 9 commits into from
Apr 26, 2023

Conversation

Nishnha
Copy link
Member

@Nishnha Nishnha commented Apr 25, 2023

Pass the serialized group name to PR creator (and the API client) when creating a PR for grouped updates.

We no longer pass the grouped-update key to the PR creator and instead pass in the dependency-group name

For now we are transforming the group name to downcase, snake_case, and to a symbol (although the test checks the name after it's been serialized to JSON, so the DependencyChange#id is converted to a string)

@Nishnha Nishnha requested a review from a team as a code owner April 25, 2023 00:38
Copy link
Contributor

@brrygrdn brrygrdn left a comment

Choose a reason for hiding this comment

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

A couple of questions about removing the grouped_update key from the payload ( which I think is fine ) and moving away from using the term id.

common/lib/dependabot/dependency_group.rb Outdated Show resolved Hide resolved
common/lib/dependabot/dependency_group.rb Outdated Show resolved Hide resolved
updater/lib/dependabot/api_client.rb Outdated Show resolved Hide resolved
updater/spec/dependabot/api_client_spec.rb Outdated Show resolved Hide resolved
updater/spec/dependabot/api_client_spec.rb Outdated Show resolved Hide resolved
updater/spec/dependabot/api_client_spec.rb Outdated Show resolved Hide resolved
Co-authored-by: Barry Gordon <896971+brrygrdn@users.noreply.github.com>
@Nishnha Nishnha force-pushed the nishnha/pass-dependency-group-id-to-api branch from 99bef01 to 5529ce8 Compare April 25, 2023 16:14
Co-authored-by: Barry Gordon <896971+brrygrdn@users.noreply.github.com>
@Nishnha Nishnha force-pushed the nishnha/pass-dependency-group-id-to-api branch from 4e78793 to f6916ee Compare April 25, 2023 16:15
@Nishnha
Copy link
Member Author

Nishnha commented Apr 25, 2023

I'll update the smoke-tests to use the new dependency-group key instead of grouped-update

See dependabot/cli#102 for the CLI update that's required to update the smoke tests

Nishnha added a commit to dependabot/cli that referenced this pull request Apr 25, 2023
…d-update key

Grouped updates now pass in the name of the group the PR was created with instead of a boolean grouped-update flag

/xref dependabot/dependabot-core#7166
@Nishnha
Copy link
Member Author

Nishnha commented Apr 25, 2023

Opened dependabot/smoke-tests#61 for updating the smoke tests. The CLI changes need to be deployed first though

Nishnha added a commit to dependabot/cli that referenced this pull request Apr 25, 2023
…d-update key (#102)

Grouped updates now pass in the name of the group the PR was created with instead of a boolean grouped-update flag

/xref dependabot/dependabot-core#7166
@brrygrdn brrygrdn merged commit ee54c28 into main Apr 26, 2023
@brrygrdn brrygrdn deleted the nishnha/pass-dependency-group-id-to-api branch April 26, 2023 12:35
brettfo pushed a commit to brettfo/dependabot-core that referenced this pull request Oct 11, 2023
…dency-group-id-to-api

Pass the serialized group name when creating a PR for grouped updates
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