Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Create a derivative user collection in hasadna to that in startup-os #563

Open
oferb opened this issue Apr 8, 2019 · 0 comments
Open

Create a derivative user collection in hasadna to that in startup-os #563

oferb opened this issue Apr 8, 2019 · 0 comments

Comments

@oferb
Copy link
Contributor

oferb commented Apr 8, 2019

startup-os has a user collection:
https://github.com/google/startup-os/blob/master/reviewer_config.prototxt

We'd like hasadna to have a derivative one. It means that a user can be:

  • Defined only in startup-os
  • Defined only in hasadna
  • Defined in both, in which case we merge the data. We give precedence to startup-os: for fields like name and ID we will use startup-os, for fields like contributions we will merge the lists.

The code to merge the data and upload it to Firestore is here:
https://github.com/google/startup-os/blob/master/tools/reviewer/job/tasks/ReviewerMetadataUpdaterTask.java

So basically, this task is to update the code there to reflect the above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant