-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InDesign "Dynamic Deck Dynamo" #2266
InDesign "Dynamic Deck Dynamo" #2266
Conversation
…nto feature/dynamic-deck-dymano-prod
2- Updated queries 3- Changed clientlib category name 4- Code refactoring.
…/acs-aem-commons into feature/dynamic-deck-dymano-prod
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update the CHANGELOG.md file with this pull request. |
I am working on codeclimate issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! just a handful of minor items!
...a/com/adobe/acs/commons/indesign/dynamicdeckdynamo/models/DynamicDeckInitiatorPageModel.java
Outdated
Show resolved
Hide resolved
...a/com/adobe/acs/commons/indesign/dynamicdeckdynamo/models/DynamicDeckInitiatorPageModel.java
Outdated
Show resolved
Hide resolved
...a/com/adobe/acs/commons/indesign/dynamicdeckdynamo/models/DynamicDeckInitiatorPageModel.java
Outdated
Show resolved
Hide resolved
...a/com/adobe/acs/commons/indesign/dynamicdeckdynamo/models/DynamicDeckInitiatorPageModel.java
Outdated
Show resolved
Hide resolved
...s/commons/indesign/dynamicdeckdynamo/osgiconfigurations/DynamicDeckConfigurationService.java
Outdated
Show resolved
Hide resolved
...a/com/adobe/acs/commons/indesign/dynamicdeckdynamo/services/impl/DynamicDeckServiceImpl.java
Outdated
Show resolved
Hide resolved
...a/com/adobe/acs/commons/indesign/dynamicdeckdynamo/services/impl/DynamicDeckServiceImpl.java
Show resolved
Hide resolved
...java/com/adobe/acs/commons/indesign/dynamicdeckdynamo/servlets/TriggerDeckDynamoServlet.java
Outdated
Show resolved
Hide resolved
...le/src/main/java/com/adobe/acs/commons/indesign/dynamicdeckdynamo/servlets/package-info.java
Outdated
Show resolved
Hide resolved
...a/com/adobe/acs/commons/indesign/dynamicdeckdynamo/constants/DynamicDeckDynamoConstants.java
Outdated
Show resolved
Hide resolved
.../java/com/adobe/acs/commons/indesign/dynamicdeckdynamo/models/CollectionSelectComponent.java
Outdated
Show resolved
Hide resolved
return Collections.emptyMap(); | ||
} | ||
Optional<String> listPath = getOption(GENERIC_LIST_PATH); | ||
Page genericListPage = pageManager.getPage(listPath.get()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you are already working with Optional
you could use .map(...)
to make the subsequent steps much more readable.
@@ -0,0 +1,74 @@ | |||
package com.adobe.acs.commons.indesign.dynamicdeckdynamo.models; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this model class exported (and can be referenced from other bundles)?
...s/commons/indesign/dynamicdeckdynamo/osgiconfigurations/DynamicDeckConfigurationService.java
Outdated
Show resolved
Hide resolved
.../main/java/com/adobe/acs/commons/indesign/dynamicdeckdynamo/services/DynamicDeckService.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/com/adobe/acs/commons/indesign/dynamicdeckdynamo/utils/DynamicDeckUtils.java
Outdated
Show resolved
Hide resolved
...a/com/adobe/acs/commons/indesign/dynamicdeckdynamo/services/impl/DynamicDeckServiceImpl.java
Outdated
Show resolved
Hide resolved
...a/com/adobe/acs/commons/indesign/dynamicdeckdynamo/services/impl/DynamicDeckServiceImpl.java
Outdated
Show resolved
Hide resolved
...a/com/adobe/acs/commons/indesign/dynamicdeckdynamo/services/impl/DynamicDeckServiceImpl.java
Outdated
Show resolved
Hide resolved
...a/com/adobe/acs/commons/indesign/dynamicdeckdynamo/services/impl/DynamicDeckServiceImpl.java
Outdated
Show resolved
Hide resolved
.../com/adobe/acs/commons/indesign/dynamicdeckdynamo/services/impl/XMLGeneratorServiceImpl.java
Outdated
Show resolved
Hide resolved
.../com/adobe/acs/commons/indesign/dynamicdeckdynamo/services/impl/XMLGeneratorServiceImpl.java
Outdated
Show resolved
Hide resolved
...java/com/adobe/acs/commons/indesign/dynamicdeckdynamo/servlets/TriggerDeckDynamoServlet.java
Outdated
Show resolved
Hide resolved
} catch (DynamicDeckDynamoException e) { | ||
response.setStatus(500); | ||
jsonResponse.addProperty(MESSAGE, "Deck creation Failed!"); | ||
LOGGER.error("Exception occurred while initiating the deck generation", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe logging some more parameters could help to diagnose the error better.
…-commons into feature/dynamic-deck-dymano-prod
@jasiwal I made a small organizational adjustments (reducing the public API space, adding Providertypes) here: https://github.com/davidjgonzalez/acs-aem-commons/tree/feature/dynamic-deck-dymano-prod But i can't seem to PR into your repo/branch (IIRC you have to allow this on your repo/profile?) |
@jasiwal also - I noticed that the build for this is failing due to the DialogResourceProviderFactoryTest (can't call activate).. it doesn't look like you touched anything that would cause this test to behave differently..? Am i missing something? |
@davidjgonzalez Yes, I have not touched anything in "test" area. I am not sure why test is failing. I am just using MCP @formfield for constructing the Dynamic Deck form. |
…/acs-aem-commons into feature/dynamic-deck-dymano-prod
…-prod Feature/dynamic deck dymano prod
This reverts commit e329780.
…/acs-aem-commons into feature/dynamic-deck-dymano-prod
@badvision The test for |
@badvision Just to add, I am using GeneratedDialog just to create a form page in below file. |
By the sound of it, the dialog provider OSGi service isn't able to start because some dependent OSGi service isn't injected first. I would need to know more about the stacktrace to understand the issue fully. The main branch is working, FWIW. |
@badvision can your |
@badvision here's the error from travis..
|
Fixed the issue w the failing tests here: https://github.com/jasiwal/acs-aem-commons/pull/2/files Didn't look too deep, but the inherited getHelper() method was returning null for some reason. Also, the @badvision it's probably worth looking at how this can be isolated. Pretty confusing when something that simply uses your MCP Forms breaks their (MCP Forms) tests... |
This reverts commit b5fdd61.
…-prod Feature/dynamic deck dynamo prod
So the reason it does that is because it looks at every model to see if that model is a dialog resource provider or not. I could change that annotation to instead be a compile-time annotation and add an annotation processor to a model which puts the dialog generation gunk in there. This would obviate the need for the dialog provider service I think. |
Any way we can improve test coverage before calling this complete? |
@badvision Just a FYI - we're planning on merging this for initial release with test coverage coming behind it, due to some urgent project need for this feature. This feature also comes from a real-life project so its been battle-hardened already (though this, of course, does not reduce the need for tests, but is a welcome bonus!) |
Well if you're okay with it then I'm ok with it but can we first create an issue to improve testing so we track that work too? :) |
@badvision sure: #2279 |
A Dynamic Deck Dynamo is a tool that uses InDesign’s XML import functionality to insert data and images from AEM into a generated InDesign document.
More about DDD Thanks to Peter Nam for presentation.
Thanks to John Bennett for Image below