@@ -32,28 +32,28 @@ func TestBuildV1MeetingTuples(t *testing.T) {
3232 {
3333 name : "minimal v1 meeting" ,
3434 meeting : & v1MeetingStub {
35- MeetingID : "test-meeting-id" ,
35+ UID : "test-meeting-id" ,
3636 ProjectUID : "proj-123" ,
3737 },
3838 expected : 1 , // project relation only
3939 },
4040 {
4141 name : "public v1 meeting with committee" ,
4242 meeting : & v1MeetingStub {
43- MeetingID : "test-meeting-id" ,
44- Visibility : "public" ,
43+ UID : "test-meeting-id" ,
44+ Public : true ,
4545 ProjectUID : "proj-123" ,
46- Committee : "committee-1" ,
46+ Committees : [] string { "committee-1" } ,
4747 },
4848 expected : 3 , // public + project + committee
4949 },
5050 {
5151 name : "private v1 meeting" ,
5252 meeting : & v1MeetingStub {
53- MeetingID : "test-meeting-id" ,
54- Visibility : "private" ,
53+ UID : "test-meeting-id" ,
54+ Public : false ,
5555 ProjectUID : "proj-123" ,
56- Committee : "committee-1" ,
56+ Committees : [] string { "committee-1" } ,
5757 },
5858 expected : 2 , // project + committee (no public access)
5959 },
@@ -68,7 +68,7 @@ func TestBuildV1MeetingTuples(t *testing.T) {
6868 },
6969 }
7070
71- object := constants .ObjectTypeV1Meeting + tt .meeting .MeetingID
71+ object := constants .ObjectTypeV1Meeting + tt .meeting .UID
7272 tuples , err := handlerService .buildV1MeetingTuples (object , tt .meeting )
7373
7474 assert .NoError (t , err )
@@ -110,20 +110,20 @@ func TestBuildV1PastMeetingTuples(t *testing.T) {
110110 {
111111 name : "minimal v1 past meeting" ,
112112 pastMeeting : & v1PastMeetingStub {
113- MeetingAndOccurrenceID : "past-meeting-occurrence-id" ,
114- MeetingID : "meeting-123" ,
115- ProjectUID : "proj-123" ,
113+ UID : "past-meeting-occurrence-id" ,
114+ MeetingUID : "meeting-123" ,
115+ ProjectUID : "proj-123" ,
116116 },
117117 expected : 2 , // meeting relation + project relation
118118 },
119119 {
120120 name : "public v1 past meeting with committee" ,
121121 pastMeeting : & v1PastMeetingStub {
122- MeetingAndOccurrenceID : "past-meeting-occurrence-id" ,
123- MeetingID : "meeting-123" ,
124- Visibility : "public" ,
125- ProjectUID : "proj-123" ,
126- Committee : "committee-1" ,
122+ UID : "past-meeting-occurrence-id" ,
123+ MeetingUID : "meeting-123" ,
124+ Public : true ,
125+ ProjectUID : "proj-123" ,
126+ Committees : [] string { "committee-1" } ,
127127 },
128128 expected : 4 , // public + meeting + project + committee
129129 },
@@ -138,7 +138,7 @@ func TestBuildV1PastMeetingTuples(t *testing.T) {
138138 },
139139 }
140140
141- object := constants .ObjectTypeV1PastMeeting + tt .pastMeeting .MeetingAndOccurrenceID
141+ object := constants .ObjectTypeV1PastMeeting + tt .pastMeeting .UID
142142 tuples , err := handlerService .buildV1PastMeetingTuples (object , tt .pastMeeting )
143143
144144 assert .NoError (t , err )
@@ -156,7 +156,7 @@ func TestBuildV1PastMeetingTuples(t *testing.T) {
156156 if tuple .User == constants .UserWildcard && tuple .Relation == constants .RelationViewer {
157157 foundPublic = true
158158 }
159- if tuple .User == constants . ObjectTypeV1Meeting + "meeting-123" && tuple . Relation == constants .RelationMeeting {
159+ if tuple .Relation == constants .RelationMeeting {
160160 foundMeeting = true
161161 }
162162 if tuple .User == constants .ObjectTypeProject + "proj-123" && tuple .Relation == constants .RelationProject {
@@ -200,13 +200,13 @@ func TestBuildV1PastMeetingArtifactTuples(t *testing.T) {
200200 name : "meeting_hosts visibility" ,
201201 artifactVisibility : "meeting_hosts" ,
202202 participants : participants ,
203- expected : 2 , // past_meeting relation + 1 host viewer
203+ expected : 2 , // past_meeting relation + 1 host_view relation
204204 },
205205 {
206206 name : "meeting_participants visibility" ,
207207 artifactVisibility : "meeting_participants" ,
208208 participants : participants ,
209- expected : 4 , // past_meeting relation + 3 participant viewers
209+ expected : 4 , // past_meeting relation + 3 view relations (host_view, attendee_view, participant_view)
210210 },
211211 {
212212 name : "unknown visibility" ,
@@ -257,10 +257,10 @@ func TestV1MeetingUpdateAccessHandler(t *testing.T) {
257257 {
258258 name : "valid v1 meeting with all fields" ,
259259 messageData : mustMarshalJSON (v1MeetingStub {
260- MeetingID : "meeting-123" ,
261- Visibility : "public" ,
260+ UID : "meeting-123" ,
261+ Public : true ,
262262 ProjectUID : "project-456" ,
263- Committee : "committee1" ,
263+ Committees : [] string { "committee1" } ,
264264 }),
265265 replySubject : "reply.subject" ,
266266 setupMocks : func (service * HandlerService , msg * MockNatsMsg ) {
@@ -296,8 +296,8 @@ func TestV1MeetingUpdateAccessHandler(t *testing.T) {
296296 {
297297 name : "missing project UID" ,
298298 messageData : mustMarshalJSON (v1MeetingStub {
299- MeetingID : "meeting-123" ,
300- Visibility : "public" ,
299+ UID : "meeting-123" ,
300+ Public : true ,
301301 }),
302302 setupMocks : func (service * HandlerService , msg * MockNatsMsg ) {
303303 // No mocks needed for validation error
@@ -354,11 +354,11 @@ func TestV1PastMeetingUpdateAccessHandler(t *testing.T) {
354354 {
355355 name : "valid v1 past meeting" ,
356356 messageData : mustMarshalJSON (v1PastMeetingStub {
357- MeetingAndOccurrenceID : "past-meeting-123" ,
358- MeetingID : "meeting-456" ,
359- Visibility : "private" ,
360- ProjectUID : "project-789" ,
361- Committee : "committee1" ,
357+ UID : "past-meeting-123" ,
358+ MeetingUID : "meeting-456" ,
359+ Public : false ,
360+ ProjectUID : "project-789" ,
361+ Committees : [] string { "committee1" } ,
362362 }),
363363 replySubject : "reply.subject" ,
364364 setupMocks : func (service * HandlerService , msg * MockNatsMsg ) {
@@ -394,9 +394,9 @@ func TestV1PastMeetingUpdateAccessHandler(t *testing.T) {
394394 {
395395 name : "missing project UID" ,
396396 messageData : mustMarshalJSON (v1PastMeetingStub {
397- MeetingAndOccurrenceID : "past-meeting-123" ,
398- MeetingID : "meeting-456" ,
399- Visibility : "public" ,
397+ UID : "past-meeting-123" ,
398+ MeetingUID : "meeting-456" ,
399+ Public : true ,
400400 }),
401401 setupMocks : func (service * HandlerService , msg * MockNatsMsg ) {
402402 // No mocks needed for validation error
@@ -457,7 +457,7 @@ func TestV1PastMeetingRecordingUpdateAccessHandler(t *testing.T) {
457457 "meeting_and_occurrence_id": "past-meeting-456",
458458 "recording_access": "public",
459459 "participants": [
460- {"lf_sso ": "user1", "host": true, "is_invited": true, "is_attended": true}
460+ {"username ": "user1", "host": true, "is_invited": true, "is_attended": true}
461461 ]
462462 }` ),
463463 replySubject : "reply.subject" ,
0 commit comments