Skip to content

Misc fixes#5988

Merged
PeerRich merged 8 commits intomainfrom
hotfix/update-event-type-check-user-id
Dec 13, 2022
Merged

Misc fixes#5988
PeerRich merged 8 commits intomainfrom
hotfix/update-event-type-check-user-id

Conversation

@joeauyeung
Copy link
Copy Markdown
Contributor

What does this PR do?

Misc fixes

Fixes # (issue)

Environment: Staging(main branch) / Production

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

  • Test A
  • Test B

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't performed a self-review of my own code and corrected any misspellings
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my PR needs changes to the documentation
  • I haven't checked if my changes generate no new warnings
  • I haven't added tests that prove my fix is effective or that my feature works
  • I haven't checked if new and existing unit tests pass locally with my changes

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 12, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cal ❌ Failed (Inspect) Dec 13, 2022 at 5:38PM (UTC)

Comment thread apps/web/pages/event-types/[type]/index.tsx Outdated
Comment thread packages/trpc/server/routers/viewer/eventTypes.tsx Outdated
Comment thread packages/trpc/server/routers/viewer/workflows.tsx Outdated
},
});

if (!userEventType)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We also need to consider team event types here. A user can activate workflows on team event types

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

That user should still be under the users field for team event types, right? Won't this consider that? If the user is not a part of that team event type, I don't think they should be able to edit workflows

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Currently, any user of a team can set workflows active on a team event type. So we also would need to adapt that in the workflow editing page (multi-dropdown). But we can do that in a follow-up PR

Copy link
Copy Markdown
Member

@ciaranha ciaranha Dec 13, 2022

Choose a reason for hiding this comment

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

@joeauyeung While I do think you're suggestion is very reasonable and makes sense, I think we need a proper top-down approach to permissions with users. ie we need roles of people who can edit (admins) and those that can't (members). Until we implement that, I don't think there's a benefit to having specific rules where people can edit some things but not others, as it will be difficult to track what people can and can't do for both our customers and us.

@PeerRich PeerRich enabled auto-merge (squash) December 13, 2022 14:36
@PeerRich PeerRich added ♻️ autoupdate tells kodiak to keep this branch up-to-date automerge labels Dec 13, 2022
@PeerRich PeerRich merged commit 8f48eca into main Dec 13, 2022
@PeerRich PeerRich deleted the hotfix/update-event-type-check-user-id branch December 13, 2022 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge ♻️ autoupdate tells kodiak to keep this branch up-to-date

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants