question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Notes gone after updating to 7.8.0

See original GitHub issue

Your Environment

  • Version used: AUR, using yay: upgraded superproductivity-bin (7.7.0-1 -> 7.8.0-1)
  • Operating System and version: linux, arch-manjaro
  • Desktop Environment: XFCE
  • Browser Name and version:

Expected Behavior

Finding all my notes in the top-right corner (new notes system/model using global instead of project-wide notes). Though, I dunno whether I like that every note is global.

Current Behavior

“There are currently no notes”

Checking the backups the notes are completely gone (→ migration issue and not a pure UI issue)

Steps to Reproduce (for bugs)

  1. have some projects with notes
  2. close app
  3. update (restart? Well, I did due to other updates)
  4. open app, check notes

Console Output

The only interesting part seems to be the migration, right? Filtering for [M]:

[M] Migrating model "Project" to version from 5.4 to 6.01 
Object
model-version.ts:34 [M] Migrating model "GlobalConfig" to version from 2.2005 to 2.2006 
Object
model-version.ts:34 [M] Migrating model "Project" to version from 5.4 to 6.01 
Object
model-version.ts:34 [M] Migrating model "Project" to version from 5.4 to 6.01 
Object
model-version.ts:34 [M] Migrating model "GlobalConfig" to version from 2.2005 to 2.2006 
Object
model-version.ts:34 [M] Migrating model "Project" to version from 5.4 to 6.01 
Object
model-version.ts:34 [M] Migrating model "Project" to version from 5.4 to 6.01 
Object
model-version.ts:34 [M] Migrating model "GlobalConfig" to version from 2.2005 to 2.2006 
Object
model-version.ts:34 [M] Migrating model "Project" to version from 5.4 to 6.01 
Object
model-version.ts:34 [M] Migrating model "GlobalConfig" to version from 2.2005 to 2.2006 
Object
model-version.ts:34 [M] Migrating model "GlobalConfig" to version from 2.2005 to 2.2006 
Object
model-version.ts:34 [M] Migrating model "GlobalConfig" to version from 2.2005 to 2.2006 
Object
model-version.ts:34 [M] Migrating model "GlobalConfig" to version from 2.2005 to 2.2006 
Object
model-version.ts:34 [M] Migrating model "GlobalConfig" to version from 2.2005 to 2.2006 
Object

Not sure, but one migration per model should be enough, right? 😃

Error Log (Desktop only)

(Adding only the logs of today; removed time, removed username)

[2021-11-19 ] [info]  { enabled: null, showDevTools: false, mode: 'bottom' }
[2021-11-19 ] [info]  Saving backups to /home/**USER**/.config/superProductivity/backups
[2021-11-19 ] [info]  No custom styles detected at /home/**USER**/.config/superProductivity/styles.css
[2021-11-19 ] [info]  close, isQuiting: undefined
[2021-11-19 ] [info]  close, isQuiting: true
[2021-11-19 ] [info]  { enabled: null, showDevTools: false, mode: 'bottom' }
[2021-11-19 ] [info]  Saving backups to /home/**USER**/.config/superProductivity/backups
[2021-11-19 ] [info]  No custom styles detected at /home/**USER**/.config/superProductivity/styles.css

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
mop999xcommented, Nov 23, 2021

Gotcha, so at the moment sub tasks part of a parent repeated task, have to be converted to parent task and repeated it at least that’s the current workflow, all related to issue #948

great project by the way, really have gotten into productivity and efficiency using my time better because of this project.

thanks!!

1reaction
johannesjocommented, Nov 22, 2021

Thank you! I try to have another look soon!

I totally understand that youre hesitant sending me the data!

Here is a little (untested) JavaScript script to anonymize the data (probably should make this accessible from the app):

var dirtyDeepCopy = function (val) { return JSON.parse(JSON.stringify(val)); };
var i = 0;
var KEY_TO_REPLACE = [
    'username',
    'userName',
    'password',
    'token',
    'notes',
    'authCode',
    'accessToken',
    'host',
    'gitlabBaseUrl',
    'syncFilePath',
    'title',
    'originalImgPath',
    'path',
    'content',
];
var maskString = function (key, val, counter) {
    if (KEY_TO_REPLACE.includes(key) && val.length > 0) {
        return key + "__" + counter;
    }
    else {
        return val;
    }
};
var recurse = function (obj) {
    // eslint-disable-next-line guard-for-in
    for (var key in obj) {
        if (Object.prototype.hasOwnProperty.call(obj, key)) {
            var val = obj[key];
            if (Array.isArray(val)) {
                val.forEach(function (arrVal) {
                    if (typeof arrVal === 'object' && arrVal !== null) {
                        recurse(arrVal);
                    }
                });
            }
            else if (typeof val === 'object' && val !== null) {
                recurse(val);
            }
            else if (typeof val === 'string') {
                obj[key] = maskString(key, val, i);
            }
        }
        i++;
    }
};
var privacyExport = function (d) {
    var cpy = dirtyDeepCopy(d);
    recurse(cpy);
    return JSON.stringify(cpy);
};

You would need to read the files data as string and execute:

var fs = require('fs');

var myStr = fs.readFileSync('./data-export-from-sp.json', encoding:'utf8', flag:'r'});
var myStrAsData = JSON.parse(myStr);
var result = privacyExport(myStrAsData);
console.log(result);
Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes - 7.8.0 - codeBeamer
1.1.1codeBeamer 7.8.0 - Release Notes ... CTSK-526963 - Exception after upgrading the mysql database from 7.7.0-RC to 7.8.0; CTSK-529917 - Test runner ...
Read more >
iPhone Notes Disappeared? Troubleshooting the ... - YouTube
Recover deleted notes on iPhone, redownload a missing Notes app, and restore backed-up notes from iCloud with these simple tips.
Read more >
7.8.0 GA Release Notes - LogRhythm Documentation
Bug # Found In Version Components DE1879 2.4 LogRhythm Diagnostics Tool DE10867 1.2.0.10 TrueIdentity Sync Client DE7632 7.1.3 Client Console
Read more >
Confluence 7.8 Upgrade Notes - Atlassian Documentation
Here are some important notes on upgrading to Confluence 7.8. For details of the new features and improvements in this release, ...
Read more >
WooCommerce Blocks 7.8.0 Release Notes
Version 7.8.0 is now available for download from GitHub and ... New product is missing in the Cart block if Redirect to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found