Skip to content

Add is_available field to tracks api resp - #3216

Merged
vicky-g merged 1 commit into
masterfrom
vg-add-is-available-to-api-resp
Jun 8, 2022
Merged

Add is_available field to tracks api resp#3216
vicky-g merged 1 commit into
masterfrom
vg-add-is-available-to-api-resp

Conversation

@vicky-g

@vicky-gvicky-g commented Jun 7, 2022

Copy link
Copy Markdown
Contributor

Description

This is to expose the tracks field is_available to the api response.

Tests

  • Hit http://<my remote box ip>:5000/v1/full/tracks/lebQD and the is_available flag exists
// 20220607234337
// http://<my remote box ip>:5000/v1/full/tracks/lebQD
{
"latest_chain_block": 20439,
"latest_indexed_block": 20439,
"latest_chain_slot_plays": null,
"latest_indexed_slot_plays": null,
"signature": "0xd0ea03e3b17ef2c0dacb3dfc4c16e92e6210d52631c229216b6f679109d1756001aa223c4a65f482abcf869c67352699417a9b9b9a52a79351def8d99a41a5381b",
"timestamp": "2022-06-08T03:43:37.594Z",
"version": {
"service": "discovery-node",
"version": "0.3.59"
},
"data": {
"artwork": null,
"description": "description_vpHekC",
"genre": "SomeGenre",
"id": "lebQD",
"mood": "Dope",
"release_date": "",
"remix_of": {
"tracks": null
},
"repost_count": 0,
"favorite_count": 0,
"tags": "",
"title": "title_GQEXXF",
"user": {
"album_count": 0,
"bio": "seed_bio_220606y61o",
"cover_photo": null,
"followee_count": 0,
"follower_count": 0,
"does_follow_current_user": false,
"handle": "seed_220606y61o",
"id": "7eP5n",
"is_verified": false,
"location": "seed_loc_220606y61o",
"name": "seed_220606y61o",
"playlist_count": 0,
"profile_picture": null,
"repost_count": 0,
"track_count": 2,
"is_deactivated": false,
"erc_wallet": "0x4c37f5d2403b3f793d9afd7f2a9fe4eef5cc2b1d",
"spl_wallet": "Ay3PFLT5efCr39ZYGyaw8u23kRDRcbYtKrw7ewSn6e72",
"supporter_count": 0,
"supporting_count": 0,
"balance": "0",
"associated_wallets_balance": "0",
"total_balance": "0",
"waudio_balance": "0",
"associated_sol_wallets_balance": "0",
"blocknumber": 121,
"wallet": "0x4c37f5d2403b3f793d9afd7f2a9fe4eef5cc2b1d",
"created_at": "2022-06-06 23:26:42",
"creator_node_endpoint": "http://cn2_creator-node_1:4001,http://cn3_creator-node_1:4002,http://cn1_creator-node_1:4000",
"current_user_followee_follow_count": 0,
"does_current_user_follow": false,
"handle_lc": "seed_220606y61o",
"is_creator": false,
"updated_at": "2022-06-06 23:27:02",
"cover_photo_sizes": null,
"cover_photo_legacy": null,
"profile_picture_sizes": null,
"profile_picture_legacy": null,
"metadata_multihash": "QmNwGBpFFna7fWUBjCwpHdwYccHhgFVSpADd9rNeLqsuKG",
"has_collectibles": false,
"playlist_library": null
},
"duration": 31,
"downloadable": false,
"play_count": 0,
"permalink": "/seed_220606y61o/title_gqexxf",
"blocknumber": 154,
"create_date": "",
"cover_art_sizes": null,
"created_at": "2022-06-06 23:29:47",
"credits_splits": "",
"download": {
"cid": null,
"is_downloadable": false,
"requires_follow": false
},
"isrc": "",
"license": "",
"iswc": "",
"field_visibility": {
"mood": true,
"tags": true,
"genre": true,
"share": true,
"play_count": true,
"remixes": true
},
"followee_reposts": [
],
"has_current_user_reposted": false,
"is_unlisted": false,
"has_current_user_saved": false,
"followee_favorites": [
],
"route_id": "seed_220606y61o/title_gqexxf",
"stem_of": {
"category": null,
"parent_track_id": null
},
"track_segments": [
{
"duration": 6.016,
"multihash": "QmPsazu4U9G2faXAnbbsEunv8iayML8qdqW3pddQmEatfX"
},
{
"duration": 5.994667,
"multihash": "QmYcPigADJZaHAjMccGNthZdvMkoTbhrkbxiuGm33RCsTW"
},
{
"duration": 5.994667,
"multihash": "Qma6fSykTzEWMWhYDLCYvfARwieEd15huTNBKNt2SrkZx7"
},
{
"duration": 5.994667,
"multihash": "QmTL9Tg9PLKu8cvGHGzVVM4ZFLEn1HM8GCNU5fCHzDsY7y"
},
{
"duration": 6.016,
"multihash": "QmaQ77BHihFKt3JU7TKwd7TLoV4sztqnZs5hrUgs2kfnAe"
},
{
"duration": 0.804767,
"multihash": "QmbCquYcyXLzUuksHcPFpvJ5ScDbdEQZG4Hfadv3YgCoxB"
}
],
"updated_at": "2022-06-06 23:29:47",
"user_id": "7eP5n",
"is_delete": false,
"cover_art": null,
"is_available": true
}
}

