Skip to content

Conversation

donat
Copy link
Member

@donat donat commented Nov 28, 2023

This PR contains the following changes:

  • Remove stepwise builder
  • Remove ProblemBuilder.undocumented() and ProblemBuilder.noLocation()
  • Allow Problems API to define namespace
  • Separate private and public Problems API interface
  • Make transformers internal
  • Add ProblemBuilder.documentedAt(String)
  • Make problem instances not reference the Problems service
  • Make public API expose minimal set of features
  • Replace ProblemBuilder with Action
  • ProblemBuilder extends ProblemSpec
  • Require exception in ProbemReporter.throwing(Action)
  • Move and cleanup ProblemLocation and its subclasses
  • Clean up task path location and rename identityPath to buildTreePath
  • Represent buildTreePath with String

Reviewing cheatsheet

Before merging the PR, comments starting with

❌ ❓must be fixed
🤔 💅 should be fixed
💭 may be fixed
🎉 celebrate happy things

@donat donat force-pushed the donat/problems/api-refactoring branch 4 times, most recently from 39aa506 to e82df22 Compare November 29, 2023 15:59
@donat donat changed the title Donat/problems/api refactoring Refactor Problems API Nov 29, 2023
@donat donat force-pushed the donat/problems/api-refactoring branch from e82df22 to 354221f Compare November 29, 2023 16:25
@donat donat marked this pull request as ready for review November 30, 2023 09:06
@donat donat requested a review from a team as a code owner November 30, 2023 09:06
@donat donat requested a review from a team November 30, 2023 09:06
@donat donat requested a review from a team as a code owner November 30, 2023 09:06
@donat donat requested review from a team November 30, 2023 09:06
@donat donat requested review from a team as code owners November 30, 2023 09:06
@donat donat requested review from a team, bamboo, mlopatkin and tresat and removed request for a team November 30, 2023 09:06
@donat donat force-pushed the donat/problems/api-refactoring branch from 354221f to 37826c3 Compare November 30, 2023 13:05
@gradle gradle deleted a comment from donat Dec 6, 2023
@donat donat force-pushed the donat/problems/api-refactoring branch 2 times, most recently from aff719f to 23d7979 Compare December 6, 2023 12:51
@gradle gradle deleted a comment from donat Dec 6, 2023
Copy link
Member

@reinsch82 reinsch82 left a comment

Choose a reason for hiding this comment

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

Thx
LGTM

}
@Nullable

@Override
Copy link
Member

Choose a reason for hiding this comment

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

❔ is this implicitely nullable because the constructor parameter is?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably. It doesn't matter really as I'm working hard to refactor that part of the API separately.

@donat donat force-pushed the donat/problems/api-refactoring branch from 23d7979 to 71384d2 Compare December 6, 2023 14:00
@gradle gradle deleted a comment from donat Dec 6, 2023
@bot-gradle bot-gradle added this to the 8.6 RC1 milestone Dec 6, 2023
- Remove stepwise builder
- Remove ProblemBuilder.undocumented() and ProblemBuilder.noLocation()
- Allow Problems API to define namespace
- Separate private and public Problems API interface
- Make transformers internal
- Add ProblemBuilder.documentedAt(String)
- Make problem instances not reference the Problems service
- Make public API expose minimal set of features
- Replace ProblemBuilder with Action<ProblemSpec>
- ProblemBuilder extends ProblemSpec
- Require exception in ProbemReporter.throwing(Action)
- Move and cleanup ProblemLocation and its subclasses
- Clean up task path location and rename identityPath to buildTreePath
- Represent buildTreePath with String
@donat donat force-pushed the donat/problems/api-refactoring branch from 71384d2 to 9e83bc6 Compare December 7, 2023 08:29
@gradle gradle deleted a comment from donat Dec 7, 2023
@gradle gradle deleted a comment from donat Dec 7, 2023
@bot-gradle
Copy link
Collaborator

WARN: This is a feature pull request but no changes to release note found.

bot-gradle added a commit that referenced this pull request Dec 7, 2023
This PR contains the following changes:

- Remove stepwise builder
- Remove ProblemBuilder.undocumented() and ProblemBuilder.noLocation()
- Allow Problems API to define namespace
- Separate private and public Problems API interface
- Make transformers internal
- Add ProblemBuilder.documentedAt(String)
- Make problem instances not reference the Problems service
- Make public API expose minimal set of features
- Replace ProblemBuilder with Action<ProblemSpec>
- ProblemBuilder extends ProblemSpec
- Require exception in ProbemReporter.throwing(Action)
- Move and cleanup ProblemLocation and its subclasses
- Clean up task path location and rename identityPath to buildTreePath
- Represent buildTreePath with String

## Reviewing cheatsheet

### Before merging the PR, comments starting with

    ❌ ❓must be fixed
    🤔 💅 should be fixed
    💭 may be fixed
    🎉 celebrate happy things

Co-authored-by: Donát Csikós <[email protected]>
@bot-gradle
Copy link
Collaborator

I've triggered a build for you. Click here to see all failures if there's any.

The SSL certificate for the groovy-lang.org domain has just expired
@donat
Copy link
Member Author

donat commented Dec 7, 2023

@bot-gradle merge

@gradle gradle deleted a comment from donat Dec 7, 2023
@bot-gradle
Copy link
Collaborator

WARN: This is a feature pull request but no changes to release note found.

@bot-gradle
Copy link
Collaborator

Your PR is queued. See the queue page for details.

@bot-gradle
Copy link
Collaborator

Pre-tested commit build failed. Click here to see all build failures.

bot-gradle added a commit that referenced this pull request Dec 7, 2023
This PR contains the following changes:

- Remove stepwise builder
- Remove ProblemBuilder.undocumented() and ProblemBuilder.noLocation()
- Allow Problems API to define namespace
- Separate private and public Problems API interface
- Make transformers internal
- Add ProblemBuilder.documentedAt(String)
- Make problem instances not reference the Problems service
- Make public API expose minimal set of features
- Replace ProblemBuilder with Action<ProblemSpec>
- ProblemBuilder extends ProblemSpec
- Require exception in ProbemReporter.throwing(Action)
- Move and cleanup ProblemLocation and its subclasses
- Clean up task path location and rename identityPath to buildTreePath
- Represent buildTreePath with String

## Reviewing cheatsheet

### Before merging the PR, comments starting with

    ❌ ❓must be fixed
    🤔 💅 should be fixed
    💭 may be fixed
    🎉 celebrate happy things

Co-authored-by: Donát Csikós <[email protected]>
@bot-gradle
Copy link
Collaborator

I've triggered a build for you. Click here to see all failures if there's any.

@bot-gradle
Copy link
Collaborator

Your PR is queued. See the queue page for details.

@bot-gradle
Copy link
Collaborator

I've triggered a build for you. Click here to see all failures if there's any.

@bot-gradle bot-gradle merged commit 3430dee into master Dec 7, 2023
@bot-gradle bot-gradle deleted the donat/problems/api-refactoring branch December 7, 2023 12:10
@bot-gradle
Copy link
Collaborator

Error while scheduling pre-tested commit, please contact the administrator.

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.

Make it easier for third party plugins to define problem documentation URLs Define separate API to report third-party plugin problems

5 participants