Browse Source

Add `WorkingGroupOpeningMetadata.title`

Theophile Sandoz 3 years ago
parent
commit
08d8408796

+ 3 - 0
cli/src/schemas/WorkingGroups.ts

@@ -16,6 +16,9 @@ export const WorkingGroupOpeningInputSchema: JsonSchema<WorkingGroupOpeningInput
       type: 'integer',
       type: 'integer',
       minimum: 1,
       minimum: 1,
     },
     },
+    title: {
+      type: 'string',
+    },
     shortDescription: {
     shortDescription: {
       type: 'string',
       type: 'string',
     },
     },

+ 1 - 0
metadata-protobuf/proto/WorkingGroups.proto

@@ -15,6 +15,7 @@ message OpeningMetadata {
     optional InputType type = 2; // Suggested type of the UI answer input
     optional InputType type = 2; // Suggested type of the UI answer input
   }
   }
   repeated ApplicationFormQuestion application_form_questions = 6; // List of questions that should be answered during application
   repeated ApplicationFormQuestion application_form_questions = 6; // List of questions that should be answered during application
+  optional string title = 7;
 }
 }
 
 
 message UpcomingOpeningMetadata {
 message UpcomingOpeningMetadata {

+ 2 - 0
query-node/mappings/src/workingGroups.ts

@@ -175,6 +175,7 @@ export async function createWorkingGroupOpeningMetadata(
     expectedEndingTimestamp,
     expectedEndingTimestamp,
     hiringLimit,
     hiringLimit,
     shortDescription,
     shortDescription,
+    title,
   } = metadata
   } = metadata
 
 
   const openingMetadata = new WorkingGroupOpeningMetadata({
   const openingMetadata = new WorkingGroupOpeningMetadata({
@@ -182,6 +183,7 @@ export async function createWorkingGroupOpeningMetadata(
     updatedAt: eventTime,
     updatedAt: eventTime,
     originallyValid,
     originallyValid,
     applicationDetails: applicationDetails || undefined,
     applicationDetails: applicationDetails || undefined,
+    title: title ?? undefined,
     description: description || undefined,
     description: description || undefined,
     shortDescription: shortDescription || undefined,
     shortDescription: shortDescription || undefined,
     hiringLimit: hiringLimit || undefined,
     hiringLimit: hiringLimit || undefined,

+ 3 - 0
query-node/schemas/workingGroups.graphql

@@ -157,6 +157,9 @@ type WorkingGroupOpeningMetadata @entity {
   "Whether the originally provided metadata was valid"
   "Whether the originally provided metadata was valid"
   originallyValid: Boolean!
   originallyValid: Boolean!
 
 
+  "Opening title"
+  title: String
+
   "Opening short description"
   "Opening short description"
   shortDescription: String
   shortDescription: String