Dynamically generate permissionsMap and channelPemissionsMap validation schemas in permissionsValidator.js #60

Closed
opened 2024-12-11 06:16:35 -05:00 by rainbownapkin · 1 comment
rainbownapkin commented 2024-12-11 06:16:35 -05:00 (Migrated from gitlab.com)

Currently when adding new permissions to canopy there are two steps:

  • Add the permission to the permissions/channelPermissions DB Schema
  • Add the permission to the permissions/channelPermissions validation schema

If we checked the DB and dynamically filled the validation schema on startup it would only take a change of one file in one place to add new permission types to canopy

Currently when adding new permissions to canopy there are two steps: - Add the permission to the permissions/channelPermissions DB Schema - Add the permission to the permissions/channelPermissions validation schema If we checked the DB and dynamically filled the validation schema on startup it would only take a change of one file in one place to add new permission types to canopy
rainbownapkin commented 2024-12-15 19:07:05 -05:00 (Migrated from gitlab.com)

Permissions validation schemas now dynamically generate from database schemas: 1bf89e62e7

Permissions validation schemas now dynamically generate from database schemas: 1bf89e62e796979a0c0b6e40b46aece388356d32
rainbownapkin (Migrated from gitlab.com) closed this issue 2024-12-15 19:07:06 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: rainbownapkin/canopy#60
No description provided.