-
Notifications
You must be signed in to change notification settings - Fork 11
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
[BACK-43] jellyfish updates based on reuse of legacy _id for migration #203
base: master
Are you sure you want to change the base?
Conversation
/deploy qa3 |
jh-bate updated values.yaml file in qa3 |
jh-bate updated flux policies file in qa3 |
jh-bate deployed jellyfish add-dedup-hash branch to qa3 namespace |
/deploy qa3 |
jh-bate updated values.yaml file in qa3 |
jh-bate updated flux policies file in qa3 |
jh-bate deployed jellyfish add-dedup-hash branch to qa3 namespace |
/deploy qa3 |
jh-bate updated values.yaml file in qa3 |
jh-bate updated flux policies file in qa3 |
jh-bate deployed jellyfish add-dedup-hash branch to qa3 namespace |
/deploy qa3 |
jh-bate updated values.yaml file in qa3 |
jh-bate updated flux policies file in qa3 |
jh-bate deployed jellyfish add-dedup-hash branch to qa3 namespace |
/deploy qa3 |
jh-bate updated values.yaml file in qa3 |
jh-bate updated flux policies file in qa3 |
jh-bate deployed jellyfish add-dedup-hash branch to qa3 namespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question, one possible change. Let me know what you think and I can approve without changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. One comment on a bit of simplification, if you so choose.
Also, there are a number of outstanding vulnerabilities (npm audit, snyk, dependabot). I ran my usual update process and created a new PR on top of this one. You can either merge into this PR or cherry pick it. The PR is #205.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! A couple of comments/questions, but nothing blocking approval.
lib/schema/qa3_user_ids.json
Outdated
@@ -0,0 +1 @@ | |||
[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might as well go ahead and check in similar files for all the environments. That way if this is deployed anywhere it will still function, but effectively act the same and use Jellyfish.
* userid hash for platform users
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Two final questions since my memory is fuzzy on whether we discussed these or not.
var schema = require('./schema.js'); | ||
var misc = require('../misc.js'); | ||
|
||
function usePlatform(userId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this going to reload the user ids from the file every time the info
API is called? If so, consider loading the hashed user id array once upon initialization and then simply checking against that pre-loaded hashed user id array.
exports.loadHashedPlatformUserId = function (env) { | ||
const filePaths = userIdsPath(env); | ||
if (!fs.existsSync(filePaths.hashedPath)) { | ||
throw new Error(`Missing required file ${filePaths.hashedPath}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is going to fail if the hashed path for the environment doesn't exist, do we need to commit empty files (well, files with just []
) for every environment with this PR?
/deploy qa3 |
jh-bate updated values.yaml file in qa3 |
jh-bate updated flux policies file in qa3 |
jh-bate deployed jellyfish add-dedup-hash branch to qa3 namespace |
/deploy qa3 |
jh-bate updated values.yaml file in qa3 |
jh-bate updated flux policies file in qa3 |
jh-bate deployed jellyfish add-dedup-hash branch to qa3 namespace |
see tidepool-org/development#297