Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor: use task data model for notifications#20590

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@mafredri
Copy link
Member

@mafredrimafredri marked this pull request as ready for reviewOctober 30, 2025 16:55
@mafredrimafredriforce-pushed themafredri/refactor-use-task-data-model-for-notifications branch fromd379e17 to841cb33CompareOctober 30, 2025 16:57
Comment on lines -55 to +70
AllowIDList: []AllowListElement{
AllowIDList:append([]AllowListElement{
{Type:ResourceWorkspace.Type,ID:params.WorkspaceID.String()},
{Type:ResourceTemplate.Type,ID:params.TemplateID.String()},
{Type:ResourceTemplate.Type,ID:params.VersionID.String()},
{Type:ResourceUser.Type,ID:params.OwnerID.String()},
},
},extraAllowList...),
Copy link
Member

Choose a reason for hiding this comment

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

This is nice and narrow 👍

Just for future info, you can also do this:{Type: ResourceTask.Type, ID: policy.WildcardSymbol},

To give it access to all tasks. I assume each workspace just has 1 task though. And being narrow is better 👍

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yep, tasks and workspaces are 1:1 currently. Good to know about the wildcard though, thanks. 👍🏻

@mafredrimafredri merged commit7ae3fdc intomainOct 31, 2025
30 checks passed
@mafredrimafredri deleted the mafredri/refactor-use-task-data-model-for-notifications branchOctober 31, 2025 13:53
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 31, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@EmyrkEmyrkEmyrk left review comments

@johnstcnjohnstcnjohnstcn approved these changes

@ssncferreirassncferreiraAwaiting requested review from ssncferreira

@DanielleMaywoodDanielleMaywoodAwaiting requested review from DanielleMaywood

Assignees

@mafredrimafredri

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@mafredri@johnstcn@Emyrk

[8]ページ先頭

©2009-2025 Movatter.jp