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

Files app clean history final #1043

Merged
merged 20 commits into from
Apr 15, 2021

Conversation

ericfranz
Copy link
Contributor

No description provided.

ericfranz and others added 17 commits April 14, 2021 09:27
Co-authored-by: Mario Squeo <msqueo@osc.edu>
UI for the files app with buttons for various actions not yet implemented

basic implementations for:

1. Open In Terminal
2. Show Dotfiles and Show Owner/Mode (Mario)
3. Filter box clearing on navigating to new directory (Mario)
4. Change directory via AJAX by selecting directory, clicking up, or specifying path in Change directory dialog
5. Copy path button
6. Sorting by Size and Modified at (Mario)

Co-authored-by: Mario Squeo <msqueo@osc.edu>
- Transfer resource allows executing the action synchronously or asynchronously via ActiveJob
- When using ActiveJob we use Rails built in support for GlobalID of the Transfer object
- Transfer manages its own in memory array of Transfer objects
- Client side, each transfer that is asynchronous has its own polling cycle
- Server side validations are enforced using ActiveModel validations
- System tests are added for end to end testing
Directory uploads include empty dirs only when a directory upload is initiated via drag and drop

This is due to HTML5 limitations

When using an <input type="file" webkitdirectory> you get back a FileList of File objects
When using drag and drop you get a transfer object that gives you access to the File and Directory Entries API
@johrstrom johrstrom self-requested a review April 14, 2021 23:25
Copy link
Contributor

@johrstrom johrstrom left a comment

Choose a reason for hiding this comment

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

I can replicate the error the tests are failing on, but I'm good to merge this into the base and fix the tests in the base branch.

@ericfranz ericfranz merged commit e7aba2a into files_app_clean_history_base Apr 15, 2021
@ericfranz ericfranz deleted the files_app_clean_history_final branch April 15, 2021 00:48
@ericfranz ericfranz mentioned this pull request Apr 26, 2021
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants