-
Notifications
You must be signed in to change notification settings - Fork 124
Issue413 #559
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
Issue413 #559
Conversation
Added files to what is returned by calls to /api/utils/searchPath. Display files in folder-browser.
public String absolutePath; | ||
|
||
public SearchPathModel(String name, String relativePath, String absolutePath) { | ||
this.name = name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hate to nitpick... but are you using editorconfig to get your spacing right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea why this is appearing this way here. It looks correct in my editor. Editorconfig is installed and applied by default to the entire project, and the project's checked-in .editorconfig is available, which sets the indent on Java files to 4 spaces. Perhaps this is just a formatting issue with the pull request viewer.
server.contextPath=/ | ||
# server.error.whitelabel.enabled=false | ||
logging.level.com.marklogic.hub=INFO | ||
logging.level.com.marklogic.quickstart.web=DEBUG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you take this out?
@tcfenstermaker this looks awesome. I only had 2 comments about the code. |
I am not sure about .editorconfig, as I do have that installed and configured in intelliJ; I'm looking now to see if it's applying in this project. I will remove the debug setting in the properties file. |
…oved unneded debug setting in aplication.properties
@paxtonhare Not sure what was up with the formatting in that |
Basic functionality of displaying files in a selected directory, and being able to select one of those files and have it set as the input_file_path of MLCP. The URI replacement is still set to just the path name, minus the file name. The current folder display is set to just the folder, and does not display the file name.
However, on a redisplay of the Flow, it will display the filename with its path in the Current Folder display. It will also not show the peer files in the file list, and instead just display the .. relative path as the only available option. It is also possible type in the file name in the Current Folder display, which works in setting the MLCP input_file_path, but is inconsistent with what I have it behaving as now.
The event model, and the relationship between the path displayed and the input_file_path, make this more complex than it seems at first. (I can go into detail elsewhere.) So before I "fix" these things, however, I'd like to discuss more what desired behavior we'd like. Do we allow multiple files? If so, how does that look? Do we want a separate display of the file name? Etc.
Meanwhile I believe this pull request contains the basic functionality requested, so I think it serves as a start at least for a candidate to be merged into the current development baseline.