Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend: API request for hiding/showing task templates for non-admin users #137

Open
arath7 opened this issue Jan 16, 2025 · 0 comments · May be fixed by #143
Open

Backend: API request for hiding/showing task templates for non-admin users #137

arath7 opened this issue Jan 16, 2025 · 0 comments · May be fixed by #143
Assignees
Labels

Comments

@arath7
Copy link
Contributor

arath7 commented Jan 16, 2025

The backend for hiding/showing task templates to all users within the task template library

What is needed?

  • Add a visibleToNonAdmins Field to the CustomizedBattery Schema
  • Add a new API route in the src/routes/admin.route.ts file to allow admins to toggle task template visibility (PUT request /visibility)
  • for the PUT: maybe have it use a path param to specify on/off so it's clear what you're setting it to be (PUT /visibility/:status where status is "on" or "off" and you could add a validation check for those values in the logic)
  • Create a method in the admin.service.ts file to update the visibleToNonAdmins field.
  • perhaps an update for dynamic task fetching
@arath7 arath7 changed the title Disable stages for normal users to see in task template editing Backend: API request for hiding stages for non-admin users to see in task template editing Jan 20, 2025
@arath7 arath7 changed the title Backend: API request for hiding stages for non-admin users to see in task template editing Backend: API request for hiding/showing task templates for non-admin users Jan 20, 2025
@arath7 arath7 changed the title Backend: API request for hiding/showing task templates for non-admin users Backend: API request for hiding/showing task template stages for non-admin users Jan 22, 2025
bderbs30 pushed a commit that referenced this issue Jan 26, 2025
@arath7 arath7 changed the title Backend: API request for hiding/showing task template stages for non-admin users Backend: API request for hiding/showing task templates for non-admin users Feb 4, 2025
@bderbs30 bderbs30 linked a pull request Feb 4, 2025 that will close this issue
1 task
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 a pull request may close this issue.

3 participants