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

docs: update catalog error eventing/logging #25094

Merged
merged 24 commits into from
Jun 24, 2024

Conversation

codingdiaz
Copy link
Contributor

@codingdiaz codingdiaz commented Jun 7, 2024

Hey, I just made a Pull Request!

This updates the documentation to reflect the changes around catalog error logging. #23022

I wasn’t sure if adding this guide here made sense or not but I wasn’t quite sure the best place to put this content. i.e. should this section be updated and linked out to a guide.

I also feel like there is a much cleaner way (with generics) to define the shape of the catalog event. I was getting type errors when trying something like this:

    params: EventParams<{
      entity: string;
      location?: string;
      errors: Array<Error>;
    }>,

I also didn’t know if a simple module would help for users that want to turn these logs on rather than creating their own? I’m happy to contribute that!

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@codingdiaz codingdiaz requested review from a team as code owners June 7, 2024 00:25
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jun 7, 2024
Copy link
Collaborator

@awanlin awanlin left a comment

Choose a reason for hiding this comment

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

Thanks for this @codingdiaz, really appreciate it 🚀

Left a few comments, nothing major, I do think that maybe this should be somewhere else though. This page is great as an overview and I like that it's very focused on the specific topic only. Could we move this here: https://backstage.io/docs/features/software-catalog/configuration

docs/features/software-catalog/life-of-an-entity.md Outdated Show resolved Hide resolved
docs/features/software-catalog/life-of-an-entity.md Outdated Show resolved Hide resolved
docs/features/software-catalog/life-of-an-entity.md Outdated Show resolved Hide resolved
@codingdiaz
Copy link
Contributor Author

Thanks for this @codingdiaz, really appreciate it 🚀

Left a few comments, nothing major, I do think that maybe this should be somewhere else though. This page is great as an overview and I like that it's very focused on the specific topic only. Could we move this here: https://backstage.io/docs/features/software-catalog/configuration

Any time! I just updated the docs, I agree with you and I linked to the configuration section.

@codingdiaz codingdiaz requested review from a team and backstage-service as code owners June 7, 2024 15:56
@github-actions github-actions bot added the area:catalog Related to the Catalog Project Area label Jun 7, 2024
@backstage-goalie
Copy link
Contributor

backstage-goalie bot commented Jun 7, 2024

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage/plugin-catalog-backend-module-logs plugins/catalog-backend-module-logs patch v0.0.0

@codingdiaz codingdiaz requested a review from awanlin June 7, 2024 17:45
Copy link
Collaborator

@awanlin awanlin left a comment

Choose a reason for hiding this comment

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

Just gave the docs parts a look. Left some comments, should be pretty easy to address.

Did not look at the code. I was mostly suggesting it should be a module, was hoping the maintainers would give us a quick heads up on if that's the right direction.

.changeset/ten-pots-walk.md Outdated Show resolved Hide resolved
docs/features/software-catalog/configuration.md Outdated Show resolved Hide resolved
docs/features/software-catalog/life-of-an-entity.md Outdated Show resolved Hide resolved
docs/features/software-catalog/life-of-an-entity.md Outdated Show resolved Hide resolved
plugins/catalog-backend-module-logs/README.md Outdated Show resolved Hide resolved
Copy link
Member

@freben freben left a comment

Choose a reason for hiding this comment

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

Nice! Approving just to unblock a bit, I'll self-commit these suggestions to expedite. I hope that's OK. Remember to pull these changes first to your local if you continue working on the branch.

plugins/catalog-backend-module-logs/package.json Outdated Show resolved Hide resolved
plugins/catalog-backend-module-logs/package.json Outdated Show resolved Hide resolved
@codingdiaz codingdiaz requested a review from awanlin June 19, 2024 15:22
@codingdiaz
Copy link
Contributor Author

@freben / @ahhhndre. I’m getting some errors checking the API reports but locally I’m running yarn build:api-reports & then yarn build:api-reports:only --ci —docs & echo $ with an output of 0.

Am I missing something to get the api report checks passing in CI?

Copy link
Collaborator

@awanlin awanlin left a comment

Choose a reason for hiding this comment

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

Thanks again for this @codingdiaz 🚀

Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
codingdiaz and others added 12 commits June 19, 2024 19:32
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Christopher Diaz <cjdiaz1294@gmail.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Christopher Diaz <codingdiaz@icloud.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
@freben
Copy link
Member

freben commented Jun 19, 2024

Funky - i think it needed a bit of a rebase and massage. Managed to generate the report properly now and pushed. Let's see how it goes.

@freben freben closed this Jun 19, 2024
@freben
Copy link
Member

freben commented Jun 19, 2024

UNLESS I PRESS THE WRONG BUTTON ACCIDENTALLY FIRST

@freben freben reopened this Jun 19, 2024
@codingdiaz
Copy link
Contributor Author

Funky - i think it needed a bit of a rebase and massage. Managed to generate the report properly now and pushed. Let's see how it goes.

Thank you for helping get this passing.

@codingdiaz
Copy link
Contributor Author

@freben I’m all set with changes on this one (I don’t have the ability to merge).

@awanlin
Copy link
Collaborator

awanlin commented Jun 19, 2024

@vinzscam looks like we need your approval here too ;)

@freben freben merged commit d90778f into backstage:master Jun 24, 2024
60 of 70 checks passed
Copy link
Contributor

Thank you for contributing to Backstage! The changes in this pull request will be part of the 1.29.0 release, scheduled for Tue, 16 Jul 2024.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:catalog Related to the Catalog Project Area documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants