Commit Graph

67 Commits

Author SHA1 Message Date
ammarahm-ed
11e109740b core: allow encrypted backups for all users 2023-06-20 12:43:37 +05:00
Abdullah Atta
9116a24392 global: update license year to 2023 2023-01-16 13:48:28 +05:00
Abdullah Atta
baa06ebd6e core: add collection to hold all item<->item references 2023-01-05 22:01:01 +05:00
Abdullah Atta
a8f1fbf6a1 core: add collection for reminders 2023-01-05 22:01:01 +05:00
Muhammad Ali
f62c045350 core: fix v5.8 backups not restoring due to changed item ids (#1303)
* core: back restore repaired due to version change
Signed-off-by: Muhammad Ali <alihamuh@gmail.com>
2022-11-09 12:26:33 +05:00
Abdullah Atta
082b9755db core: re-insert only migrated items
Previously, we were re-inserting all items regardless of whether they
were changed or not. This raised a lot of issues, not to mention
unnecessary load on our servers because after each migration
all the data is re-synced. Since migration takes place independently on
each device, this multiplies exponentially.
Hopefully after this update, this will only happen much more granually.
2022-10-26 10:52:33 +05:00
Abdullah Atta
2cddbabee1 core: remove reindexing before backup import 2022-10-17 22:43:55 +05:00
Abdullah Atta
d35d355fb3 web: move backup time forward when it is skipped 2022-10-17 22:39:54 +05:00
Abdullah Atta
577d50b512 core: move index migrations to main database migrations
this is better design wise as we won't have to keep checking if the
indices have been migrated or not. We'll just check the database version
and do the appropriate migrations based on that.
2022-10-17 22:36:53 +05:00
Abdullah Atta
7c99c3acb9 core: add migrations for notebooks & settings (#1020) 2022-09-21 11:47:09 +05:00
Abdullah Atta
6c613c6f1e Merge branch 'move-pins-out' 2022-09-21 10:45:58 +05:00
Abdullah Atta
201366b39e core: get rid of noteIds in notebook topics
This is a BREAKING change in the core & will require updating the
clients. The way it works is instead of keeping noteIds of all the
notes in the topic, it keeps an in-memory cache. This in-memory
cache `topicReferences` lives in the notes collection & decouples
notes from notebooks/topics. This also simplifies all the different
actions where references would persist after the note was deleted.
Since the note acts as the source of truth for where it currently is,
there is nothing else to do except rebuild the `topicReferences`
cache.
2022-09-08 13:39:06 +05:00
Abdullah Atta
ac7aad93b3 core: shorcuts -> shortcuts 2022-09-07 14:13:26 +05:00
Abdullah Atta
1e99d7732c core: add new collection for shortcuts 2022-09-07 12:47:02 +05:00
Abdullah Atta
d81f5dba65 refactor: migrate to theme-ui from rebass 2022-08-31 07:26:27 +05:00
Abdullah Atta
c317774c8a docs: add license header 2022-08-30 16:17:04 +05:00
thecodrr
d35b2d4250 fix: backup fails if user is not pro but encrypted backups is on
(fixes streetwriters/notesnook#781)
2022-08-15 21:11:05 +05:00
thecodrr
a4f7058f1b feat: move database version to 5.6 2022-07-15 19:31:18 +05:00
thecodrr
3f54f36d50 feat: migrate from tiny -> tiptap 2022-07-07 13:17:55 +05:00
thecodrr
cce90b8f56 feat: require password for encrypted backups 2022-01-10 13:10:21 +05:00
thecodrr
278d1681ca fix: table getting converted to raw html 2021-12-29 14:33:29 +05:00
thecodrr
fa556015f6 feat: add dateEdited to dateModified migration 2021-12-22 10:24:01 +05:00
thecodrr
485f464f13 feat: acquire lock using syncMutex 2021-11-18 19:40:59 +05:00
thecodrr
4b9453d91b fix: acquire sync lock during backup restore 2021-11-18 15:28:36 +05:00
thecodrr
64535cc61c fix: repair all notebook references on sync/backup 2021-11-12 11:47:03 +05:00
thecodrr
e608eaaedf fix: repair notebook references in notes on sync 2021-11-12 10:32:25 +05:00
thecodrr
b139623420 feat: remove trash from merger & backup 2021-11-12 09:38:11 +05:00
thecodrr
23e584f272 fix: add attachments support to migrator & backup 2021-10-28 13:37:55 +05:00
thecodrr
888481b858 refactor: sendCheckUserStatusEvent -> checkIsUserPremium 2021-10-26 23:05:47 +05:00
thecodrr
7d16b8f388 feat: refactors and add support for upload/download progress 2021-09-26 11:47:13 +05:00
thecodrr
1eee95868a fix: check for null item when reindexing backup 2021-08-17 10:07:02 +05:00
thecodrr
9f0ae2e76f fix: init notes before cleaning up notebooks 2021-08-16 11:08:40 +05:00
thecodrr
48e682eb2c fix: notebooks aren't imported from backup 2021-08-16 11:03:31 +05:00
thecodrr
33a3fa7968 fix: filter out unnecessary keys when creating backups 2021-07-06 12:11:12 +05:00
thecodrr
7473f63006 feat: no need for integrity check for encrypted backups 2021-07-05 21:29:54 +05:00
thecodrr
eb08460a88 fix: restoring encrypted backups caused temper error 2021-07-05 20:35:14 +05:00
thecodrr
e898db9562 fix: derive consistent md5 ids from tag title 2021-02-20 11:31:44 +05:00
thecodrr
2a8a0b227a feat: move he to lean-he, remove transfun & jshashes 2021-02-16 21:38:32 +05:00
thecodrr
0e1b97e003 fix: migrate conflicted delta to tiny 2021-02-12 09:49:17 +05:00
thecodrr
4fa53ba9c0 feat: migrate from delta to tiny 2021-02-02 12:24:54 +05:00
thecodrr
2208270009 fix: noteId not being removed from color or deleting 2021-01-01 15:03:51 +05:00
thecodrr
96e2335aa6 perf: treeshakable import of jshashes 2020-12-24 09:40:34 +05:00
thecodrr
f8c306380b feat: migrate to use the new backend 2020-12-16 12:06:25 +05:00
thecodrr
0795b0d4d0 fix: make sure note.notebooks have topics instead of topic 2020-12-08 12:23:35 +05:00
thecodrr
a7750dfc06 fix: add minor migration 2020-12-07 13:11:44 +05:00
thecodrr
f711198cbb feat: add migrations from v3 to v4 2020-12-07 12:02:50 +05:00
thecodrr
d220d05c1f feat: add migration on sync 2020-12-06 11:13:17 +05:00
thecodrr
048c74816a refactor: use a single migration backend 2020-12-06 10:52:00 +05:00
thecodrr
0a192c2438 feat: use single version for db & backup migration 2020-12-05 15:28:54 +05:00
thecodrr
fc7c1001e6 feat: impl automatic database migrations (exp) 2020-12-05 15:26:54 +05:00