Skip to content

Implement reserved parameter validation for project component creation#24

Open
angelmp01 wants to merge 3 commits intodevelopfrom
chore/create-components-reserved-params
Open

Implement reserved parameter validation for project component creation#24
angelmp01 wants to merge 3 commits intodevelopfrom
chore/create-components-reserved-params

Conversation

@angelmp01
Copy link
Copy Markdown
Contributor

No description provided.

@angelmp01 angelmp01 requested a review from jorge-romero May 7, 2026 15:56
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

📊 Static Analysis Summary

🔍 Code Quality Checks

  • ✅ JaCoCo coverage report generated

📦 Download detailed reports from the workflow artifacts.

public class ProjectComponentsCreateProperties {

private List<String> reservedParams = new ArrayList<>(
List.of("workflow", "ods_namespace", "component_type", "quickstarter_repo")
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.

The list should be provided via configuration, not hardcoded

return;
}

if (createProperties.getReservedParams() == null || createProperties.getReservedParams().isEmpty()) {
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.

maybe we haven't even configure the createProperties (it should check if it is null or it will throw a NPE

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

📊 Static Analysis Summary

🔍 Code Quality Checks

  • ✅ JaCoCo coverage report generated

📦 Download detailed reports from the workflow artifacts.

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