Giter VIP home page Giter VIP logo

Comments (7)

eXaminator avatar eXaminator commented on July 27, 2024 1

Oh, I started the implementation for this yesterday. I already have a workaround for showing the "Ancestors" of an entry, which I can also use to show a tab with all the children. So that should be in the next release which I'm probably releasing in the next few days or so :)

from kanka-foundry.

eXaminator avatar eXaminator commented on July 27, 2024

Hey, I'm not 100% sure if I understand what you mean. So here is what I understand:

You want to import a location (and possibly other entities that can have "children"), and have all locations that are children (and probably their children etc.) to import automatically with that initial location, right? So the use case would probably be something like importing a city with all its shops etc.?

I think that would be possible, but realistically only for the initial import, not for later updates (but for that there is already the button to update everything that is outdated). The biggest problem would probably be the time it might take, because this could lead to a lot of requests to Kanka, which are limited per minute. But as we already have buttons that allow importing of multiple entities at once, that shouldn't be a big problem.

Pleas let me know if I understood you correctly.

I will think about it, but I do see some use for this. So there is a good chance I'll try and implement something like this once I start work on the next update (which I'm planning on doing probably within the next week or two).

from kanka-foundry.

ScyllPoesis avatar ScyllPoesis commented on July 27, 2024

Close, but I think I mean something even simpler! Let me give an example:

I have a City District location, belonging to parent location City. It has description blah and a few attributes danger: safe, climate: temperate. It also has some direct children locations like Merchant, Pub, Church.

Currently the import generates a tidy journal page that has a stat block list of entries for the type, attributes, parent location, and then the block for the entries. Explicit relations go in a nice tab, but if I wanted to have a list of sub locations currently I have to use the entry text with links to the other entities. So right now if I opened up the City District journal I'd have to explicitly write links to Merchant or Church in the text entry to have the links on-hand, or do some jank stuff with manual relations.

My proposal is simply to have it so that if City District has some sub locations, either have a tab like Relations (or just put them in the Relations tab like Kanka does in their visualizer), and list out the links to Merchant, Church, and Pub automatically.

I hope that makes it all clearer, but I have no idea about the data structure that gets returned back so I understand there might be API quota issues if the children locations aren't part of your response package.

from kanka-foundry.

eXaminator avatar eXaminator commented on July 27, 2024

Hey, thanks for the answer.

Yes, that makes sense, sadly it's not that simple.

The biggest problem here is, that Kanka doesn't give me a list of children, but only what its parent is. That means, I need to load all entities of a type, to find the children of any given entity. That being said, Kanka has recently added new filter options to the API, one of which is to filter by parent for certain types.

I will reevaluate this feature the next time I start working on this module again and see if I can find a feasible way to implement it, because I do think it has merit.

from kanka-foundry.

ScyllPoesis avatar ScyllPoesis commented on July 27, 2024

Oof, yeah, I had a 50/50 hunch that was the case. I definitely don't blame you there.

For now it's really not a huge deal to put a small block of text linking to the sublocations, so agree with putting it on the backburner. Thanks for the commentary, hopefully the API develops to allow this sort of querying in a smarter way. Cheers!

from kanka-foundry.

github-actions avatar github-actions commented on July 27, 2024

🎉 This issue has been resolved in version 2.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

from kanka-foundry.

ScyllPoesis avatar ScyllPoesis commented on July 27, 2024

Hurrah! All praise the mighty lookup tables!

from kanka-foundry.

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.