Comments (7)
@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:
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.
@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.
@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.
@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.
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.
Let's please wait until that situation arises so that we know what pattern(s) we need to match.
from solution.js.
verified
from solution.js.
Related Issues (20)
- Recycle Bin and Deleting Solutions
- Vector Tile Layer Basemap Dropped During Template Creation HOT 7
- Set properties property of Group during deployment HOT 2
- Copy layer level metadata into solution item
- When creating a QuickCapture solution, resources other than qc.project.json remain as files in addition to templatized forms HOT 1
- We need to ignore the published_data.json resource during creation and create it from the item data during deployed HOT 1
- Add support for Survey123 webhooks HOT 32
- Label property is not being replaced in Real-Time and Big Data Analytics when items are reused
- Conditional Values dropped in deployed solution HOT 2
- Organization URL key should be lower case HOT 1
- Join View fails to deploy if source services have different spatial references
- Upgrade an existing feature service
- Deployed surveys have blank thumbnail HOT 2
- Explore swizzling xlsx file in Survey123 form HOT 4
- Saving updates to a survey XLSForm does not refresh Survey123 Connect Form Preview HOT 3
- deploySolution demo's OAuth path is broken
- Use workflow api to delete a workflow when deleting a solution
- Upgrade rest.js from 3.x to 4.x
- Update README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solution.js.