Skip to content

Commit

Permalink
Mark TODOs in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnaukal committed Jun 13, 2024
1 parent fd9de92 commit 2f13a26
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions client/src/lib/page-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ class SubRoute extends Component {

const render = (resolved, permissions) => {
if (resolved && permissions) {
// TODO: update the following code for the new react router (v6), see also root-trusted.js (`getStructure`)
const subStructure = route.structure(resolved, permissions, params);
const routes = getRoutes(subStructure, route);
const childRoute = routes[0];
Expand Down
3 changes: 2 additions & 1 deletion client/src/lib/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ class SectionContentBase extends Component {
}

componentDidMount() {
/*window.addEventListener('beforeunload', this.beforeUnloadHandler);
/* TODO: update this code for the new router (v6), possibly with https://reactrouter.com/en/main/hooks/use-blocker
window.addEventListener('beforeunload', this.beforeUnloadHandler);
this.historyUnblock = this.props.navigate.block('Changes you made may not be saved. Are you sure you want to leave this page?');
*/
}
Expand Down
3 changes: 2 additions & 1 deletion client/src/root-trusted.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ const getStructure = t => {
},
panelRender: props => <WorkspacePanel panel={props.resolved.panel}/>

/*structure: (resolved, params) => {
/* TODO: update the following code for the new react router (v6), see also page-common.js (`SubRoute`)
structure: (resolved, params) => {
if (resolved.panel.template) {
console.log("resolved.panel.template ok")
return {
Expand Down
6 changes: 4 additions & 2 deletions server/models/signal-sets.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,9 @@ async function getLastId(context, sigSet) {
return lastId;
}

/* queries = [
/** Query the data from signal sets. Basic query description is below, see also https://github.com/smartarch/ivis-core/wiki/Data-Access-from-Templates-(Queries) for more details.
*
* queries = [
{
params: {
withId: <true returns also _id field>
Expand Down Expand Up @@ -539,7 +541,7 @@ async function getLastId(context, sigSet) {
<OR>
docs: { // TODO: Not implemented yet
docs: {
limit: <max no. of records>,
sort: [
{
Expand Down

0 comments on commit 2f13a26

Please sign in to comment.