You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cache admin status per request and clean up method formatting
- Add optional isAdmin parameter to checkPermission and getPermissionSummary
to avoid repeated DB queries per entity in list endpoints
- Compute admin status once in handleListScoreFolderContent and pass through
- Remove trailing semicolons from method closing braces in Auth.ts
- Use SQL column aliases (AS userId, AS authType, AS groupId) instead of
destructuring renames in verifyAndRotateRefreshToken
- Clarify null/undefined convention: null acceptable at external API boundaries,
convert to undefined at first opportunity
Signed-off-by: Mike Lischke <mike@lischke-online.de>
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ Always put a blank line after blocks (`if`/`for`/`while`/`switch`/`case`/anonymo
135
135
136
136
- Use enums for discriminated union type literals (e.g., `enum SelectionGranularity { ... }` instead of `type X = "a" | "b"`).
137
137
- Enum members do not carry string values unless the value is consumed directly as a string (e.g., CSS values).
138
-
- Use `undefined` instead of `null` everywhere.
138
+
- Use `undefined` instead of `null` everywhere in project-owned code. `null` from external APIs (database, libraries) is acceptable at the boundary — convert to `undefined` at the first opportunity.
139
139
- Use `field?: Type` syntax instead of `field: Type | undefined` for optional fields.
140
140
- Interface names always start with a capital `I` (e.g., `ISoundStyleMeta`, `IMeasureStep`).
141
141
- Inline type casts (`as { ... }`) are acceptable for one-off use. If the same anonymous shape appears more than once, extract it to a named interface.
0 commit comments