Skip to content

Commit

Permalink
Remove old todos (#3851)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndricimrr committed Aug 12, 2024
1 parent 18f045c commit 64fe20e
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 35 deletions.
2 changes: 1 addition & 1 deletion container/src/LuigiCompoundContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
compound: compoundConfig,
viewUrl: viewurl,
webcomponent: GenericHelperFunctions.checkWebcomponentValue(webcomponent) || true
}; // TODO: fill with sth
};
if (!thisComponent.getNoShadow()) {
mainComponent.innerHTML=''
const shadow = thisComponent.attachShadow({ mode: "open"});
Expand Down
4 changes: 1 addition & 3 deletions container/src/services/container.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,14 @@ export class ContainerService {
msg: LuigiInternalMessageID.SEND_CONTEXT_HANDSHAKE,
context: targetCnt.context || {},
internal: {},
authData: targetCnt.authData || {},
authData: targetCnt.authData || {}
},
'*'
);
break;
case LuigiInternalMessageID.NAVIGATION_REQUEST:
this.dispatch(Events.NAVIGATION_REQUEST, targetCnt, event.data.params);
break;
// TODO 1: handle alerts with ids on next iteration
case LuigiInternalMessageID.ALERT_REQUEST:
this.dispatch(Events.ALERT_REQUEST, targetCnt, event);
break;
Expand Down Expand Up @@ -164,7 +163,6 @@ export class ContainerService {
case LuigiInternalMessageID.GET_CURRENT_ROUTE_REQUEST:
this.dispatch(Events.GET_CURRENT_ROUTE_REQUEST, targetCnt, event);
break;
// TODO: discuss if actually needed as the only scenario is when microfrontend initially starts
case LuigiInternalMessageID.NAVIGATION_COMPLETED_REPORT:
this.dispatch(Events.NAVIGATION_COMPLETED_REPORT, targetCnt, event);
break;
Expand Down
2 changes: 1 addition & 1 deletion container/src/services/webcomponents.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export class WebComponentService {

if (wc.__postProcess) {
const url =
new URL(document.baseURI).origin === new URL(viewUrl, document.baseURI).origin // TODO: check if needed
new URL(document.baseURI).origin === new URL(viewUrl, document.baseURI).origin
? new URL('./', new URL(viewUrl, document.baseURI))
: new URL('./', viewUrl);
wc.__postProcess(ctx, clientAPI, url.origin + url.pathname);
Expand Down
1 change: 0 additions & 1 deletion core/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,6 @@
msg: 'luigi.ux.alert.hide',
id,
dismissKey
//TODO: update docu for this param
};
IframeHelpers.sendMessageToIframe(iframe, message);
} else if (alert.promise) {
Expand Down
19 changes: 0 additions & 19 deletions scripts/tools/release-cli/release-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,6 @@ function addToChangelog(versionText, changelog, lastline) {
logHeadline('Appended changelog');
}

// function replaceInAllFiles(search, replace) {
// try {
// // TODO: Getting errors while it is working fine from command line. Seems node cannot handle pipes while evaluating commands.
// require('child_process').execSync(
// `cd ${__dirname} && ./replaceInAllFiles.sh "${search}" "${replace}"`,
// { stdio: [0, 1, 2] }
// );
// logHeadline('\nReplaced version in files.');
// } catch (error) {
// logError('Replace error:', error);
// }
// }

/**
* PROMPT
*/
Expand Down Expand Up @@ -233,12 +220,6 @@ function addToChangelog(versionText, changelog, lastline) {
}
} // end if changelog

/**
* REPLACE VERSION IN FILES
*/
// TODO: disabled due to runtime errors and added as console log
// replaceInAllFiles('NEXTRELEASE', `${input.version}`);

/**
* UPDATE PACKAGE-LOCKS
* Skip when running in ci for nightly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,6 @@ describe('JS-TEST-APP 2', () => {
.openAsModal('/home/one');
});

// TODO - Accessing LuigiCLient directly results in flaky behavoir, skip for now
// cy.getModalWindow().then(win => {
// assert.deepEqual(win.LuigiClient.getNodeParams(), { mp: 'one' });
// });

cy.expectPathToBe('/home?mymodal=' + encodeURIComponent('/home/one?~mp=one'));
});

Expand All @@ -346,11 +341,6 @@ describe('JS-TEST-APP 2', () => {
.openAsModal('/home/one');
});

// TODO - Accessing LuigiCLient directly results in flaky behavoir, skip for now
// cy.getModalWindow().then(win => {
// assert.deepEqual(win.LuigiClient.getNodeParams(), { mp: 'one' });
// });

cy.expectPathToBe('/home');
cy.location().should(location => {
expect(location.search).to.eq('?mymodal=' + encodeURIComponent('/home/one?~mp=one'));
Expand Down

0 comments on commit 64fe20e

Please sign in to comment.