Page MenuHomePhabricator

Ipoid: Update schema anonymous column on tunnels table
Closed, ResolvedPublic2 Estimated Story Points

Description

Anonymous column in ipoid has be created as VARBINARY(5)
However as per spurs documentation it is supposed to be a bolean.

AC:
Update anonymous column to in the schema to a boolean match what is in the documentation.

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Update(schema) anonymous column on tunnels tablerepos/mediawiki/services/ipoid!34tsepothoabalaT341880main
Customize query in GitLab

Event Timeline

Thanks for this @TThoabala, I've tested the schema change DB with reprod data from T341605 or T339325 and running

docker compose exec web node init-db.js
docker compose exec -e FEED_PATH=./tmp/reprod.json.gz web node import-data.js

I'm getting the following error:

Screenshot 2023-07-17 at 10.32.08 AM.png (2,292×1,008 px, 923 KB)

Screenshot 2023-07-17 at 10.31.52 AM.png (824×390 px, 103 KB)

If I'm using reprod data from T339359, I do not get an error but the Anonymous values are "NULL".

Screenshot 2023-07-17 at 10.34.13 AM.png (806×348 px, 118 KB)

AGueyte set the point value for this task to 2.Jul 17 2023, 3:57 PM

@TThoabala I did not come across any errors when testing the anonymous column as seen in the screenshots below. The task will be moved to Done. Thanks for all your work!

False

{"as": {}, "client": {"behaviors": [], "concentration": {}, "count": false, "countries": null, "proxies": [], "spread": null, "types": ["DESKTOP"]}, "infrastructure": false, "location": {}, "organization": false, "risks": ["TUNNEL"], "services": [], "tunnels": [{"operator”:”test”z,”type":"VPN","anonymous":false}], "ip": "633f9bba-6d4f-40d5-ba34-f15ac42743d3"}

T339359_IPoid_AnonymousFalse.png (2,253×1,322 px, 281 KB)

True

{"as": {}, "client": {"behaviors": [], "concentration": {}, "count": false, "countries": null, "proxies": [], "spread": null, "types": ["DESKTOP"]}, "infrastructure": false, "location": {}, "organization": false, "risks": ["TUNNEL"], "services": [], "tunnels": [{"operator": "True_test", "type":"VPN", "anonymous": true}], "ip": "633f9bba-6d4f-40d5-ba34-f15ac42743d3"}

T339359_IPoid_AnonymousTrue.png (2,305×1,328 px, 303 KB)

Null

{"as": {}, "client": {"behaviors": [], "concentration": {}, "count": false, "countries": null, "proxies": [], "spread": null, "types": ["DESKTOP"]}, "infrastructure": false, "location": {}, "organization": false, "risks": ["TUNNEL"], "services": [], "tunnels": [{"operator": "True_Null", "type":"VPN"}], "ip": "633f9bba-6d4f-40d5-ba34-f15ac42743d3"}

T339359_IPoid_AnonymousNull.png (2,183×1,184 px, 220 KB)