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

Replication of meta data does not occur when the regex doesn't match #6591

Closed
newtewt opened this issue Aug 12, 2020 · 2 comments
Closed

Replication of meta data does not occur when the regex doesn't match #6591

newtewt opened this issue Aug 12, 2020 · 2 comments
Assignees
Labels
Priority: 2 - Medium Normal priority Type: Bug Fix something that isn't working as intended
Projects

Comments

@newtewt
Copy link
Contributor

newtewt commented Aug 12, 2020

Describe the bug
Users with names like nick-christenson will create meta databases such as medic-user-nick-christenson-meta. This doesn't get matched on our regex and gets skipped. We need to update that regex expression to capture any supported characters in usernames. Username of nick_christenson does replicate medic-user-nick_christenson-meta

To Reproduce
Steps to reproduce the behavior:

  1. Create a user with a dash in their name.
  2. Upload some feedback or other meta data to their database.
  3. Cause the replication of meta databases
  4. that user's meta database gets skipped.

Expected behavior
All meta databases are replicated to the conglomerate database.

Logs
[2020-08-12 18:57:00] 2020-08-12 18:57:00 INFO: Replicating docs from "medic-user-medic-meta" to "medic-users-meta"
[2020-08-12 18:57:00] 2020-08-12 18:57:00 INFO: Replicating docs from "medic-user-nick_christenson-meta" to "medic-users-meta"

Environment

  • Instance: loclahost
  • Browser: n/a
  • Client platform: wsl Ubuntu
  • App: sentinel
  • Version:3.10.0

Additional context
no work around unless changing username.

@newtewt newtewt added the Type: Bug Fix something that isn't working as intended label Aug 12, 2020
@garethbowen garethbowen changed the title REplication of meta data does not occur when the regex doesn't match Replication of meta data does not occur when the regex doesn't match Aug 13, 2020
@garethbowen garethbowen added this to To do in 3.11.0 via automation Aug 13, 2020
@garethbowen garethbowen added the Priority: 2 - Medium Normal priority label Aug 13, 2020
@mrsarm mrsarm self-assigned this Aug 27, 2020
@mrsarm mrsarm moved this from To do to In progress in 3.11.0 Aug 27, 2020
@garethbowen
Copy link
Member

Ready for AT in 6591-users-meta-replication-fix

@garethbowen garethbowen moved this from In progress to Ready for AT in 3.11.0 Sep 1, 2020
@newtewt newtewt moved this from Ready for AT to AT in progress in 3.11.0 Sep 11, 2020
@newtewt newtewt self-assigned this Sep 11, 2020
@newtewt
Copy link
Contributor Author

newtewt commented Sep 11, 2020

@mrsarm feel free to close and merge.

I tested with -, _, combos of _-, and red-yellow_blue and they're all getting replicated now.

@newtewt newtewt moved this from AT in progress to Ready to merge in 3.11.0 Sep 11, 2020
@mrsarm mrsarm closed this as completed Sep 11, 2020
3.11.0 automation moved this from Ready to merge to Done Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 2 - Medium Normal priority Type: Bug Fix something that isn't working as intended
Projects
No open projects
3.11.0
  
Done
Development

No branches or pull requests

3 participants