- Change role from CHAIR to REQ-PARTICIPANT when adding attendees via PeopleSearch - Keep CHAIR role only for organizers
This commit is contained in:
@@ -319,7 +319,7 @@ describe("CalendarApp integration", () => {
|
|||||||
cn: "Bob",
|
cn: "Bob",
|
||||||
partstat: "ACCEPTED",
|
partstat: "ACCEPTED",
|
||||||
rsvp: "TRUE",
|
rsvp: "TRUE",
|
||||||
role: "CHAIR",
|
role: "REQ-PARTICIPANT",
|
||||||
cutype: "INDIVIDUAL",
|
cutype: "INDIVIDUAL",
|
||||||
cal_address: "bob@example.com",
|
cal_address: "bob@example.com",
|
||||||
},
|
},
|
||||||
@@ -379,7 +379,7 @@ describe("CalendarApp integration", () => {
|
|||||||
|
|
||||||
expect(normalAttendee).toBeTruthy();
|
expect(normalAttendee).toBeTruthy();
|
||||||
expect(normalAttendee?.partstat).toBe("ACCEPTED");
|
expect(normalAttendee?.partstat).toBe("ACCEPTED");
|
||||||
expect(normalAttendee?.role).toBe("CHAIR"); //will need to be changed as not the right role
|
expect(normalAttendee?.role).toBe("REQ-PARTICIPANT");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("changes normal attendee to need action on time update and no organizer changes", async () => {
|
it("changes normal attendee to need action on time update and no organizer changes", async () => {
|
||||||
@@ -431,7 +431,7 @@ describe("CalendarApp integration", () => {
|
|||||||
|
|
||||||
expect(normalAttendee).toBeTruthy();
|
expect(normalAttendee).toBeTruthy();
|
||||||
expect(normalAttendee?.partstat).toBe("NEEDS-ACTION");
|
expect(normalAttendee?.partstat).toBe("NEEDS-ACTION");
|
||||||
expect(normalAttendee?.role).toBe("CHAIR"); //will need to be changed as not the right role
|
expect(normalAttendee?.role).toBe("REQ-PARTICIPANT");
|
||||||
});
|
});
|
||||||
it("update event attendees on drag", async () => {
|
it("update event attendees on drag", async () => {
|
||||||
const mockDispatch = jest.fn();
|
const mockDispatch = jest.fn();
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ describe("EventPopover", () => {
|
|||||||
cal_address: "john@example.com",
|
cal_address: "john@example.com",
|
||||||
partstat: "NEED_ACTION",
|
partstat: "NEED_ACTION",
|
||||||
rsvp: "FALSE",
|
rsvp: "FALSE",
|
||||||
role: "CHAIR",
|
role: "REQ-PARTICIPANT",
|
||||||
cutype: "INDIVIDUAL",
|
cutype: "INDIVIDUAL",
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export default function UserSearch({
|
|||||||
cal_address: a.email,
|
cal_address: a.email,
|
||||||
partstat: "NEED_ACTION",
|
partstat: "NEED_ACTION",
|
||||||
rsvp: "FALSE",
|
rsvp: "FALSE",
|
||||||
role: "CHAIR",
|
role: "REQ-PARTICIPANT",
|
||||||
cutype: "INDIVIDUAL",
|
cutype: "INDIVIDUAL",
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user