Skip to content

chore: add missing labels to activity types [IN-761]#3503

Merged
borfast merged 1 commit into
mainfrom
chore/IN-761-add-missing-labels-to-activity-types
Oct 13, 2025
Merged

chore: add missing labels to activity types [IN-761]#3503
borfast merged 1 commit into
mainfrom
chore/IN-761-add-missing-labels-to-activity-types

Conversation

@borfast

@borfast borfast commented Oct 13, 2025

Copy link
Copy Markdown
Contributor

We were missing labels for some activity types. This PR adds them.

@borfast borfast requested a review from joanagmaia October 13, 2025 12:49
@borfast borfast self-assigned this Oct 13, 2025
cursor[bot]

This comment was marked as outdated.

@joanagmaia joanagmaia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small suggestion and one typo.
Overall comment: we usually use U migration files for to revert, and V migration files to apply. I think the changes have it switched, can you make that update?

Comment on lines +1 to +3
UPDATE "activityTypes" SET label = 'Joined a server/guild' WHERE "activityType" = 'joined_guild' AND platform = 'discord';
UPDATE "activityTypes" SET label = 'Message in a thread' WHERE "activityType" = 'thread_message' AND platform = 'discord';
UPDATE "activityTypes" SET label = 'Started a thread' WHERE "activityType" = 'thread_started' AND platform = 'discord';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • Would update label for type thread_message -> "Sent a message in a thread"

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.

Good catch, I missed that one 👍

UPDATE "activityTypes" SET label = 'Liked a post' WHERE "activityType" = 'like' AND platform = 'discourse';
UPDATE "activityTypes" SET label = 'Joined a forum' WHERE "activityType" = 'join' AND platform = 'discourse';
UPDATE "activityTypes" SET label = 'Created a topic' WHERE "activityType" = 'create_topic' AND platform = 'discourse';
UPDATE "activityTypes" SET label = 'Replied to Topic' WHERE "activityType" = 'message_in_topic' AND platform = 'discourse';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would update label for type message_in_topic -> "Sent a message in topic"

UPDATE "activityTypes" SET label = 'Unstarred a repository' WHERE "activityType" = 'unstar' AND platform = 'github';

UPDATE "activityTypes" SET label = 'Forked a repository' WHERE "activityType" = 'fork' AND platform = 'gitlab';
UPDATE "activityTypes" SET label = 'Assigned to a merge request Assigned' WHERE "activityType" = 'merge_request-assigned' AND platform = 'gitlab';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small typo: Remove last "Assigned"

Signed-off-by: Raúl Santos <4837+borfast@users.noreply.github.com>
@borfast borfast force-pushed the chore/IN-761-add-missing-labels-to-activity-types branch from 05edea8 to 637c12b Compare October 13, 2025 13:54
@borfast

borfast commented Oct 13, 2025

Copy link
Copy Markdown
Contributor Author

Overall comment: we usually use U migration files for to revert, and V migration files to apply. I think the changes have it switched, can you make that update?

I copied the code from one file to the other to make the "down" migration, and must have edited the wrong file by mistake 🤦
Fixed ✔️

@borfast borfast requested a review from joanagmaia October 13, 2025 13:56

@joanagmaia joanagmaia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!
Thanks for making the changes 🙏

@borfast borfast merged commit 4746190 into main Oct 13, 2025
14 checks passed
@borfast borfast deleted the chore/IN-761-add-missing-labels-to-activity-types branch October 13, 2025 14:10
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