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

[announcements] Migrate announcements plugin #1134

Closed
wants to merge 12 commits into from

Conversation

kurtaking
Copy link
Contributor

@kurtaking kurtaking commented Aug 30, 2024

Hey, I just made a Pull Request!

✔️ 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)

@backstage-goalie
Copy link
Contributor

backstage-goalie bot commented Aug 30, 2024

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @backstage-community/backstage-plugin-announcements-backend
  • @backstage-community/backstage-plugin-announcements-common
  • @backstage-community/backstage-plugin-announcements-node
  • @backstage-community/backstage-plugin-announcements-react
  • @backstage-community/backstage-plugin-announcements
  • @backstage-community/backstage-plugin-search-backend-module-announcements

See CONTRIBUTING.md for more information about how to add changesets.

Unexpected Changesets

The following changeset(s) reference packages that have not been changed in this PR:

  • /home/runner/work/community-plugins/community-plugins/workspaces/announcements/.changeset/twenty-bottles-care.md: @backstage-community/plugin-search-backend-module-announcements, @backstage-community/plugin-announcements-backend, @backstage-community/plugin-announcements-common, @backstage-community/plugin-announcements-react, @backstage-community/plugin-announcements-node, @backstage-community/announcements

Note that only changes that affect the published package require changesets, for example changes to tests and storybook stories do not require changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/backstage-plugin-announcements-backend workspaces/announcements/plugins/announcements-backend none v0.10.4
@backstage-community/backstage-plugin-announcements-common workspaces/announcements/plugins/announcements-common none v0.2.8
@backstage-community/backstage-plugin-announcements-node workspaces/announcements/plugins/announcements-node none v0.3.3
@backstage-community/backstage-plugin-announcements-react workspaces/announcements/plugins/announcements-react none v0.4.7
@backstage-community/backstage-plugin-announcements workspaces/announcements/plugins/announcements none v0.11.2
@backstage-community/backstage-plugin-search-backend-module-announcements workspaces/announcements/plugins/search-backend-module-announcements none v0.3.3

Signed-off-by: Kurt King <[email protected]>
Signed-off-by: Kurt King <[email protected]>
Comment on lines 8 to 25
"scripts": {
"dev": "concurrently \"yarn start\" \"yarn start-backend\"",
"start": "yarn workspace @backstage-community/plugin-announcements start",
"start-backend": "yarn workspace @backstage-community/plugin-announcements-backend start",
"start:ci": "concurrently \"yarn start\" \"yarn start-backend:ci\"",
"build": "backstage-cli repo build --all",
"tsc": "tsc",
"tsc:full": "tsc --skipLibCheck false --incremental false",
"new": "backstage-cli new --scope internal",
"clean": "backstage-cli repo clean",
"test": "backstage-cli repo test",
"test:all": "backstage-cli repo test --coverage",
"lint": "backstage-cli repo lint --since origin/main",
"lint:all": "backstage-cli repo lint",
"version": "changeset version && yarn install && (git commit -am 'Update internal dependencies' || true)",
"release": "changeset publish",
"prepare": "husky install",
"postinstall": "husky install || true"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo: do I need to rework these?

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove release and prepare, please.

Signed-off-by: Kurt King <[email protected]>
@kurtaking kurtaking marked this pull request as ready for review August 30, 2024 15:27
@kurtaking
Copy link
Contributor Author

I've thoroughly reviewed 53 files and skimmed another 30. It would be helpful to have an initial review.

@kurtaking kurtaking changed the title Migrate announcements plugin [announcements] Migrate announcements plugin Aug 30, 2024
@BethGriggs
Copy link
Collaborator

Closing and reopening for the CI issue (we're working on that in #875)

@BethGriggs BethGriggs closed this Sep 2, 2024
@BethGriggs BethGriggs reopened this Sep 2, 2024
@BethGriggs
Copy link
Collaborator

CI seems to be failing with on the yarn install step 🤔 I also notice the root yarn.lock has been updated - is that intentional?

Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution!

@github-actions github-actions bot added the stale label Sep 28, 2024
@BethGriggs BethGriggs removed the stale label Oct 2, 2024
Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution!

@github-actions github-actions bot added the stale label Oct 18, 2024
@awanlin awanlin requested review from awanlin and removed request for BethGriggs October 18, 2024 20:10
@github-actions github-actions bot removed the stale label Oct 19, 2024
Copy link
Contributor

@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 want to migrate this plugin here @kurtaking, this is a large undertaking.

I've tried to review this mostly from a house keeping perspective. There's a lot of deprecated code being used and some patterns that could be improved but it makes more send to get this big PR in and then follow up with PRs around specific items.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this file?

workspaces/announcements/package.json Outdated Show resolved Hide resolved
Comment on lines 8 to 25
"scripts": {
"dev": "concurrently \"yarn start\" \"yarn start-backend\"",
"start": "yarn workspace @backstage-community/plugin-announcements start",
"start-backend": "yarn workspace @backstage-community/plugin-announcements-backend start",
"start:ci": "concurrently \"yarn start\" \"yarn start-backend:ci\"",
"build": "backstage-cli repo build --all",
"tsc": "tsc",
"tsc:full": "tsc --skipLibCheck false --incremental false",
"new": "backstage-cli new --scope internal",
"clean": "backstage-cli repo clean",
"test": "backstage-cli repo test",
"test:all": "backstage-cli repo test --coverage",
"lint": "backstage-cli repo lint --since origin/main",
"lint:all": "backstage-cli repo lint",
"version": "changeset version && yarn install && (git commit -am 'Update internal dependencies' || true)",
"release": "changeset publish",
"prepare": "husky install",
"postinstall": "husky install || true"
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove release and prepare, please.

workspaces/announcements/package.json Outdated Show resolved Hide resolved
@@ -0,0 +1,256 @@
# @backstage-community/plugin-announcements-backend
Copy link
Contributor

Choose a reason for hiding this comment

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

If we are going to keep the old changelogs then they should reflect the history. Looking at this you would think this plugin was alway part of the @backstage-community scope.

@@ -0,0 +1,80 @@
# @backstage-community/plugin-announcements-react
Copy link
Contributor

Choose a reason for hiding this comment

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

These should properly reflect their history or be removed.

@@ -0,0 +1,342 @@
# @backstage-community/plugin-announcements
Copy link
Contributor

Choose a reason for hiding this comment

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

These should properly reflect their history or be removed.

yarn.lock Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

This file should not be delete, please revert this change 👍

@@ -0,0 +1,66 @@
# @backstage-community/plugin-search-backend-module-announcements
Copy link
Contributor

Choose a reason for hiding this comment

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

Last one, should reflect history or be removed

@@ -0,0 +1,35 @@
# Announcements plugin for Backstage

## Overview
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we please add a note to this about the history of this plugin, looking for the ownership changes. If that is somewhere else please point that out, this is a big PR and I may have missed it 👍

@awanlin
Copy link
Contributor

awanlin commented Oct 19, 2024

Closing as new PR #1637 was created

@awanlin awanlin closed this Oct 19, 2024
@kurtaking kurtaking deleted the announcements branch October 20, 2024 18:50
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.

3 participants