Skip to content
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

Made RTD endpoint optional. Read the floors from local storage if the dynamic endpoint is not provided. #23

Merged
merged 5 commits into from
Jul 31, 2024

Conversation

pnhegde
Copy link

@pnhegde pnhegde commented Jul 23, 2024

Type of change

  • [ x ] Feature

Description of change

Providing RTD endpoint param is optional now. In case of missing RTD endpoint, it tries to read the required data either from local storage or from global variables.

Copy link

Tread carefully! This PR adds 2 linter errors (possibly disabled through directives):

  • modules/pubxaiRtdProvider.js (+2 errors)

@pnhegde pnhegde requested review from tej656 and nathan-pubx July 23, 2024 15:36
@pnhegde pnhegde requested review from Nikhil-X and removed request for nathan-pubx July 23, 2024 15:39
Copy link

Tread carefully! This PR adds 2 linter errors (possibly disabled through directives):

  • modules/pubxaiRtdProvider.js (+2 errors)

} else {
// Fetch from local storage
try {
const localData = storage.getDataFromLocalStorage('pubx:dynamicFloors') || window.__pubxDynamicFloors__;

Choose a reason for hiding this comment

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

This data is written to localStorage by RTD module or will be written by the external floors loading script?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes

Copy link
Collaborator

@tej656 tej656 left a comment

Choose a reason for hiding this comment

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

lgtm

@pnhegde pnhegde merged commit f87c0b9 into master Jul 31, 2024
4 checks passed
@pnhegde pnhegde deleted the feat/updatePubxaiRtdModule branch July 31, 2024 11:44
@pnhegde pnhegde restored the feat/updatePubxaiRtdModule branch July 31, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants