Skip to content

CONFLUENCE-413: Add a converter for Jira chart #68

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

Closed
wants to merge 1 commit into from

Conversation

Josue-T
Copy link
Contributor

@Josue-T Josue-T commented Mar 7, 2025

Jira issue: https://jira.xwiki.org/browse/CONFLUENCE-413

For now it's a draft because:

* Convert Confluence jira chart macro.
*
* @version $Id$
* @since 9.81.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will need to update the since tags

Comment on lines +145 to +146
String parameterName = toXWikiParameterName(name, confluenceId, parameters, content);
parameters.put(parameterName, xwikiValue);
Copy link
Contributor

@raphj raphj Mar 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not pass through parameters unless under very specific conditions. We now have automated logs to report unknown parameters, and the pass-through breaks this, and might be problematic for introducing new parameters on the target macros, which could conflict with "passed-though" parameters.

More generally, I think it's better not to iterate over the parameters and handle them with a switch:

  • you can just implement toXWikiParameterName and toXWikiParameterValue directly to do this
  • but I prefer not to do this, and implement toXWikiParameters, and get the parameters you want to convert, and put the result in the resulting parameters map.

Parameters you don't use will be logged., and these logs can help decide what to do, including improving the macro converter. See https://jira.xwiki.org/projects/CONFLUENCE/issues/CONFLUENCE-411. See also xwikisas/application-confluence-migrator-pro#277. You can see how I handled this and how I fixed macro converters to allow this.

@raphj
Copy link
Contributor

raphj commented Apr 25, 2025

@Josue-T should this be closed?

@Josue-T
Copy link
Contributor Author

Josue-T commented Apr 25, 2025

Well I don't mind to close it. Maybe at some point we might decide to have a converter for this macro, but in this case we can reopen this and finalize it.

@raphj raphj closed this Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants