divriots / story-to-design

Keep your Figma libraries true-to-code in a single click.
https://story.to.design
29 stars 0 forks source link

Cannot update plugin components settings (Firebase index problem) #183

Closed tsryu closed 5 months ago

tsryu commented 5 months ago

Describe the problem

Hello~ I'm story.to.design's monthly paid user. Currently, I cannot sync Figma components with plugin data. As I checked the logs, I found there's an error message on Firebase. Can you reset my DB in Firebase? Let me sync from the start.

스크린샷 2024-06-24 오후 6 47 59

Firestore (9.14.0_lite): RestConnection Commit failed with error:  [Or [FirebaseError]: Request failed with error: too many index entries for entity] {
2024-06-24 18:39:30 [ERROR] (backend)   code: 'failed-precondition',
2024-06-24 18:39:30 [ERROR] (backend)   customData: undefined,
2024-06-24 18:39:30 [ERROR] (backend)   toString: [Function (anonymous)]
2024-06-24 18:39:30 [ERROR] (backend) } url:  https://firestore.googleapis.com/v1/projects/prd-storytodesign/databases/(default)/documents:commit request: {
2024-06-24 18:39:30 [ERROR] (backend)   writes: [
2024-06-24 18:39:30 [ERROR] (backend)     {
2024-06-24 18:39:30 [ERROR] (backend)       update: {
2024-06-24 18:39:30 [ERROR] (backend)         name: 'projects/prd-storytodesign/databases/(default)/documents/storybooks/25Eqsg9Q3TpEpyGjd17z/versions/lBxhIMbtM3yBbAUxTqc6',
2024-06-24 18:39:30 [DEBUG] (backend) updateStoryResult lBxhIMbtM3yBbAUxTqc6 (errored): 769ms
2024-06-24 18:39:30 [ERROR] (backend)         fields: {
2024-06-24 18:39:30 [ERROR] (backend)           stories: {
2024-06-24 18:39:30 [ERROR] (backend)             mapValue: {
2024-06-24 18:39:30 [ERROR] (backend)               fields: {
2024-06-24 18:39:30 [ERROR] (backend)                 'figma-data-display-tag--tag': {
2024-06-24 18:39:30 [ERROR] (backend)                   mapValue: {
2024-06-24 18:39:30 [ERROR] (backend)                     fields: {
2024-06-24 18:39:30 [ERROR] (backend)                       I9mJYWHCL6: { stringValue: 'DYnuuacfR8' },
2024-06-24 18:39:30 [ERROR] (backend)                       y_7XRyBwul: { stringValue: '_2zoFnjVJm' },
2024-06-24 18:39:30 [ERROR] (backend)                       lus3roZPyn: { stringValue: 'jHNl1FX0Ej' },
2024-06-24 18:39:30 [ERROR] (backend)                       HGq033Z8Pd: { stringValue: 'mvGYhTHz_o' }
2024-06-24 18:39:30 [ERROR] (backend)                     }
2024-06-24 18:39:30 [ERROR] (backend)                   }
2024-06-24 18:39:30 [ERROR] (backend)                 }
2024-06-24 18:39:30 [ERROR] (backend)               }
2024-06-24 18:39:30 [ERROR] (backend)             }
2024-06-24 18:39:30 [ERROR] (backend)           }
2024-06-24 18:39:30 [ERROR] (backend)         }
2024-06-24 18:39:30 [ERROR] (backend)       },
2024-06-24 18:39:30 [ERROR] (backend)       updateMask: {
2024-06-24 18:39:30 [ERROR] (backend)         fieldPaths: [
2024-06-24 18:39:30 [ERROR] (backend)           'stories.`figma-data-display-tag--tag`.HGq033Z8Pd',
2024-06-24 18:39:30 [ERROR] (backend)           'stories.`figma-data-display-tag--tag`.I9mJYWHCL6',
2024-06-24 18:39:30 [ERROR] (backend)           'stories.`figma-data-display-tag--tag`.lus3roZPyn',
2024-06-24 18:39:30 [ERROR] (backend)           'stories.`figma-data-display-tag--tag`.y_7XRyBwul'
2024-06-24 18:39:30 [ERROR] (backend)         ]
2024-06-24 18:39:30 [ERROR] (backend)       },
2024-06-24 18:39:30 [ERROR] (backend)       currentDocument: { exists: true }
2024-06-24 18:39:30 [ERROR] (backend)     }
2024-06-24 18:39:30 [ERROR] (backend)   ]
2024-06-24 18:39:30 [ERROR] (backend) }
2024-06-24 18:39:30 [ERROR] (backend) ERROR: FirebaseError: [code=failed-precondition]: Request failed with error: too many index entries for entity

Bug report identity: Please do not edit

Task path: 25Eqsg9Q3TpEpyGjd17z/lBxhIMbtM3yBbAUxTqc6/1wbd9oupp9q9f

muryoh commented 5 months ago

Hi @tsryu, sorry about that, having a look!

muryoh commented 5 months ago

It seems we had an automatic index on that field for no good reason, I disabled it Can you try again @tsryu ?

Best regards Remy

tsryu commented 5 months ago

Now it works fine :) Thanks for your help Remy..! Let me close the issue

muryoh commented 5 months ago

Thanks for letting me know!

Cheers