maybe - id in View row contains extraneous double quotes

Description

I haven't verified this yet - maybe the id actually includes the double quotes in it.

see https://www.couchbase.com/forums/t/every-sdk-upgrade-has-become-a-nightmare/37059/10

sdk 3.x before everything was rewritten in typescript, the sdk returned keys as normal with single quotes.
Now with 4.x has additional double quotes, see for example :
ViewRow {
value: null,
key: ‘“62eba17d3d800000”’,
id: ‘u#62eba17d3d800000’
},

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

xavier January 9, 2024 at 6:35 AM

Are there any updates or plans to fix this issue?

I think the root cause is that the `JSON.stringify` brings in extra quotes, I don't know why the stringify is needed.
https://github.com/couchbase/couchnode/blob/f015904a377a636f560abbd5179d11784593c545/lib/viewexecutor.ts#L84-L91

Michael Reiche November 16, 2023 at 4:46 PM

https://www.couchbase.com/forums/t/handling-string-values-in-range-and-idrange-for-viewquery-in-node-js-sdk/37432 also reported the quote issue. They said the output from the REST api is ok.

Christian Brandoni November 11, 2023 at 7:20 PM
Edited

Hi, I am the one who reported this. It is the key that has additional double quotes, not the id. Key should be :  ‘62eba17d3d800000’ instead of : ‘“62eba17d3d800000”’. There are two sets of quotes now, single and double quotes.

 

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Sprint

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created November 11, 2023 at 6:26 PM
Updated February 21, 2024 at 5:51 PM
Resolved February 21, 2024 at 5:51 PM
Instabug