Skip to content

feat: hide resources#254

Merged
dbolson merged 4 commits into
mainfrom
sc-/hide-resources
May 9, 2024
Merged

feat: hide resources#254
dbolson merged 4 commits into
mainfrom
sc-/hide-resources

Conversation

@dbolson
Copy link
Copy Markdown
Contributor

@dbolson dbolson commented May 8, 2024

Refactors the resource code a bit and then filters out "other" and "oauth2 clients" endpoints.

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

Provide links to any issues in this repository or elsewhere relating to this pull request.

Describe the solution you've provided

Provide a clear and concise description of what you expect to happen.

Describe alternatives you've considered

Provide a clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context about the pull request here.

Comment thread Makefile
build:
go build -o ldcli

generate:
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.

You can run make generate if that's easier.

return TemplateData{Resources: resources}, nil
}

func NewResourceData(tag openapi3.Tag) ResourceData {
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.

Made some constructor functions to encapsulate the rules for creating a resource data struct type. This is simpler to test than setting up JSON and calling GetTemplateData.

@dbolson dbolson requested a review from k3llymariee May 8, 2024 22:06
Copy link
Copy Markdown
Contributor

@k3llymariee k3llymariee left a comment

Choose a reason for hiding this comment

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

ty!!

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