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: Add REST endpoint to deactivate/activate log URL #1288

Merged
merged 1 commit into from
May 9, 2022

Conversation

sandrask
Copy link
Contributor

@sandrask sandrask commented May 6, 2022

Add REST endpoint to deactivate log URL (when it is no longer required to monitor e.g. old log). Also, add endpoint to activate log.

Closes #1276

Signed-off-by: Sandra Vrtikapa sandra.vrtikapa@securekey.com

@cla-bot cla-bot bot added the cla-signed label May 6, 2022
@codecov
Copy link

codecov bot commented May 6, 2022

Codecov Report

Merging #1288 (ff0ded5) into main (29a2e74) will decrease coverage by 0.01%.
The diff coverage is 95.65%.

@@            Coverage Diff             @@
##             main    #1288      +/-   ##
==========================================
- Coverage   87.92%   87.91%   -0.02%     
==========================================
  Files         177      178       +1     
  Lines       17650    17719      +69     
==========================================
+ Hits        15519    15577      +58     
- Misses       1361     1368       +7     
- Partials      770      774       +4     
Impacted Files Coverage Δ
pkg/vct/logmonitoring/resthandler/update.go 95.58% <95.58%> (ø)
cmd/orb-server/startcmd/start.go 68.60% <100.00%> (+0.37%) ⬆️
...pub/service/inbox/httpsubscriber/httpsubscriber.go 88.88% <0.00%> (-8.89%) ⬇️
pkg/vct/proofmonitoring/monitoring.go 77.77% <0.00%> (-2.78%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 29a2e74...ff0ded5. Read the comment docs.

)

const (
activateEndpoint = "/activate-log"
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we should have a single /log endpoint with a JSON payload that can determine the action?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean something like:
{
"action": "activate",
"log-url": "https://vct.com/log"
}

Add REST endpoint to deactivate log URL (when it is no longer required to monitor e.g. old log). Also, add endpoint to activate log.

Closes trustbloc#1276

Signed-off-by: Sandra Vrtikapa <sandra.vrtikapa@securekey.com>
@sandrask sandrask merged commit 09b637d into trustbloc:main May 9, 2022
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.

Add REST endpoint to deactivate/activate log URL
3 participants