Skip to content

ROX-28506: Rename dinosaur to central Part 1 #2291

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

Merged
merged 3 commits into from
Apr 25, 2025

Conversation

kurlov
Copy link
Member

@kurlov kurlov commented Apr 17, 2025

Description

Adopt dinosaur from the the original template to central. Removed a few unused files

out of scope of this PR:

  • rename lease names in DB
  • rename grafana's dinosaur

This will be in the following PR

image

@kurlov kurlov changed the title Rename dinosaur to central ROX-28506: Rename dinosaur to central Apr 17, 2025
@kurlov kurlov force-pushed the akurlov/ROX-28506--dinosaur-to-central branch from 58a3998 to 3db6bd6 Compare April 24, 2025 01:10
@kurlov kurlov changed the title ROX-28506: Rename dinosaur to central ROX-28506: Rename dinosaur to central Part 1 Apr 24, 2025
…into akurlov/ROX-28506-rename-dinosaur-to-central-1
Copy link
Contributor

@johannes94 johannes94 left a comment

Choose a reason for hiding this comment

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

Only the part with the wrong API paths stood out, everything else is nitpicking.

Great work, almost looks like this meteor that caused the extinction of dinosaurs. :)

CONTRIBUTING.md Outdated
@@ -23,8 +18,8 @@ Project source is to be found under `$GOPATH/src` by a distinct directory path.
/cmd
/fleet-manager -- Main CLI entrypoint
/internal -- service specific implementations
/dinosaur -- should be renamed to central
providers.go -- dinosaurs service injection setup
/central -- should be renamed to central
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can remove the -- should be renamed to central here.

Copy link
Member Author

@kurlov kurlov Apr 25, 2025

Choose a reason for hiding this comment

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

Oops, replaces with a short description what is Central instead

README.md Outdated
@@ -122,11 +122,9 @@ $ make db/migrate

#### Background

This project was started from a fleet-manager template with an example "Dinosaur" application as a managed service.
Implementations which reference "Dinosaur" are replaced iteratively.
This project was started from a fleet-manager template.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd leave the context about Dinosaurs here, since we still have a few dinosaurs after this PR.

- Any endpoints that should only be used by an agent or by other internal components should be added here.

Further customizations for existing endpoints are described in the following sections below.

### (GET) ​/api​/dinosaurs_mgmt​/v1​/agent-clusters​/{id}
### (GET) ​/api​/centrals_mgmt​/v1​/agent-clusters​/{id}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you need to review the PR for the API paths. I noticed multiple times that dinosaurs_mgmt was replaced by centrals_mgmt but our API paths were actually renamed from /api/dinosaurs_mgmt to /api/rhacs

Copy link
Member Author

Choose a reason for hiding this comment

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

Renamed to rhacs

genericvalidation "k8s.io/apimachinery/pkg/api/validation"
)

var (
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure why this isn't counted as moved, but I trust CI to verify validation is still correct.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's odd, locally it showed that I renamed. Github is smart and can detect renaming even if you git mv wasn't used explicitly, but looks like it can also consider renaming as a new file for some reason 😕

Copy link
Member Author

Choose a reason for hiding this comment

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

I explicitly used git mv command to rename certain files to keep git history but still they marked as a new ones. Another example pkg/db/central.go or internal/central/pkg/workers/ folder

@openshift-ci openshift-ci bot added the lgtm label Apr 25, 2025
Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johannes94, kurlov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kurlov kurlov merged commit 46e18ed into main Apr 25, 2025
18 of 19 checks passed
@kurlov kurlov deleted the akurlov/ROX-28506--dinosaur-to-central branch April 25, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants