-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Booking function #8
Comments
A fork that has implemented this and could be used for inspiration: Originally posted by @ff12345678 in #7 (comment) |
Good night
Sorry, I was only able to test it now, but it doesn't work,
Compiling some warnings, the project runs normally, but when I try to reserve the room the popup appears, but it doesn't reserve the room.
Any problems with the code or could it be authorities with Azure/o365?
Please help me
Thanks
***@***.***
De: Finn Kristian Meland ***@***.***>
Enviada: 3 de novembro de 2022 07:05
Para: probits-as/MeetEasier ***@***.***>
Cc: ff12345678 ***@***.***>; Mention ***@***.***>
Assunto: Re: [probits-as/MeetEasier] Booking function (Issue #8)
A fork that has implemented this and could be used for inspiration:
* https://github.com/Collie147/MeetEasier
—
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AD4OWWID2EMAL3AJUHY2M6DWGNPZNANCNFSM6AAAAAARV2HKHY>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hmm... sorry I didn't have much time to work on it yesterday 😅 But, it should mostly work, I tested it briefly, booking, and extend/end/book after should also work. You will need to grant another permisson to the application in Azure, the permission Calendars.ReadWrite is needed for booking, did you add this permission and grant it? Any errors in the terminal when booking? |
I am grateful for your availability and professionalism.
I don't get a terminal error when I run booking, and extend/end/book but it's like doing nothing.
Yes I gave the permissions Calendars.ReadWrite I was suspicious that it could come from there but it was not the case.
The terminal responds, the button is functional, Booking Now appears but does nothing, as if it did not reserve the room
Could you help me please?
Thank you very much
***@***.***
[Uma imagem com texto Descrição gerada automaticamente]
De: Finn Kristian Meland ***@***.***>
Enviada: 4 de novembro de 2022 04:24
Para: probits-as/MeetEasier ***@***.***>
Cc: ff12345678 ***@***.***>; Mention ***@***.***>
Assunto: Re: [probits-as/MeetEasier] Booking function (Issue #8)
Hmm... sorry I didn't have much time to work on it yesterday 😅 But, it should mostly work, I tested it briefly, booking, and extend/end/book after should also work.
You will need to grant another permisson to the application in Azure, the permission Calendars.ReadWrite is needed for booking, did you add this permission and grant it? Any errors in the terminal when booking?
—
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AD4OWWKIC7REL6LAPV46GCDWGSFXXANCNFSM6AAAAAARV2HKHY>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hello
I've been testing today and apparently it's working, today I have some urgent matters to finish tonight, I'll test it in detail and let you know.
I don't know how to thank you for your help 😊
A situation I wanted to put would be in the single-room panel a button to view the flightboard simply for x seconds to eventually see an empty room after this popup would be closed and we would be seeing the initial panel of the single room again
You think it would be very complicated, could you help me, that would allow a person when he is next to a room that is busy to have a view of other available rooms and go to the available room.
Thanks,
Route Room Booking
***@***.*** | ROOM-xxxx | 2022-11-04T10:53:16.572Z | 2022-11-04T10:53:29.776Z | EndNow
{
***@***.***': https://graph.microsoft.com/v1.0/$metadata#users('xxxxxx%xxxxxxx')/calendar/events/$entity,
***@***.***': 'xxxxxxxxxxxxxxxxxx',
id: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
createdDateTime: '2022-11-04T10:53:17.046066Z',
lastModifiedDateTime: '2022-11-04T10:53:31.0044862Z',
changeKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
categories: [],
transactionId: null,
originalStartTimeZone: 'UTC',
originalEndTimeZone: 'UTC',
iCalUId: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
reminderMinutesBeforeStart: 15,
isReminderOn: true,
hasAttachments: false,
subject: 'Booked by MeetEasier',
bodyPreview: 'Room Booked by Room Panel',
importance: 'normal',
sensitivity: 'normal',
isAllDay: false,
isCancelled: false,
isOrganizer: true,
responseRequested: true,
seriesMasterId: null,
showAs: 'busy',
type: 'singleInstance',
webLink: 'https://outlook.office365.com/owa/?itemid=xxxxxxxxxxxxxxxxxxx isOnlineMeeting: false,
onlineMeetingProvider: 'unknown',
allowNewTimeProposals: true,
occurrenceId: null,
isDraft: false,
hideAttendees: false,
responseStatus: { response: 'organizer', time: '0001-01-01T00:00:00Z' },
body: {
contentType: 'html',
content: '<html>\r\n' +
'<head>\r\n' +
'<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n' +
'</head>\r\n' +
'<body>\r\n' +
'Room Booked by Room Panel\r\n' +
'</body>\r\n' +
'</html>\r\n'
},
start: { dateTime: '2022-11-04T10:53:16.5720000', timeZone: 'UTC' },
end: { dateTime: '2022-11-04T10:53:29.7760000', timeZone: 'UTC' },
location: {
displayName: ***@***.***',
locationType: 'default',
uniqueId: ***@***.***',
uniqueIdType: 'private'
},
locations: [
{
displayName: ***@***.***',
locationType: 'default',
uniqueId: ***@***.***',
uniqueIdType: 'private'
}
],
recurrence: null,
attendees: [ { type: 'required', status: [Object], emailAddress: [Object] } ],
organizer: {
emailAddress: { name: 'ROOM-xxxx', address: ***@***.***' }
},
onlineMeeting: null
}
|
Glad you got it working, the code is messy, and needs more work, and I'm still learning node / javascript, my goto language is golang, which is one of the reason I want to port the node backend to golang, and embed the react-ui inside the golang executable. It sounds like a good idea, to be able to show a modified flightboard with only available rooms, and perhaps a book now button to be able to book that room from the device/room you are currently at. Shouldn't be too much work to implement this as the elements required for this should already exist in the codebase, just a matter of desiging the react-component and reusing some queries etc, would need to modify the getRooms query to only show available rooms. I don't think I have any more time to work on it this week, but I wil have a look at it next week. |
Many thanks for your responsiveness, availability and professionalism.
Thank you again for your help and eagerly await your feedback.
I think this change will be of great interest to the community.
It is true that if the room is occupied, having an option on site to see which room is available would be great
I wish you a very good weekend
De: Finn Kristian Meland ***@***.***>
Enviada: 4 de novembro de 2022 12:58
Para: probits-as/MeetEasier ***@***.***>
Cc: ff12345678 ***@***.***>; Mention ***@***.***>
Assunto: Re: [probits-as/MeetEasier] Booking function (Issue #8)
Glad you got it working, the code is messy, and needs more work, and I'm still learning node / javascript, my goto language is golang, which is one of the reason I want to port the node backend to golang, and embed the react-ui inside the golang executable.
It sounds like a good idea, to be able to show a modified flightboard with only available rooms, and perhaps a book now button to be able to book that room from the device/room you are currently at. Shouldn't be too much work to implement this as the elements required for this should already exist in the codebase, just a matter of desiging the react-component and reusing some queries etc, would need to modify the getRooms query to only show available rooms.
I don't think I have any more time to work on it this week, but I wil have a look at it next week.
—
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AD4OWWPT22GTRHJSGOO3XIDWGUB4VANCNFSM6AAAAAARV2HKHY>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Good afternoon,
I hope everything is fine with you.
I would like to know if you had time to see the situation we talked about last week, I know that it may take some time and have some complexity. Certainly taking into account its lack of availability,
I would like to know if it would be possible to insert only a button “View availability all room” when the user clicked on this button and opened a poppup with the same format as the flightboard, this popup was closed manually or if the user did not close, it closed automatically after 10 seconds.
Do you think you can help me, I send below a small graphic scheme with what I was thinking.
Do you think you could help me?
Thanks
***@***.***
***@***.***
De: Filipe Fonseca
Enviada: 4 de novembro de 2022 13:43
Para: probits-as/MeetEasier ***@***.***>; probits-as/MeetEasier ***@***.***>
Cc: Mention ***@***.***>
Assunto: RE: [probits-as/MeetEasier] Booking function (Issue #8)
Many thanks for your responsiveness, availability and professionalism.
Thank you again for your help and eagerly await your feedback.
I think this change will be of great interest to the community.
It is true that if the room is occupied, having an option on site to see which room is available would be great
I wish you a very good weekend
De: Finn Kristian Meland ***@***.******@***.***>>
Enviada: 4 de novembro de 2022 12:58
Para: probits-as/MeetEasier ***@***.******@***.***>>
Cc: ff12345678 ***@***.******@***.***>>; Mention ***@***.******@***.***>>
Assunto: Re: [probits-as/MeetEasier] Booking function (Issue #8)
Glad you got it working, the code is messy, and needs more work, and I'm still learning node / javascript, my goto language is golang, which is one of the reason I want to port the node backend to golang, and embed the react-ui inside the golang executable.
It sounds like a good idea, to be able to show a modified flightboard with only available rooms, and perhaps a book now button to be able to book that room from the device/room you are currently at. Shouldn't be too much work to implement this as the elements required for this should already exist in the codebase, just a matter of desiging the react-component and reusing some queries etc, would need to modify the getRooms query to only show available rooms.
I don't think I have any more time to work on it this week, but I wil have a look at it next week.
—
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AD4OWWPT22GTRHJSGOO3XIDWGUB4VANCNFSM6AAAAAARV2HKHY>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Good morning. I haven't had any time yet to work on this project, as it has been busy at work, but I might have some time later tonight after gym, if I didn't die at the gym 💪😂, and maybe some time tomorrow as well. I think I might have a POC ready before the weekend. The feature you are talking about should be straight forward to implement. |
Thanks for your help !!!
I wish you a lot of strength and luck with your gym.
I look forward to hearing from you, do not hesitate to contact me if you have any questions that might help.
thanks again
De: Finn Kristian Meland ***@***.***>
Enviada: 9 de novembro de 2022 07:03
Para: probits-as/MeetEasier ***@***.***>
Cc: ff12345678 ***@***.***>; Mention ***@***.***>
Assunto: Re: [probits-as/MeetEasier] Booking function (Issue #8)
Good morning.
I haven't had any time yet to work on this project, as it has been busy at work, but I might have some time later tonight after gym, if I didn't die at the gym 💪😂, and maybe some time tomorrow as well.
I think I might have a POC ready before the weekend.
The feature you are talking about should be straight forward to implement.
There was no image attached to your reply to illustrate what you where thinking the feature should look like,
it could be that Github doesn't like images in email-replies...
—
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AD4OWWJ3EB46FMY2IQG2Y53WHNECHANCNFSM6AAAAAARV2HKHY>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Hi, hmm, it seems like the route /api/roombooking is using the ews api for booking and not the msgraph api. See the function on line 65 in file app/routes.js // books a room
app.get('/api/roombooking', function (req, res) {
let api;
if (config.calendarSearch.useGraphAPI === 'true') {
api = require('./msgraph/roombooking.js');
} else {
api = require('./ews/roombooking.js');
} You could remove the if statement and force it to use msgraph. Did you set SEARCH_USE_GRAPHAPI=true in your .env file? (true in lowercase) You are using this for o365? I havent worked on implementing the original function for booking through the ews-api, as the only use for this now is on prem exchange-servers, wouldn't take much time to fix, but havent prioritized it yet. |
I agree, but some people might still use it for old on prem solutions, but then again, the original work from danxfisher should work just fine for them. I think I should just remove it from this fork as you suggest. |
What file is this in your screenshot? You will need the files app/msgraph/roombooking.js and app/msgraph/graph.js from the feat/roombooking branch... or just checkout the entire branch and run as is... The BookRoom function is located in app/msgraph/graph.js and the function that routes.js calls is located in app/msgraph/roombooking.js https://github.com/probits-as/MeetEasier/blob/feat/roombooking/app/msgraph/graph.js |
So, status update on the "View available rooms" feature (maybe it should be its own issue 🤔). I said I would probably have a working POC before the weekend, but I'm sorry to say that I have not been able to work on this yet 😞, hopefully I will get a POC ready next week. |
Hello |
Just a quick update... @Axel-Roy How did it go with your booking issues? (Just curious 😊) |
Thank you in advance for your feedback and I look forward to your availability.
Thanks,
De: Finn Kristian Meland ***@***.***>
Enviada: 17 de novembro de 2022 20:06
Para: probits-as/MeetEasier ***@***.***>
Cc: ff12345678 ***@***.***>; Mention ***@***.***>
Assunto: Re: [probits-as/MeetEasier] Booking function (Issue #8)
Just a quick update...
I'm sorry to say I still haven't been able to work on this, hopefully things will quiet down next week.
@Axel-Roy<https://github.com/Axel-Roy> How did it go with your booking issues? (Just curious 😊)
—
Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AD4OWWKLMP65RN6XESSKL73WI2FZBANCNFSM6AAAAAARV2HKHY>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
single-room.zip
Originally posted by @ff12345678 in #7 (comment)
The text was updated successfully, but these errors were encountered: