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

Add possibility to unload Luigi #1304

Merged
merged 16 commits into from
May 11, 2020
Merged

Conversation

maxmarkus
Copy link
Contributor

@maxmarkus maxmarkus commented Apr 27, 2020

Adds Luigi.unload() method to unload Luigi Core application, which then can be re-created with Luigi.config(...). It also checks for unload() method in the active auth provider to unload logic which might break stuff (eg. setInterval).

Fixes #1126

Comment on lines -25 to -26
window.onunload = () =>
window.removeEventListener('message', helperListener);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved to event-listener-helpers.js.

Copy link
Contributor

@alexandra-simeonova alexandra-simeonova left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Just a very small language comment

docs/luigi-core-api.md Outdated Show resolved Hide resolved
@alexandra-simeonova alexandra-simeonova self-assigned this Apr 28, 2020
@zarkosimic zarkosimic self-assigned this May 4, 2020
@JohannesDoberer JohannesDoberer self-assigned this May 4, 2020
Copy link
Contributor

@JohannesDoberer JohannesDoberer left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Contributor

@zarkosimic zarkosimic left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@maxmarkus maxmarkus merged commit cc3d8aa into SAP:master May 11, 2020
JohannesDoberer added a commit that referenced this pull request May 20, 2020
* master:
  Migrate setup scripts to v1 (#1325)
  Add pre commit hook (#1344)
  Update npm dependencies in luigi-landingpage (#1346)
  Added read-only keyword labels to documentation (#1313)
  Cleanup the mock login page (#1340)
  Enable nightly builds (#1334)
  Fix input validation in fiddle idpmock (#1309)
  change travis to fix only on push to master (#1338)
  added selected state (#1326)
  Migrate example apps to v1 (#1311)
  Provide config in JS format to Fiddle e2e tests (#1305)
  Add Youtube section to the landing page and Documentation (#1315)
  Add a note about loadingIndicator to pageErrorHandler  (#1310)
  Run compatibility tests in ci (#1307)
  Add possibility to unload Luigi (#1304)
JohannesDoberer added a commit to JohannesDoberer/luigi that referenced this pull request May 20, 2020
* master:
  Enable nightly builds (SAP#1334)
  Fix input validation in fiddle idpmock (SAP#1309)
  change travis to fix only on push to master (SAP#1338)
  added selected state (SAP#1326)
  Migrate example apps to v1 (SAP#1311)
  Provide config in JS format to Fiddle e2e tests (SAP#1305)
  Add Youtube section to the landing page and Documentation (SAP#1315)
  Add a note about loadingIndicator to pageErrorHandler  (SAP#1310)
  Run compatibility tests in ci (SAP#1307)
  Add possibility to unload Luigi (SAP#1304)
JohannesDoberer added a commit to JohannesDoberer/luigi that referenced this pull request May 20, 2020
* feature-globalsearch:
  Migrate setup scripts to v1 (SAP#1325)
  Add pre commit hook (SAP#1344)
  Update npm dependencies in luigi-landingpage (SAP#1346)
  Added read-only keyword labels to documentation (SAP#1313)
  Cleanup the mock login page (SAP#1340)
  Enable nightly builds (SAP#1334)
  Fix input validation in fiddle idpmock (SAP#1309)
  change travis to fix only on push to master (SAP#1338)
  added selected state (SAP#1326)
  Migrate example apps to v1 (SAP#1311)
  Provide config in JS format to Fiddle e2e tests (SAP#1305)
  Add Youtube section to the landing page and Documentation (SAP#1315)
  Add a note about loadingIndicator to pageErrorHandler  (SAP#1310)
  Run compatibility tests in ci (SAP#1307)
  Add possibility to unload Luigi (SAP#1304)
JohannesDoberer added a commit to JohannesDoberer/luigi that referenced this pull request May 20, 2020
* search-provider-interface:
  Migrate setup scripts to v1 (SAP#1325)
  Add pre commit hook (SAP#1344)
  Update npm dependencies in luigi-landingpage (SAP#1346)
  Added read-only keyword labels to documentation (SAP#1313)
  Cleanup the mock login page (SAP#1340)
  Enable nightly builds (SAP#1334)
  Fix input validation in fiddle idpmock (SAP#1309)
  change travis to fix only on push to master (SAP#1338)
  added selected state (SAP#1326)
  Migrate example apps to v1 (SAP#1311)
  Provide config in JS format to Fiddle e2e tests (SAP#1305)
  Add Youtube section to the landing page and Documentation (SAP#1315)
  Add a note about loadingIndicator to pageErrorHandler  (SAP#1310)
  Run compatibility tests in ci (SAP#1307)
  Add possibility to unload Luigi (SAP#1304)
@ndricimrr ndricimrr mentioned this pull request Jun 4, 2020
@maxmarkus maxmarkus deleted the 1126-reinitialize-luigi branch June 15, 2020 12:36
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
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.

Reinitialising Luigi HTML container dynamically
4 participants