Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Subsequent references fetching only ID #99

Closed
martzoukos opened this issue Oct 21, 2016 · 8 comments
Closed

Subsequent references fetching only ID #99

martzoukos opened this issue Oct 21, 2016 · 8 comments
Assignees
Labels

Comments

@martzoukos
Copy link

martzoukos commented Oct 21, 2016

Hello,

I'm not sure if this is a bug or a feature to reduce the size of the fetched data, but when I link to a reference from two separate fields, the information of the referenced item gets included only the first time.

Any subsequent link after that only fetches the ID.

Here's an example:

:available_languages:
  :de-DE:
  - :id: 53A3mvSLxSyAkuUOYwSq8Q
    :iso:
      :de-DE: es
    :description:
      :de-DE: Spanish
  - :id: 3XMaskNA128k0WaogisyG0
    :iso:
      :de-DE: de
    :description:
      :de-DE: German
:available_translations:
  :de-DE:
  - :id: 3XMaskNA128k0WaogisyG0

The id 3XMaskNA128k0WaogisyG0 is referenced in both the available_languages and available_translations fields but in the latter it only fetches the ID.

Thanks in advance.

@martzoukos
Copy link
Author

Hey David, do you have any news on that?

@dlitvakb
Copy link
Contributor

dlitvakb commented Dec 1, 2016

Hi @martzoukos,

Looks like a bug, I'll take a look into it.

Cheers

@dlitvakb dlitvakb added the bug label Dec 1, 2016
@dlitvakb dlitvakb self-assigned this Dec 1, 2016
@dlitvakb
Copy link
Contributor

Hey @martzoukos,

Now I'm in the office and have time to look into this, I'll start taking a look now, and let you know.

Cheers

@dlitvakb
Copy link
Contributor

Hey @martzoukos,

Managed to reproduce, now checking root cause.

Cheers

@dlitvakb
Copy link
Contributor

Got a fix working, adding tests around it and creating a PR.

Cheers

@martzoukos
Copy link
Author

Apologies for my ignorance here, but how can I update my gem to get this fix?

I'm getting the 1.4.2 version but this error still persists.

Thanks!

@dlitvakb
Copy link
Contributor

dlitvakb commented Dec 16, 2016

Hey @martzoukos,

Can you create a support request?

Please provide me in it, Space ID, Access Token, your activate :contentful block and the result of bundle exec gem list.

Maybe I missed a case in which issue appears.

Cheers

PS: Request to be forwarded to me

@martzoukos
Copy link
Author

Just did.

Thank you very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants