Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Add block list for DCCs - HF #1602

Merged
merged 2 commits into from
Nov 5, 2021
Merged

Add block list for DCCs - HF #1602

merged 2 commits into from
Nov 5, 2021

Conversation

ioangut
Copy link
Contributor

@ioangut ioangut commented Nov 5, 2021

No description provided.


message DGCBlockedUVCIChunk {
repeated uint32 incides = 1;
Copy link
Member

Choose a reason for hiding this comment

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

@ioangut can you update this to the version from https://github.com/corona-warn-app/cwa-server/pull/1595/files? It fixes a typo here: incides -> indices

# generate the individual items, e.g.
# '[{"indices":[0],"hash":"fcde2b2edba5"},{"indices":[0,2],"hash":"1b68fbf8fb94"}]'
# note that `hash` shall be parsed from a hex string to a byte sequence
blocked-uvci-chunks: ${DGC_BLOCKED_UVCI_CHUNKS:[{"indices":[0],"hash":"9B09CAFEC0A6808411C348880C9C2D920646DFB980B5C959DC6EBF8A19B98120","validFrom":1636040446},{"indices":[0,2],"hash":"7D5D5B336E903086D64D1207EC6E957A4B1301026699011026F84A5156317C2B","validFrom":1638369640}]}
Copy link
Member

Choose a reason for hiding this comment

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

@ioangut that's the default value for PROD then, right? Default should be empty array...

return deserializedBlockedUvciChunks.stream().filter(dgcBlockedUvciChunk ->
TimeUtils.getNow().getEpochSecond() >= dgcBlockedUvciChunk.getValidFrom())
.map(deserializedBlockedUvciChunk -> DGCBlockedUVCIChunk.newBuilder()
.addAllIncides(deserializedBlockedUvciChunk.getIndices())
Copy link
Member

Choose a reason for hiding this comment

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

I guess this will need to be adjusted for the typo once the ProtoBuf is updated.

@sonarcloud
Copy link

sonarcloud bot commented Nov 5, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@mlenkeit mlenkeit left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@ioangut ioangut merged commit 391d210 into release/2.13 Nov 5, 2021
@ioangut ioangut deleted the hot-fix-blocklist branch November 5, 2021 14:56
ioangut added a commit that referenced this pull request Nov 8, 2021
* Add block list for DCCs

* add test and change default value
ioangut added a commit that referenced this pull request Nov 11, 2021
* Add luca app tracing parameters

* Add block list for DCCs - HF (#1602)

* Add block list for DCCs

* add test and change default value
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants