Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Drawer crashes if imported column is / row 'cell' is Array of Document References #565

Closed
joshensongric opened this issue Oct 18, 2021 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@joshensongric
Copy link

Describe the bug
//A clear and concise description of what the bug is.

IF a firestore document contains an array of firestore document refernence sub fields within that array

THEN the Rowy UI drawer crashes / refuses to load / display any data for tha particular document / Row of the Table.

To Reproduce
Steps to reproduce the behavior:

  1. Create 2 firestore collections (colA & colB)
  2. Create one new firestore document in collection A (doc1A) and 2 new documents in Collection B (doc2B & doc3B - use AutoID)
  3. In doc1A (within collection A) add a new field (Type: Array / FieldName: ListOfDocReferences)
  4. add 2 or more fields to the array:
  • sub-Field1 (Type: (document) Reference // Value: PathToDoc2B) -- e.g. "/collection_b/doc2B_idAABBCCDDEEFFGG"
  • sub-Field2 (Type: (document) Reference // Value: PathToDoc2C) -- e.g. "/collection_b/doc2C_idHHGGIIKKLLMMNNOO"
  1. Add new table to Rowy (Type: Primary Collection // Link: CollectionA)
  2. Import all fields (ListOfDocReferences will default to Type: Json)
  3. Click on the row for doc1A in new Rowy Table
  4. See error message

Expected behavior
Rowy UI Drawer will appear showing expanded view of details for that row / firestore document

BUT --> Error, no data / drawer UI loads for doc1A

NOTE --> This seems to e the same error that previously was reported and fixed, which was focused on a single Document Reference field in a document, but produced the same Drawer UI crash in Rowy.

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2021-10-18 06 19 33
Screenshot 2021-10-18 06 19 18

Desktop (please complete the following information):

  • OS: [e.g. iOS] - ChromeOS
  • Browser [e.g. chrome, safari] - Chrome
  • Version [e.g. 22] - Version 94.0.4606.97 (Official Build) beta (64-bit)

Additional context
Add any other context about the problem here.

NOTE --> This seems to e the same error that previously was reported and fixed, which was focused on a single Document Reference field in a document, but produced the same Drawer UI crash in Rowy.

@notsidney notsidney added the bug Something isn't working label Oct 18, 2021
@notsidney notsidney self-assigned this Oct 18, 2021
@harinij harinij added this to the v2.2 milestone Oct 18, 2021
notsidney added a commit that referenced this issue Oct 29, 2021
* develop:
  standardize imports to use "@src/
  add code helper to action script
  fix nested ref values causing side drawer crash (#565)
@notsidney
Copy link
Contributor

Released in v2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants