deep-foundation / deep-foundation/deepcase-app
Array property in object value is always empty
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
# How to reproduce
Insert a link with value
```
{
id: '1119221813147349086',
type: 0,
content: '<@&1032281485270581318> <@298466999426613268>',
channel_id: '1113427342690361364',
author: {
id: '479241419244961793',
username: 'korvusmkrt',
global_name: 'Korvus',
avatar: '74580cb80d39818480a45faa0ed3368f',
discriminator: '0',
public_flags: 0,
avatar_decoration: null
},
attachments: [
{
id: '1119221812665008178',
filename: 'image.png',
size: 657467,
url: 'https://cdn.discordapp.com/attachments/1113427342690361364/1119221812665008178/image.png',
proxy_url: 'https://media.discordapp.net/attachments/1113427342690361364/1119221812665008178/image.png',
width: 1920,
height: 1080,
content_type: 'image/png'
},
{
id: '1119221812941815808',
filename: 'IMG-20230416-WA0119.jpg',
size: 37694,
url: 'https://cdn.discordapp.com/attachments/1113427342690361364/1119221812941815808/IMG-20230416-WA0119.jpg',
proxy_url: 'https://media.discordapp.net/attachments/1113427342690361364/1119221812941815808/IMG-20230416-WA0119.jpg',
width: 768,
height: 1024,
content_type: 'image/jpeg'
}
],
embeds: [
{
type: 'link',
url: 'https://open.spotify.com/track/0zELPgAgAhm1Eyfa4FLMvP?si=c00d234ec27b4bb5',
title: 'ESSENCE',
description: 'Ryder Spot · Song · 2021',
provider: { name: 'Spotify', url: 'https://spotify.com/' },
thumbnail: {
url: 'https://i.scdn.co/image/ab67616d0000b2733aef942648fecaf62984ee04',
proxy_url: 'https://images-ext-1.discordapp.net/external/FlhSAsC1AyqtWDN3NQI92aOUp92Irle71UBfb_NTVO0/https/i.scdn.co/image/ab67616d0000b2733aef942648fecaf62984ee04',
width: 640,
height: 640
}
}
],
mentions: [
{
id: '298466999426613268',
username: 'freephoenix888',
avatar: 'b6c7d239556cb345766422f3c16b27c4',
discriminator: '0',
public_flags: 0,
flags: 0,
banner: null,
accent_color: null,
global_name: 'FreePhoenix888',
avatar_decoration: null,
display_name: 'FreePhoenix888',
banner_color: null
}
],
mention_roles: [ '1032281485270581318' ],
pinned: false,
mention_everyone: false,
tts: false,
timestamp: '2023-06-16T11:07:54.390000+00:00',
edited_timestamp: null,
flags: 0,
components: []
}
```
Select that link and find out that mentions,roles and other arrays are empty.
Note that, when you insert value by using JS deep client value is inserted fully.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported case: insert the Discord-like object as a link value, then select it and inspect whether mentions, mention_roles, attachments, embeds, and components are preserved. Compare this behavior with inserting the value through the JS deep client, which the report says stores it fully. Done means the array properties survive insertion and selection; the issue does not name any files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100