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

feat(xo-web,xo-server): implement ISO import #6180

Merged
merged 6 commits into from
Apr 28, 2022
Merged

Conversation

fbeauchamp
Copy link
Collaborator

@fbeauchamp fbeauchamp commented Apr 6, 2022

importiso

Check list

Check if done, if not relevant leave unchecked.

  • PR reference the relevant issue (e.g. Fixes #007 or See xoa-support#42)
  • if UI changes, a screenshot has been added to the PR
  • documentation updated
  • CHANGELOG.unreleased.md:
    • enhancement/bug fix entry added
    • list of packages to release updated (${name} v${new version})
  • I have tested added/updated features (and impacted code)

Process

  1. create a PR as soon as possible
  2. mark it as WiP: (Work in Progress) if not ready to be merged
  3. when you want a review, add a reviewer (and only one)
  4. if necessary, update your PR, and re- add a reviewer

From the Four Agreements:

  1. Be impeccable with your word.
  2. Don't take anything personally.
  3. Don't make assumptions.
  4. Always do your best.

@fbeauchamp fbeauchamp force-pushed the feat_import_iso branch 5 times, most recently from 3b0b036 to 25fb509 Compare April 20, 2022 15:38
@fbeauchamp fbeauchamp changed the title wip: Feat: import iso Feat: add ability to import iso Apr 20, 2022
@fbeauchamp fbeauchamp changed the title Feat: add ability to import iso Feat(import): add ability to import iso Apr 20, 2022
packages/xo-web/src/common/select-objects.js Outdated Show resolved Hide resolved
packages/xo-web/src/xo-app/disk-import/index.js Outdated Show resolved Hide resolved
packages/xo-web/src/xo-app/disk-import/index.js Outdated Show resolved Hide resolved
@MathieuRA MathieuRA requested a review from pdonias April 22, 2022 08:38
Copy link
Member

@pdonias pdonias left a comment

Choose a reason for hiding this comment

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

Don't forget to mention xo-server and xo-web in the commit message's context: feat(xo-server,xo-web/import): ...

@@ -1584,7 +1584,7 @@ const messages = {
// ---- Disk import ---
diskImportFailed: 'Disk import failed',
diskImportSuccess: 'Disk import success',
dropDisksFiles: 'Drop VMDK or VHD files here to import disks.',
dropDisksFiles: 'Drop ISO, VMDK or VHD files here to import disks.',
Copy link
Member

Choose a reason for hiding this comment

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

Other languages need to be updated too.


return (
<ReactDropzone
activeClassName={styles.activeDropzone}
className={styles.dropzone}
multiple={multiple}
onDrop={onDrop}
accept={accept}
Copy link
Member

Choose a reason for hiding this comment

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

Keep the props sorted.

@@ -108,12 +108,16 @@ const DiskImport = decorate([
<Row>
<LabelCol>{_('importToSr')}</LabelCol>
<InputCol>
<SelectSr onChange={effects.onChangeSr} required value={sr} />
<SelectSr onChange={effects.onChangeSr} required value={sr} allowIsoSr />
Copy link
Member

Choose a reason for hiding this comment

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

Why don't you pass predicate={isSrWritableOrIso} instead of handling a rare case in the component itself?

@julien-f julien-f changed the title Feat(import): add ability to import iso feat(xo-web,xo-server): implement ISO import Apr 28, 2022
@julien-f julien-f merged commit 0706e6f into master Apr 28, 2022
@julien-f julien-f deleted the feat_import_iso branch April 28, 2022 08:41
@prononext
Copy link

it would be really nice to have the import possible via URL also. Like it is already possible with virtual machines

@julien-f
Copy link
Member

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

5 participants