Skip to content

Conversation

@jamescdavis
Copy link
Member

@jamescdavis jamescdavis commented Feb 9, 2018

Purpose

Simplify Quick Files move-to-project workflow by removing move to new component functionality

Summary of Changes

  • Removed all code related to creating new components.
  • Adjusted validation logic
  • Adjusted move logic
  • Disable "Cancel", "Back", and "Move file" buttons while moving

Side Effects / Testing Notes

Double check all verbiage.

Ticket

https://openscience.atlassian.net/browse/EMB-102

Reviewer Checklist

  • meets requirements
  • easy to understand
  • DRY
  • testable and includes test(s)
  • changes described in CHANGELOG.md

@jamescdavis jamescdavis changed the title [EMB-102] Remove file-browser move to new component functionality [EMB-102] Remove file-browser move-to-new-component functionality Feb 9, 2018
Copy link
Contributor

@aaxelb aaxelb left a comment

Choose a reason for hiding this comment

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

Disable the cancel/back/move buttons as soon as you click "Move file"! If you click fast you can create a bunch of projects with the same name and it's a fun game to figure out which one actually has the file (hint: it's definitely not the one that "Go to new project" links to).

Other than that, looks solid 👍

@jamescdavis
Copy link
Member Author

Good idea and nice catch.

@jamescdavis jamescdavis force-pushed the EMB-102_simplify_Move_to_Project_Workflow branch from fa9aec8 to 15fafcd Compare February 10, 2018 09:25
@jamescdavis jamescdavis force-pushed the EMB-102_simplify_Move_to_Project_Workflow branch from 15fafcd to a63183c Compare February 10, 2018 09:33
Copy link
Contributor

@aaxelb aaxelb left a comment

Choose a reason for hiding this comment

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

lgtm 🍌

this.get('i18n').t('eosf.components.moveToProject.couldNotMoveFile')
));
))
.then(() => this.set('isMoving', false));
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to refactor this component to use ember-concurrency tasks instead of chained promises, but that can be another time.

@aaxelb aaxelb merged commit f70a3f6 into CenterForOpenScience:develop Feb 12, 2018
baylee-d pushed a commit to baylee-d/ember-osf that referenced this pull request Feb 12, 2018
…nterForOpenScience#353)

* Remove file-browser move to new component functionality

* Update CHANGELOG

* Disable "Cancel", "Back", and "Move file" buttons while moving
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