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

PAYARA-1486 Changed the roomName attribute to be roomID #1410

Closed

Conversation

mikecroft
Copy link
Contributor

I changed the Admin Console label, asadmin command and the attribute that the admin console uses for the REST API.

I did a simple test to make sure it worked...

  1. ran asadmin help notification-xmpp-configure
  2. enabled asadmin command recorder

both times the roomID was correctly used.

@Pandrex247
Copy link
Member

jenkins test please

label="$resource{i18nxn.notifier.xmpp.configuration.roomIDLabel}"
helpText="$resource{i18nxn.notifier.xmpp.configuration.roomIDLabelHelpText}">
<sun:textField id="roomID" columns="$int{75}" maxLength="255"
text="#{pageSession.valueMap['roomID']}" styleClass="required"
Copy link
Member

Choose a reason for hiding this comment

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

This won't work - The property name is separate to the parameter name. See the following comment...

Copy link
Member

@Pandrex247 Pandrex247 left a comment

Choose a reason for hiding this comment

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

More refactoring required

@@ -84,7 +84,7 @@
@Param(name = "securityDisabled", defaultValue = "false", optional = true)
private Boolean securityDisabled;

@Param(name = "roomName")
@Param(name = "roomID")
private String roomName;
Copy link
Member

Choose a reason for hiding this comment

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

Bleurgh! Refactoring just the parameter name isn't very nice! 😝
It's not just messy - as I mentioned in the previous comment, the property returned by the get command is separate to this parameter name, so you still have some refactoring to do!

A quick grep (and off the top of my head) you'll need to refactor all occurrences of roomName to roomID:

  • In this class
  • In the XmppNotifierConfiguration class
  • In the GetXmppNotifierConfiguration class
  • In the XmppNotifierConfigurationExecutionOptions class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, I thought I could get away with just renaming the bits the user could see >.<

@payara-ci
Copy link
Contributor

One or more tests have failed

@smillidge
Copy link
Contributor

Should I close this without merging?

@Pandrex247
Copy link
Member

It's a valid PR, it just needs the extra steps I noted in my review completed before we can merge.

@mulderbaba
Copy link
Contributor

PR#1438 makes this one obsolete

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.

6 participants