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

Fixes #799 - add rsp server feature #800

Merged
merged 10 commits into from Sep 8, 2023
Merged

Conversation

robstryker
Copy link
Member

Pull Request Checklist

General

  • Is this a blocking issue or new feature? If yes, QE needs to +1 this PR

Code

  • Are method-/class-/variable-names meaningful?
  • Are methods concise, not too long?
  • Are catch blocks catching precise Exceptions only (no catch all)?

Testing

  • Are there unit-tests?
  • Are there integration tests (or at least a jira to tackle these)?
  • Is the non-happy path working, too?
  • Are other parts that use the same component still working fine?

Function

  • Does it work?

Signed-off-by: Rob Stryker <rob@oxbeef.net>
Signed-off-by: Rob Stryker <rob@oxbeef.net>
Signed-off-by: Rob Stryker <rob@oxbeef.net>
Signed-off-by: Rob Stryker <rob@oxbeef.net>

Cleanup pt 2

Signed-off-by: Rob Stryker <rob@oxbeef.net>
Signed-off-by: Rob Stryker <rob@oxbeef.net>
@sbouchet
Copy link
Contributor

first comment about general usage of the view. below is the some screenshots of my tests.
Capture d’écran du 2023-08-31 11-24-48
Capture d’écran du 2023-08-31 11-25-07
Capture d’écran du 2023-08-31 11-25-31
Capture d’écran du 2023-08-31 11-26-17
Capture d’écran du 2023-08-31 11-26-43
Capture d’écran du 2023-08-31 11-28-13

@sbouchet
Copy link
Contributor

first comment about general usage of the view. below is the some screenshots of my tests. Capture d’écran du 2023-08-31 11-24-48 Capture d’écran du 2023-08-31 11-25-07

those are ok.

@sbouchet
Copy link
Contributor

Capture d’écran du 2023-08-31 11-25-31

here the list is cropped at the very end.

@sbouchet
Copy link
Contributor

Capture d’écran du 2023-08-31 11-26-17

is the secure storage pop pu is mandatory ? the text box is too short, please use all the space.

@sbouchet
Copy link
Contributor

sbouchet commented Aug 31, 2023

Capture d’écran du 2023-08-31 11-26-43
Capture d’écran du 2023-08-31 11-28-13

those two have some background issues and labels are not centered with the text boxes.

@@ -0,0 +1,28 @@
###############################################################################
# Copyright (c) 2010-2012 Red Hat, Inc. and others.
Copy link
Contributor

Choose a reason for hiding this comment

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

as it's new fil, i would assume it should be year 2023.

<artifactItem>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.10.1</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

super.start(context);
plugin = this;

// newServerEventType = new UsageEventType(USAGE_COMPONENT_NAME, UsageEventType.getVersion(ASWTPToolsPlugin.this),
Copy link
Contributor

Choose a reason for hiding this comment

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

please enable those metrics events, it will be available in amplitude for a future chart.

main.setLayoutData(new GridData(GridData.FILL_BOTH));
main.setLayout(new FormLayout());
createUI(main);
// setMessage(info.description != null ? info.description
Copy link
Contributor

Choose a reason for hiding this comment

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

remove these comments if not necessary

}

private void createUI(Composite main) {
// TODO Auto-generated method stub
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove comment

}

public void fillActionBars() {
// getViewSite().getActionBars().getToolBarManager().add(new NewConnectionAction());
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove if not necessary

@Override
public void modelChanged(Object item) {
Display.getDefault().asyncExec(() -> {
// System.out.println("Refreshing " + item);
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove

try {
return new String(Files.readAllBytes(filePath));
} catch (IOException e) {
// TODO log error
Copy link
Contributor

Choose a reason for hiding this comment

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

please use below logger facility to log error.

@@ -0,0 +1,72 @@
/*******************************************************************************
* Copyright (c) 2020 Red Hat, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

2020 or 2023 ?

@robstryker
Copy link
Member Author

Capture d’écran du 2023-08-31 11-26-17

is the secure storage pop pu is mandatory ? the text box is too short, please use all the space.

I'll try to use all the space.

Whether this specific prompt is necessary is more a question about the underlying RPS. The UI is just responding to a request for prompt from the background RSP and must display it.

@robstryker
Copy link
Member Author

Capture d’écran du 2023-08-31 11-26-43
Capture d’écran du 2023-08-31 11-28-13

those two have some background issues and labels are not centered with the text boxes.

Looks fine in light mode, but not dark mode. Wonder what's wrong here.

@robstryker
Copy link
Member Author

Looks fine in light mode, but not dark mode. Wonder what's wrong here.

Seems the styling matches on class names somehow, and extending "Composite" is frowned upon. Converting my composite subclasses to just be a kind of wrapper instead seems to fix it.

Signed-off-by: Rob Stryker <rob@oxbeef.net>
Signed-off-by: Rob Stryker <rob@oxbeef.net>
Signed-off-by: Rob Stryker <rob@oxbeef.net>
Signed-off-by: Rob Stryker <rob@oxbeef.net>
Signed-off-by: Rob Stryker <rob@oxbeef.net>
@robstryker robstryker merged commit fe26f00 into jbosstools:main Sep 8, 2023
4 checks passed
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.

None yet

2 participants