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

Feature/124 #165

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Feature/124 #165

wants to merge 10 commits into from

Conversation

selgueti
Copy link
Contributor

@selgueti selgueti commented May 17, 2022

[feature #124] Allow to select an open graph to explore paths

Description

  • Enable Tools > Explore graph paths if at least one graph is open
  • Change the type of inputGraphName from JTextField to JComboBox
  • Adapt the code that assumes inputGraphFrame is a JTextField
  • Make GraphPathFrame an observer of GraphFrame
  • Fill the inputGraphName with the list of opened GraphFrame

Motivation and Context

issue #124

How Has This Been Tested?

This new feature has been tested with the following scenarios:

  1. Existing graph

    • Open a graph with the FSGraph menu
    • FSGraph > Tools > Explore graph paths
    • Click on run
    • We have the expected output
  2. New graph (unsaved)

    • Create a new graph
    • FSGraph > Tools > Explore graph paths
    • Click on run
    • Error message because we explore an unsaved graph (expected)
  3. New graph (saved)

    • Create a new graph
    • Save it
    • FSGraph > Tools > Explore graph paths
    • Click on run
    • We have the expected output
  4. New graph

    • Create a new graph
    • FSGraph > Tools > Explore graph paths
    • Click on run
    • Error message because we explore an unsaved graph (expected)
    • Go back to the graph frame
    • Save the graph
    • Go back to the graph path frame
    • Give an output file name
    • Click on run
    • We have the expected output
  5. Several graphs (same directory)

    • Open several graphs, from the same directory
    • FSGraph > Tools > Explore graph paths
    • All graphs are mentioned in the ComboBox
    • Choose a graph and click on run
    • We have the expected output
  6. Several graphs (different directory)

    • Open several graphs, from different directory
    • FSGraph > Tools > Explore graph paths
    • All graphs are mentioned in the ComboBox
    • Choose a graph and click on run
    • We have the expected output
  7. Reactive frame

    • Open several graphs
    • FSGraph > Tools > Explore graph paths
    • Close all graphs frames
    • The GraphPathFrame is automatically closed (expected)
  8. Access to FSGraph > Tools > Explore graph paths even if the focused frame is not a graph frame

    • Open a graph
    • Open another frame, a DELA dictionary for example
    • FSGraph > Tools > Explore graph paths is available (expected)

Type of files

  • bin: Binary files
  • ci: Continuous integration files
  • doc: Documentation files
  • Plain-text source code files

Level of change

  • break: Breaking change
  • exp: Experimental change
  • tmp: Temporal change
  • major: Major change
  • minor: Minor change
  • revert: Revert a commit change
  • sec: Vulnerability-related change
  • None of the above (normal change)

Type of change

  • deprecat: Deprecation of a once-stable feature
  • enhance: Enhancement in existing functionality
  • fix: Bug fix
  • feature: New feature
  • hotfix: Hotfix for bugs
  • refactor: Improve coding style, comments
  • remove: Remove a feature

Checklist:

  • My code compiles
  • My code does not generate new warnings
  • My code only implements a single fix or feature
  • My code does not contain any changes unrelated to the fix or feature
  • My code follows the code style of this project
  • My code includes javadoc/doxygen where appropriate
  • My code is well factored, so that there is not repetitive code in the wild
  • My code does not refactor the surrounding code unless necessary
  • My code does not require a change in the documentation, if so I already opened an issue to list the changes
  • I have read the CONTRIBUTING document
  • I have read the Pull Request/Commit Message Guidelines
  • I have given a clear and concise title to my pull request following the above guidelines
  • I understand that all commits on my pull request will be squashed to a single good one
  • All above points were checked and are marked

@pullapprove pullapprove bot requested a review from gvollant May 17, 2022 14:55
@selgueti
Copy link
Contributor Author

selgueti commented May 17, 2022

I just realized that the PR contains changes for the Config.java file that should not be there. If I revert the commit c99e37c, do you think this fixes the problem ?

I would also like to know what the procedure is when merging a PR to ensure that I have an up-to-date version for future changes.

Best regards.

@martinec
Copy link
Member

martinec commented May 18, 2022

I just realized that the PR contains changes for the Config.java file that should not be there. If I revert the commit c99e37c, do you think this fixes the problem ?

This question is more related on how to use git and GitHub rather to the project. Even if it is possible that your question is not directly answered, I can suggest some links to take a look:

I would also like to know what the procedure is when merging a PR to ensure that I have an up-to-date version for future changes.

Ibid. but take also a look to the point 9 in the contribution guidelines

@martinec martinec requested review from martinec and removed request for gvollant May 18, 2022 11:42
Copy link
Member

@martinec martinec left a comment

Choose a reason for hiding this comment

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

Avoid refactor spaces in Config.java

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