Skip to content

Conversation

@sachinchauhan2889
Copy link
Contributor

@sachinchauhan2889 sachinchauhan2889 commented Jan 12, 2021

Fixes #5881

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@vercel
Copy link

vercel bot commented Jan 12, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/hi2h2x97s
✅ Preview: https://open-event-frontend-git-fork-sachinchauhan2889-roles.eventyay.now.sh

@sachinchauhan2889 sachinchauhan2889 changed the title Roles feat: allow deletion of roles Jan 12, 2021
@auto-label auto-label bot added the feature label Jan 12, 2021
@codecov
Copy link

codecov bot commented Jan 12, 2021

Codecov Report

Merging #6343 (4f6dc5b) into development (677c74b) will decrease coverage by 0.23%.
The diff coverage is 0.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #6343      +/-   ##
===============================================
- Coverage        22.90%   22.66%   -0.24%     
===============================================
  Files              524      520       -4     
  Lines             5786     5753      -33     
  Branches           113      113              
===============================================
- Hits              1325     1304      -21     
+ Misses            4434     4422      -12     
  Partials            27       27              
Impacted Files Coverage Δ
...pp/components/events/view/overview/manage-roles.js 2.63% <0.00%> (-3.83%) ⬇️
app/models/event.js 31.57% <ø> (ø)
app/routes/events/view/index.js 0.00% <0.00%> (ø)
app/routes/events/view/team/index.ts 0.00% <ø> (ø)
app/services/loader.ts 25.96% <0.00%> (-5.77%) ⬇️
app/services/l10n.js 65.00% <0.00%> (-3.00%) ⬇️
app/components/public/ticket-list.js 19.67% <0.00%> (-2.30%) ⬇️
app/components/forms/wizard/basic-details-step.js 22.47% <0.00%> (-0.61%) ⬇️
app/router.js 100.00% <0.00%> (ø)
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 677c74b...b3f89c7. Read the comment docs.

</div>
{{/each}}
{{/if}}
{{#if (eq this.roleType 'accepted')}}
Copy link
Member

Choose a reason for hiding this comment

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

Why this check?

<tr>
<td>{{eventRole.user.email}}</td>
<td>{{eventRole.role.titleName}}</td>
{{#if (and @editable (not-eq eventRole.role.titleName 'Owner'))}}
Copy link
Member

Choose a reason for hiding this comment

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

Check name, not title name

Comment on lines 28 to 29
{{#if (eq this.roleType 'pending')}}
{{#each this.roleInvites as |roleInvite|}}
Copy link
Member

Choose a reason for hiding this comment

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

indentation

Comment on lines 58 to 59
{{else}}
{{#each this.data.usersEventsRoles as |eventRole|}}
Copy link
Member

Choose a reason for hiding this comment

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

indentation

@maze-runnar
Copy link
Contributor

I am getting error on deletion -
{"errors": [{"status": 500, "source": null, "title": "Unknown error", "detail": "Unknown error"}], "jsonapi": {"version": "1.0"}}
Screenshot from 2021-01-14 17-33-46

@iamareebjamal iamareebjamal merged commit fb95f8d into fossasia:development Jan 16, 2021
@mariobehling mariobehling changed the title feat: allow deletion of roles feat: allow deletion of team members Jan 17, 2021
@sachinchauhan2889 sachinchauhan2889 deleted the roles branch February 10, 2021 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removed event organizer still receives email when participants sign up

3 participants