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

feat(vm-snapshot): manage maximum VM snapshots amount in config.json #1523

Merged
merged 5 commits into from
Jan 28, 2019

Conversation

HeyRoach
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Jan 14, 2019

Pull Request Test Coverage Report for Build 1611

  • 4 of 6 (66.67%) changed or added relevant lines in 2 files are covered.
  • 272 unchanged lines in 16 files lost coverage.
  • Overall coverage decreased (-0.2%) to 53.621%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/app/root-store/server-data/vm-snapshots/vm-snapshots.selectors.ts 2 4 50.0%
Files with Coverage Reduction New Missed Lines %
src/app/shared/models/account.model.ts 2 75.0%
src/app/reducers/affinity-groups/redux/affinity-groups.reducers.ts 2 46.43%
src/app/reducers/account-tags/redux/account-tags.reducers.ts 3 64.0%
src/app/shared/components/vm-statistics/vm-statistic.container.ts 3 55.56%
src/app/reducers/auth/redux/auth.reducers.ts 4 43.48%
src/app/reducers/zones/redux/zones.reducers.ts 5 43.75%
src/app/root-store/server-data/capabilities/capabilities.selectors.ts 5 48.15%
src/app/shared/actions/volume-actions/volume-resize.container.ts 10 48.39%
src/app/reducers/service-offerings/redux/service-offerings.reducers.ts 10 65.45%
src/app/vm/container/vm.container.ts 11 35.48%
Totals Coverage Status
Change from base Build 1598: -0.2%
Covered Lines: 9200
Relevant Lines: 15195

💛 - Coveralls

config-guide.md Outdated
@@ -121,6 +122,17 @@ For example,
]
```

### VM Snapshots Limit

Allows you to set a maximum amount of vm snapshots.
Copy link
Collaborator

@wowshakhov wowshakhov Jan 14, 2019

Choose a reason for hiding this comment

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

the maximum number of VM snapshots

this.store.pipe(select(vmSnapshotSelectors.getVmSnapshotsAmountForSelectedVm)),
),
exhaustMap(([action, vmSnapLimit, snapshotsAmount]) => {
if (vmSnapLimit && vmSnapLimit <= snapshotsAmount) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

rename snapshotsAmount to snapshotNumber

@@ -107,6 +107,9 @@
"ISO": {
"VMS_IN_USE": "Unable to delete the ISO as it's used by the following VMs:<br>{{ vms }}"
},
"VM_SNAPSHOT": {
"LIMIT_EXCEEDED": "The maximum amount of VM snapshots is exceeded. Please check your configurations"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is "configurations" written in plural? (both English and Russian)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is from requirements. I will ask PM.

# Conflicts:
#	src/app/core/config/validation-schemes/index.ts
#	src/app/root-store/server-data/vm-snapshots/vm-snapshots.effects.ts
@HeyRoach HeyRoach merged commit 0ba17bf into bwsw:master Jan 28, 2019
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.

None yet

3 participants