Monitoring - How will this change be monitored? Are there sufficient logs / alerts?

This isn't consumed anywhere yet, so this additional field should be fine.

@vicky-gvicky-g added the discovery-node Discovery Node (previously known as Discovery Provider) label Jun 8, 2022
@vicky-g
vicky-g merged commit 79cc155 into masterJun 8, 2022
@vicky-g
vicky-g deleted the vg-add-is-available-to-api-resp branch June 8, 2022 14:50
sliptype pushed a commit that referenced this pull request Sep 10, 2023
[f94ebec] [C-2442] Remove cognito (#3212) Dylan Jeffers
[0733d0f] Gate v2 signups (#3217) Theo Ilie
[07a4548] [C-2422] Update linkify links to navigate audius links in app and external links in new tab (#3223) Kyle Shanks
[acfc8d4] Fix the entity id in supporter rank up notification (#3222) sabrina-kiam
[1114535] Fix lint mobile (#3221) Raymond Jacobson
[496dd87] Fix lint mobile (#3221) Raymond Jacobson
[68269c8] [C-2452] Remove audio before setting new one (#3219) Raymond Jacobson
[17c5271] Fix lint (#3220) Raymond Jacobson
[b8d2daf] Read CID metadata from discovery (#3181) Michelle Brier
[4624902] [PAY-827][PAY-1154] Use DN stream endpoint for track download and offline mode (#3202) Saliou Diallo
[f3afb57] [C-2321] Update notification entity link styles to prevent overflow (#3216) Kyle Shanks
[3954798] Fix safari refresh event not being captured (#3215) Reed
[9c367ca] [C-2444] Fix notification panel notification count (#3213) Dylan Jeffers
[acbb8ff] [C-2443] Dont show tip tile on empty feed (#3214) Dylan Jeffers
[908b7fc] [PAY-748] Fix supporter count alignment (#3203) Randy Schott
[e21d74e] [PAY-1156] Cache message link unfurl responses (#3193) Reed
[8cdff9f] Attempt to update circle config to move off python2.7-jessie (#3210) Randy Schott
[a9ceb58] Fix profile saga merge conflict (#3209) Dylan Jeffers
[e554924] [C-2082] Fix busted profile edits (#3208) Raymond Jacobson
[ae19d05] [C-2335] Fix smart collection track count (#3207) Dylan Jeffers
[e608058] [C-2314] Update settings screen ui (#3205) Dylan Jeffers
[62659ee] [C-2441] Improve icon-verified styles (#3204) Dylan Jeffers
[cd6b934] [C-2406] Fix app crash when profile cid fails to fetch (#3158) Sebastian Klingler
[b6b0a52] [C-2435] Fix issue with collectibles cache update (#3200) Dylan Jeffers
[81e9af3] [PAY-1152] Chats selector to check if is equal to popupMessageId (#3199) Reed
[36da8b1] [C-2332] Fix follow artist stat (#3198) Dylan Jeffers
[1954b1d] [C-2434] Fix remix image styles (#3201) Dylan Jeffers
[878e661] [PAY-918] Mobile chat link unfurling (#3185) Reed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discovery-nodeDiscovery Node (previously known as Discovery Provider)size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@vicky-g@raymondjacobson