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

feat: Export users in backups #15072

Merged
merged 11 commits into from
Apr 26, 2023
Merged

feat: Export users in backups #15072

merged 11 commits into from
Apr 26, 2023

Conversation

atomrc
Copy link
Contributor

@atomrc atomrc commented Apr 24, 2023

This is the first part of saving users' metadata in backups.
This will export the data (but not load it yet, this will be done in a followup PR)

@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

Merging #15072 (9867e98) into dev (f2b3660) will increase coverage by 0.00%.
The diff coverage is 71.79%.

@@           Coverage Diff           @@
##              dev   #15072   +/-   ##
=======================================
  Coverage   43.20%   43.21%           
=======================================
  Files         645      645           
  Lines       21613    21632   +19     
  Branches     4956     4959    +3     
=======================================
+ Hits         9338     9348   +10     
- Misses      11090    11099    +9     
  Partials     1185     1185           

@@ -71,6 +72,57 @@ const messages = [
},
];

const users = [
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't have user generator? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Damn, you are completely right. Good call 👍

usersChunk,
user => constructUserPrimaryKey(user.qualified_id),
);
importedEntities += usersChunk.length;
Copy link
Contributor

Choose a reason for hiding this comment

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

Move usersChunk.length to variable. You using it there multiple times :)

@atomrc atomrc merged commit 2f837f4 into dev Apr 26, 2023
@atomrc atomrc deleted the feat/user-backup branch April 26, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants