Skip to content

WIP: Group updates by Edit#3852

Draft
rtyley wants to merge 5 commits intomainfrom
group-updates-by-edit
Draft

WIP: Group updates by Edit#3852
rtyley wants to merge 5 commits intomainfrom
group-updates-by-edit

Conversation

@rtyley
Copy link
Copy Markdown
Contributor

@rtyley rtyley commented Mar 24, 2026

This fixes two issues:

See also:

import org.scalasteward.core.{git, util}
import org.typelevel.log4cats.Logger

case class ApplicableUpdateSet(edits: List[Substring.Replacement], artifactUpdates: List[Update.ForArtifactId]) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I’d like to propose EquivalentUpdateSet or UpdatesForGivenEdit as the name for this instead of ApplicableUpdateSet. I find the existing name hard to immediately find a meaning for when I read it, and I think the most important thing about these sets of updates is that they’re produced by the same edits.

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.

Ah good suggestion Emily! I like UpdatesForGivenEdit, I've done this with commit 1574d0c.

@rtyley rtyley added the enhancement New feature or request label Apr 12, 2026
@rtyley rtyley force-pushed the group-updates-by-edit branch from 6c7bcc8 to a87a2eb Compare April 12, 2026 14:38
rtyley added a commit that referenced this pull request Apr 12, 2026
As suggested by Emily:

#3852 (comment)

...the most important thing about these sets of updates is that they’re produced by the same edits.
rtyley and others added 5 commits April 12, 2026 22:45
Co-authored-by: Jamie B <53781962+JamieB-gu@users.noreply.github.com>
As suggested by Emily:

#3852 (comment)

...the most important thing about these sets of updates is that they’re produced by the same edits.
# Conflicts:
#	modules/core/src/test/scala/org/scalasteward/core/data/GroupedUpdateTest.scala
@rtyley rtyley force-pushed the group-updates-by-edit branch from 3811557 to ad6d05f Compare April 14, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants