Skip to content
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

6953 mpconfig context param #7695

Merged
merged 13 commits into from
Aug 18, 2021

Conversation

poikilotherm
Copy link
Contributor

@poikilotherm poikilotherm commented Mar 17, 2021

What this PR does / why we need it:
This allows for a very dynamic changing of JSF parameters without recompilation. It adds docs how to do this, too.

This PR also relies on the fact that people should upgrade from Payara 5.2020.6 or later to at least 5.2021.1 to gain support for MPCONFIG 2.0 and default parametes in ${MPCONFIG=...} variable substitution, which is described in #7701

Which issue(s) this PR closes:

Closes #6953
⚡ Blocked by #7701

Special notes for your reviewer:
None.

Suggestions on how to test this:
Change some of the documented vars e. g. via system properties.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Nope.

Is there a release notes update needed for this change?:
Yes, two. 🔋 included.

Additional documentation:
None.

@poikilotherm poikilotherm added Type: Feature a feature request Feature: Developer Guide User Role: Sysadmin Installs, upgrades, and configures the system, connects via ssh labels Mar 17, 2021
@poikilotherm poikilotherm force-pushed the 6953-mpconfig-context-param branch from 6102e1a to 295636a Compare March 17, 2021 15:11
@poikilotherm poikilotherm requested a review from pdurbin March 17, 2021 15:32
@poikilotherm poikilotherm force-pushed the 6953-mpconfig-context-param branch from 295636a to 617592f Compare March 18, 2021 16:12
@poikilotherm poikilotherm changed the title 6953 mpconfig context param + Payara 5.2021.1 update req 6953 mpconfig context param Mar 18, 2021
@pdurbin
Copy link
Member

pdurbin commented Mar 24, 2021

This seems like a great solution to #6953 but it depends on pull request #7701 so it probably doesn't below in code review.

…yara 5.2020.6 IQSS#6953

Reverts commit ca35411

Due to the nature of the application server, when the web app context is
initialised, it cannot yet access the deployments default MPCONFIG
source within META-INF/microprofile-config.properties.

As a consequence, as long as we do not update to Payara 5.2021.1, we
cannot provide sane defaults within the variable. That means that every
installation would need to set the variables in MPCONFIG sources
available at startup time and before the deployment finished: any
are possible that are baked into Payara.

As this doesn't seem feasible, this PR will be blocked until IQSS#7700 is
resolved.
@poikilotherm
Copy link
Contributor Author

poikilotherm commented Mar 26, 2021

As this relies on Payara 5.2021.1 (see 48d6501 for an extensive explanation), I will put this back to draft.

@poikilotherm poikilotherm marked this pull request as draft March 26, 2021 00:44
@poikilotherm
Copy link
Contributor Author

As #7701 is likely to be merged soonish, pushing this PR back into the pipeline.

@pdurbin
Copy link
Member

pdurbin commented Jun 29, 2021

It looks like pull request #7701 is a little more involved than we originally thought and since it's a dependency (and since the Review column is pretty full), let's leave this in Community Dev until that other pull request is merged.

@poikilotherm
Copy link
Contributor Author

Putting this back in Review now...

@djbrooke
Copy link
Contributor

Thanks @poikilotherm, we'll review. You mentioned two release notes in the PR description but I only saw one in the changed files - is there one missing or was the second release note handled elsewhere?

@poikilotherm
Copy link
Contributor Author

Looks like a leftover. Just ignore that... Thx!

@pdurbin pdurbin self-assigned this Aug 17, 2021
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

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

@poikilotherm I'm so happy for this pull request. In the years since 5f99037 I've had to maintain a local edit to src/main/webapp/WEB-INF/web.xml and be careful not to commit it to git in order to for my edits to the GUI to be visible. Now, it's just a simple change to domain.xml, which I added to the docs and the "rebuild" script (using asadmin).

@pdurbin pdurbin removed their assignment Aug 17, 2021
@kcondon kcondon self-assigned this Aug 17, 2021
@kcondon kcondon merged commit 7fd59a5 into IQSS:develop Aug 18, 2021
@djbrooke djbrooke added this to the 5.7 milestone Aug 19, 2021
@poikilotherm poikilotherm deleted the 6953-mpconfig-context-param branch December 15, 2021 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Developer Guide Type: Feature a feature request User Role: Sysadmin Installs, upgrades, and configures the system, connects via ssh
Projects
None yet
Development

Successfully merging this pull request may close these issues.

As a developer, I want changes I make to the front end to be visible when I deploy from Netbeans
4 participants