question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support multiple mappings accessed through route

See original GitHub issue

In real case scenarios, especially when using atlasmap standalone, it is more practical to have multiple “Atlasmapping.json” for working on different transformations simultaneously without re-running the app. The different AtlasMappings can be accessed through route, example : url:port/id/{{atlas_mapping_id}}

Afaik the application currently does not support this functionality right?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:24 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
igarashitmcommented, Oct 16, 2019

Thinking about the browser memory usage, maybe your route&reset approach is better as opposed to having multiple mapping definitions in a single ConfigModel at once. So to switch between mapping definitions, UI would just retrieve a list of mapping definitions ID and show them in a dropdown, then once one of them is selected, it would be forwarded to the route and re-initialize with that mapping definition. What I’m mentioning is basically for standalone usage BTW, Syndesis ATM stores a mapping definition in their own store. Just like we disable import/export, we’ll have to disable switch mapping definition feature in Syndesis.

On the other hand, backend still should be aware of all available mapping definitions, and better to be stored in a logical structure. I think we can create sub directories for each mapping definitions with having mapping definition ID as a directory name. It could be just a sequence number, so that we can assume 0 is always a default mapping definition. REST API would accept mapping definition sequence number to refer specific mapping definition, and 0 is assumed if not specified.

Supporting multiple import/export mapping definitions at once could be a separate feature so that it could come later. We can export current active mapping definition for now. Import might have to overwrite active mapping definition until we provide switch mapping definition feature in standalone UI. So for the 1st step, all of catalog GZ file, mapping JSON file, ADM file would be placed in each mapping definition sub directories, so that all imported schemas are isolated for each mapping definitions. However, lib/ directory is better to stay at the top directory, otherwise we’d have to switch classpath for every backend invocation.

React migration shouldn’t be that hard for this one… maybe think about it when we arrive there.

1reaction
igarashitmcommented, Sep 18, 2019

Sounds good, right now busy with fixing bugs though, I’ll try jumping on it soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Accessing multiple controllers with same request mapping
You can have multiple controller methods use the same URI so long as you provide Spring enough additional information on which one it...
Read more >
Configure Route-Maps Applied with Redistribution Command
In redistribution, a route-map is applied to each route installed into the routing table, by the protocol specified in the redistribute command.
Read more >
Configure alternate access mappings for SharePoint Server
On the Alternate Access Mappings page, click Map to External Resource. · On the Create External Resource Mapping page, in the Resource Name...
Read more >
Mappings - AWS CloudFormation
Within a mapping, each map is a key followed by another mapping. The key must be a map of name-value pairs and unique...
Read more >
Configuring Routes and Domains | Cloud Foundry Docs
This approach enables the blue/green rolling deployment strategy. Developers can also map an individual app to multiple routes, enabling access ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found