Skip to content

Added resource endpoint for limiting access to instant book interactive slide #245

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

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

tuj
Copy link
Contributor

@tuj tuj commented Jun 12, 2025

Issue

#244

Link to ticket

https://leantime.itkdev.dk/#/tickets/showTicket/4680

Description

Added resource endpoint for limiting access to instant book interactive slide.

See issue for further explanation.

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

@tuj tuj self-assigned this Jun 12, 2025
@tuj tuj added the enhancement New feature or request label Jun 12, 2025
@tuj tuj requested a review from sinejespersen June 12, 2025 12:41
@@ -124,7 +129,7 @@ private function getToken(Tenant $tenant, InteractiveSlide $interactive): string
$configuration = $interactive->getConfiguration();

if (null === $configuration) {
throw new \Exception('InteractiveNoConfiguration');
throw new BadRequestHttpException('Interactive no configuration');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does "Interactive no configuration" mean?

@@ -75,6 +76,10 @@ public function getConfigOptions(): array
'required' => true,
'description' => 'The key in the KeyVault for the password of the user.',
],
'resourceEndpoint' => [
'required' => false,
'description' => 'The key in the KeyVault for the resources endpoint. This should supply a json list of resources that can be booked. The resources should have ResourceMail and allowInstantBooking ("True"/"False") properties set.',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this: 'The key in the KeyVault for the resources endpoint.'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add a comment to the configuration section.

Copy link
Contributor

@sinejespersen sinejespersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some changes, some questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants