Skip to content

Conversation

@marcelklehr
Copy link
Member

@marcelklehr marcelklehr commented Sep 2, 2025

Summary

This adds typed events for tag mapper events that are also exposed via webhooks.

Checklist

@marcelklehr marcelklehr force-pushed the feat/typed-tag-events branch from d408934 to 88913f7 Compare September 2, 2025 13:42
@marcelklehr marcelklehr marked this pull request as ready for review September 2, 2025 15:28
@marcelklehr marcelklehr requested a review from a team as a code owner September 2, 2025 15:28
@marcelklehr marcelklehr requested review from Altahrim, nfebe and provokateurin and removed request for a team September 2, 2025 15:28
}

/**
* @return array
Copy link
Contributor

Choose a reason for hiding this comment

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

Return type annotation is useless if not more specific than the strict types.
So it can either be removed or use proper type:

Suggested change
* @return array
* @return array{'objectType': string, 'objectId': string, 'tagIds': int[] }

Copy link
Member Author

Choose a reason for hiding this comment

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

mh. psalm doesn't like this

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Now it seems to work. Not sure what was the problem.

@marcelklehr marcelklehr force-pushed the feat/typed-tag-events branch 3 times, most recently from b4b89fa to 9fc78f0 Compare September 3, 2025 05:53
@marcelklehr marcelklehr force-pushed the feat/typed-tag-events branch from 9fc78f0 to f2e121f Compare September 3, 2025 05:55
@marcelklehr marcelklehr force-pushed the feat/typed-tag-events branch from b924df6 to 3192567 Compare September 3, 2025 07:36
Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

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

Could also use constructor property promotion, but I don't want to force you to do another round 🙈 Sorry for the back and forth 😞

@marcelklehr marcelklehr merged commit 7bd0b57 into master Sep 4, 2025
213 of 219 checks passed
@marcelklehr marcelklehr deleted the feat/typed-tag-events branch September 4, 2025 09:19
@susnux susnux added 3. to review Waiting for reviews feature: tags labels Sep 4, 2025
@susnux
Copy link
Contributor

susnux commented Sep 4, 2025

please do not forget the tags :)

@susnux susnux added this to the Nextcloud 33 milestone Sep 4, 2025
@susnux
Copy link
Contributor

susnux commented Sep 4, 2025

/backport to stable32

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.

5 participants