Coder Social home page Coder Social logo

Comments (7)

MikeTschudi avatar MikeTschudi commented on September 26, 2024

@chris-fox, I think that there may be other swizzling needed. In this case, it's for items referenced by the StoryMap. With the example "Hello World" StoryMap, it's references to the "Citizen Problem Manager" WMA and "Favorite Redlands Restaurant" Form, respectively:

image

image

These referenced items are also not appearing in the StoryMap's dependencies list.

When a group containing the dependencies is converted into a Solution, swizzling occurs. It's only if we convert a single StoryMap into a Solution that we're not picking up the dependencies. How important is this case, please?

from solution.js.

chris-fox avatar chris-fox commented on September 26, 2024

@MikeTschudi, I am good with the current behavior that we only discover the dependencies of the story map if they are also shared in the group that is used to create the solution item. Thanks for confirming.

from solution.js.

chris-fox avatar chris-fox commented on September 26, 2024

@MikeTschudi, I am curious how you handled de-templatizing back to an encoded url? Right now in the story map we are templatizing both the encoded and unencoded url with the same variable {{portalBaseUrl}}, how do you know during the de-templatizing whether the url needs to be encoded or not? Are we just doing it special for StoryMaps?

I was wondering if we should create a new variable like {{portalBaseUrlEncoded}} so it is explicit in the template and the logic can be applied to all item types.

from solution.js.

MikeTschudi avatar MikeTschudi commented on September 26, 2024

@chris-fox, because StoryMaps have their own package, I made the changes only there.

When de-templatizing, I chose to look in the data section for the StoryMap for the pattern portalUrl=https://, which only appears in the encoded URLs (this is after the standard de-templatizing code has replaced ${portalUrl} throughout). These are replaced with the encoded version portalUrl=https%3A%2F%2F.

from solution.js.

chris-fox avatar chris-fox commented on September 26, 2024

What do you think of making this more generic and apply to all item types via a unique variable? I am just wondering if we can handle the encoded portal url more broadly in case this comes up in other items as well.

from solution.js.

MikeTschudi avatar MikeTschudi commented on September 26, 2024

Let's please wait until that situation arises so that we know what pattern(s) we need to match.

from solution.js.

chris-fox avatar chris-fox commented on September 26, 2024

verified

from solution.js.

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.