Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

fix(disk-offering): enable change disk offering for volume #1402

Merged
merged 10 commits into from
Nov 8, 2018

Conversation

wowshakhov
Copy link
Collaborator

@wowshakhov wowshakhov commented Nov 6, 2018

Previous PR: #1368

@coveralls
Copy link

coveralls commented Nov 6, 2018

Pull Request Test Coverage Report for Build 1316

  • 12 of 25 (48.0%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 53.587%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/app/reducers/volumes/redux/volumes.effects.ts 11 24 45.83%
Files with Coverage Reduction New Missed Lines %
src/app/reducers/volumes/redux/volumes.actions.ts 2 89.09%
Totals Coverage Status
Change from base Build 1315: -0.1%
Covered Lines: 8223
Relevant Lines: 13476

💛 - Coveralls

@wowshakhov wowshakhov requested a review from tamazlykar November 6, 2018 07:02
map((volume: Volume) => {

const diskofferingid = !isRoot(volume) && params.diskofferingid;
const size = (() => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do you use a self-executing anonymous function?

@@ -224,12 +227,12 @@ export class VolumesEffects {
@Effect()
resizeVolume$: Observable<Action> = this.actions$.pipe(
ofType(volumeActions.RESIZE_VOLUME),
mergeMap((action: volumeActions.ResizeVolume) => {
withLatestFrom(this.store.pipe(select(fromDiskOfferings.selectEntities))),
switchMap(([action, diskOfferings]: [volumeActions.ResizeVolume, any]) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't use any. We have NgrxEntities interface for this case.

@@ -32,6 +32,9 @@ import * as fromVolumes from './volumes.reducers';
import * as snapshotActions from '../../snapshots/redux/snapshot.actions';
// tslint:disable-next-line
import { VolumeDeleteDialogComponent } from '../../../shared/actions/volume-actions/volume-delete/volume-delete-dialog.component';
import { isCustomized } from '../../../shared/models/offering.model';
import * as fromDiskOfferings from '../../disk-offerings/redux/disk-offerings.reducers';
import * as pickBy from 'lodash/pickBy';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you use a Sort imports by modules?

component.newSize = newVolumeSize;
spyOn(component.diskResized, 'emit').and.callThrough();

const diskOffering = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add type

return null;
})();

const requestParams = pickBy(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add type

@wowshakhov wowshakhov requested a review from tamazlykar November 7, 2018 06:23
@wowshakhov wowshakhov merged commit b329cff into bwsw:master Nov 8, 2018
@wowshakhov wowshakhov deleted the 1352-disk-offering branch November 8, 2018 08:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants