-
Notifications
You must be signed in to change notification settings - Fork 671
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
MF-859 - Channels metadata search #867
Conversation
de3d278
to
58771aa
Compare
021bb34
to
9293d49
Compare
Codecov Report
@@ Coverage Diff @@
## master #867 +/- ##
==========================================
+ Coverage 84.7% 84.77% +0.07%
==========================================
Files 72 72
Lines 4811 4834 +23
==========================================
+ Hits 4075 4098 +23
- Misses 496 497 +1
+ Partials 240 239 -1
Continue to review full report at Codecov.
|
@drasko 10 seconds is the maximum time which we wait until natsd is started. It's a timeout when we give up. |
@chombium I know, but I think there is no need to wait 10 seconds. If NATS does not start in 3-5 sec - there is probably something wrong beyond repair, better break out. I can accept this, but never the less I think it is not needed... |
85d0459
to
aa1f892
Compare
@drasko I agree with you. If we are sure that 3-5 seconds are enough than we can lower the timeout |
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
83d2acb
to
9d36b8f
Compare
Signed-off-by: Mirko Teodorovic <[email protected]>
I think yes |
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
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
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
things/postgres/channels.go
Outdated
b, ok := value.([]byte) | ||
if !ok { | ||
m = &dbMetadata{} | ||
return users.ErrScanMetadata |
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.
Why users.ErrScanMetadata
?
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
Signed-off-by: Mirko Teodorovic <[email protected]>
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!
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
* add users metadata Signed-off-by: Mirko Teodorovic <[email protected]> * add users metadata Signed-off-by: Mirko Teodorovic <[email protected]> * add metadata to users Signed-off-by: Mirko Teodorovic <[email protected]> * add metadata to users Signed-off-by: Mirko Teodorovic <[email protected]> * run.sh Signed-off-by: Mirko Teodorovic <[email protected]> * add metadata to users Signed-off-by: Mirko Teodorovic <[email protected]> * add default value for metadata Signed-off-by: Mirko Teodorovic <[email protected]> * add default value for metadata Signed-off-by: Mirko Teodorovic <[email protected]> * when metadata is not set dont save 'null' string Signed-off-by: Mirko Teodorovic <[email protected]> * when metadata is not set dont save 'null' string Signed-off-by: Mirko Teodorovic <[email protected]> * add metadata to channels Signed-off-by: Mirko Teodorovic <[email protected]> * add metadata to channels Signed-off-by: Mirko Teodorovic <[email protected]> * change metadata type, add error handling Signed-off-by: Mirko Teodorovic <[email protected]> * add pause Signed-off-by: Mirko Teodorovic <[email protected]> * remove extra char Signed-off-by: Mirko Teodorovic <[email protected]> * retype from string to []byte Signed-off-by: Mirko Teodorovic <[email protected]> * add metadata to channels Signed-off-by: Mirko Teodorovic <[email protected]> * add metadata to channels Signed-off-by: Mirko Teodorovic <[email protected]> * add wait logic for gnatsd Signed-off-by: Mirko Teodorovic <[email protected]> * few small fixes Signed-off-by: Mirko Teodorovic <[email protected]> * fix identityRes Signed-off-by: Mirko Teodorovic <[email protected]> * add metadata to channels Signed-off-by: Mirko Teodorovic <[email protected]> * add metadata to channels Signed-off-by: Mirko Teodorovic <[email protected]> * add metadata to channels Signed-off-by: Mirko Teodorovic <[email protected]> * fix waiting for gnatsd Signed-off-by: Mirko Teodorovic <[email protected]> * fix waiting for gnatsd Signed-off-by: Mirko Teodorovic <[email protected]> * fix waiting for gnatsd Signed-off-by: Mirko Teodorovic <[email protected]> * changes to wait gnatsd logic Signed-off-by: Mirko Teodorovic <[email protected]> * changes to wait gnatsd logic Signed-off-by: Mirko Teodorovic <[email protected]> * testing query Signed-off-by: Mirko Teodorovic <[email protected]> * fix query Signed-off-by: Mirko Teodorovic <[email protected]> * fix query Signed-off-by: Mirko Teodorovic <[email protected]> * fix merge problem Signed-off-by: Mirko Teodorovic <[email protected]> * Update requests.go Signed-off-by: Mirko Teodorovic <[email protected]> * Delete pwdrecovery.go Signed-off-by: Mirko Teodorovic <[email protected]> * fix merge problem Signed-off-by: Mirko Teodorovic <[email protected]> * fix merge problem Signed-off-by: Mirko Teodorovic <[email protected]> * small change in comments Signed-off-by: Mirko Teodorovic <[email protected]> * remove unused struct Signed-off-by: Mirko Teodorovic <[email protected]> * fix comments Signed-off-by: Mirko Teodorovic <[email protected]>
What does this do?
add retrieve channels my metadata criteria
Which issue(s) does this PR fix/relate to?
Put here
Resolves #XXX
to auto-close the issue that your PR fixes (if such)Resolves #859
List any changes that modify/break current functionality
Have you included tests for your changes?
Did you document any new/modified functionality?
Notes