Skip to content
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

DevLake should be configured automatically according to the Backstage components #64

Open
Tracked by #67
brunocribeiro opened this issue Oct 12, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@brunocribeiro
Copy link
Contributor

brunocribeiro commented Oct 12, 2023

Depends on: #65

As an OpenDORA plugin user

I want to be able to configure my deployment stages that count as a deployment

So that the DORA metrics are correctly calculated for a given component <> repository pair

  • When a Backstage component is discovered/added to Backstage, a new data scope should be created in DevLake. Using annotations:
    • devoteam.com/opendora/project-url to specify the connection HttpUrlToRepo property. (string, required, URL including GitLab group)
    • devoteam.com/opendora/project-id to specify the connection gitlabId property. (string, required, stringified integer)
  • When the data scope is added it should also create a scope config using annotations:
    • devoteam.com/opendora/deployment-pattern for selecting the stage that counts as a deployment for deployment frequency (string, required, regex)
    • devoteam.com/opendora/production-pattern for selecting the stage that counts as a production deployment (string, optional, regex)

Conditions:

The data scope and scope config should only be created if:

  • The component has the devoteam.com/opendora/enabled annotation set to true
  • There isn't already a data scope matching the devoteam.com/opendora/project-id / gitlabId .

References:

@brunocribeiro brunocribeiro moved this to Todo in opendora Oct 16, 2023
@kylejwatson kylejwatson moved this from Todo to In Progress in opendora Oct 16, 2023
@kylejwatson kylejwatson self-assigned this Oct 16, 2023
@brunocribeiro brunocribeiro changed the title [OPS] DevLake should be configured automatically according to the Backstage components DevLake should be configured automatically according to the Backstage components Oct 16, 2023
kylejwatson added a commit that referenced this issue Oct 17, 2023
@kylejwatson
Copy link
Contributor

No longer important for the MVP in a 'generic' plugin, park for now to prioritise others.

@kylejwatson kylejwatson removed the status in opendora Oct 18, 2023
@kylejwatson
Copy link
Contributor

See #70 for implementation details.

@jeroenvandermeulen jeroenvandermeulen added the enhancement New feature or request label Feb 13, 2024
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
Status: No status
Development

No branches or pull requests

3 participants