Coder Social home page Coder Social logo

Comments (11)

jmikrut avatar jmikrut commented on June 17, 2024 1

Hey @richardvanbergen — good call. This is on our radar and we will deploy a fix ASAP. Should be within this week.

Thank you as always for reporting these bugs! We're on it!

from payload.

Ontopic avatar Ontopic commented on June 17, 2024

I'm not sure if this is related to this update, but I can at the moment not get relationTo to work with an array of slugs anymore, it just lists the first slug in the array in the panel.

    {
      name: 'target',
      type: 'relationship',
      // hasMany: true,
      // required: true,
      relationTo: [
        'tags',
        'posts',
        'users',
      ]
    },

Will need to do some research on what's going on, but maybe related.

from payload.

jmikrut avatar jmikrut commented on June 17, 2024

@Ontopic if you scroll down in the input, the next few relations should load. Do they not?

In any case my testing with the above PR this AM definitely works with multiple relations. I thought that was fully functional in the released version now too. Just let me know if scrolling down reveals the additional choices!

from payload.

Ontopic avatar Ontopic commented on June 17, 2024

When I built the latest branch it doesn't work in the demo. After I created something in the all-fields and localized-posts collections I do not see both, just the one that is listed first in relationTo in the postLocalizedMultiple field in demo/collections/RelationshipA.ts

It only shows localized-posts when using this

    {
      name: 'postLocalizedMultiple',
      label: 'Localized Post Multiple',
      type: 'relationship',
      relationTo: ['localized-posts', 'all-fields'],
      hasMany: true,
      localized: true,
    },

It only shows all-fields when using

 ...
   relationTo: ['all-fields', 'localized-posts'],
...

from payload.

jmikrut avatar jmikrut commented on June 17, 2024

@Ontopic this field looks like it's working perfectly for me. See below video while building from the current master branch:

Screen.Recording.2021-04-18.at.10.42.25.AM.mov

Are you seeing something different? Note, if you only have one document in each collection, it may be that you need to scroll down in the input to load the second relation. Give that a shot?

from payload.

Ontopic avatar Ontopic commented on June 17, 2024
multi-relationTo.mov

You're right, scrolling on the dropdown does reveal all options, but this does not seem like the best UX - or something I'd like to explain to our editors every time they make a change in their staff 🙃

When the amount of items in a collection is not limited by screen size, it still folds the other collections and there is no indicator that if you scroll down on the dropdown other collections will be made available.

from payload.

jmikrut avatar jmikrut commented on June 17, 2024

@Ontopic totally. We will address this in the PR referenced above. Thanks for pointing it out and for helping me get on the same page!

from payload.

Ontopic avatar Ontopic commented on June 17, 2024

Thanks for - again - a swift reply and action. I'll consider this fixed for now then and hopefully get some PR's in later tonight 🤞

from payload.

jmikrut avatar jmikrut commented on June 17, 2024

All deployed in 0.6.0!

@richardvanbergen / @Ontopic — if either of you attempt updating, there is one breaking change in this release. May or may not apply to you but best to be safe and double-check.

Check out the migration steps here.

from payload.

richardvanbergen avatar richardvanbergen commented on June 17, 2024

Hi @jmikrut , thanks for the fix! I haven't had time to check yet. I'll see if I can give it a go tomorrow sometime and let you know.

from payload.

Ontopic avatar Ontopic commented on June 17, 2024

Working fine on this end 🙃

from payload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.