Verified Commit 800f3070 authored by Michael Angelo Rivera's avatar Michael Angelo Rivera Committed by GitLab
Browse files

feat(ontology): introduce admin-gated User columns

parent 95acb27d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
8
9
+1 −1
Original line number Diff line number Diff line
-- SCHEMA_VERSION=8 [AUTOGENERATED — DO NOT EDIT MANUALLY]
-- SCHEMA_VERSION=9 [AUTOGENERATED — DO NOT EDIT MANUALLY]
-- Regenerate with: mise schema:generate:ddl

CREATE TABLE IF NOT EXISTS checkpoint (
+1 −1
Original line number Diff line number Diff line
-- SCHEMA_VERSION=8 [AUTOGENERATED — DO NOT EDIT MANUALLY]
-- SCHEMA_VERSION=9 [AUTOGENERATED — DO NOT EDIT MANUALLY]
-- Regenerate with: mise schema:generate:ddl:local

CREATE TABLE IF NOT EXISTS gl_definition (
+14 −7
Original line number Diff line number Diff line
@@ -35,7 +35,8 @@ properties:
    source: email
    nullable: false
    like_allowed: false
    description: "Primary email address."
    admin_only: true
    description: "Primary email address. Gated by `read_user_email_address` in GitLab; surfaced here only to admins until per-cell authorization lands."

  name:
    type: string
@@ -47,13 +48,15 @@ properties:
    type: string
    source: first_name
    nullable: true
    description: "First name, if provided."
    admin_only: true
    description: "First name, if provided. Not exposed on any public GitLab user surface; admins only."

  last_name:
    type: string
    source: last_name
    nullable: true
    description: "Last name, if provided."
    admin_only: true
    description: "Last name, if provided. Not exposed on any public GitLab user surface; admins only."

  created_at:
    type: timestamp
@@ -65,7 +68,8 @@ properties:
    type: timestamp
    source: updated_at
    nullable: true
    description: "Timestamp when the user record was last updated."
    admin_only: true
    description: "Timestamp when the user record was last updated. Not exposed on any public GitLab user surface; admins only."

  state:
    type: enum
@@ -98,7 +102,8 @@ properties:
    type: string
    source: preferred_language
    nullable: true
    description: "User's preferred UI language."
    admin_only: true
    description: "User's preferred UI language. Self-only on GitLab REST; admins only here until per-cell authorization lands."

  last_activity_on:
    type: date
@@ -110,7 +115,8 @@ properties:
    type: boolean
    source: private_profile
    nullable: false
    description: "Whether the user profile is private."
    admin_only: true
    description: "Whether the user profile is private. Self-only on GitLab REST; admins only here."

  is_admin:
    type: boolean
@@ -130,7 +136,8 @@ properties:
    type: boolean
    source: external
    nullable: false
    description: "Whether the user is marked as external."
    admin_only: true
    description: "Whether the user is marked as external. Self-only on GitLab REST and admin-only via UserWithAdmin; admins only here."

  user_type:
    type: enum
+4 −0
Original line number Diff line number Diff line
@@ -11,6 +11,10 @@ pub fn test_security_context() -> SecurityContext {
    SecurityContext::new(1, vec!["1/".into()]).expect("valid security context")
}

pub fn admin_security_context() -> SecurityContext {
    test_security_context().with_role(true, None)
}

pub async fn compile_and_execute(
    ctx: &TestContext,
    json: &str,
Loading