8000 fix some UI issues for database defaults (#10698) · nginxpre/arangodb@c107229 · GitHub
[go: up one dir, main page]

Skip to content

Commit c107229

Browse files
jsteemannKVS85
authored andcommitted
fix some UI issues for database defaults (arangodb#10698)
1 parent f95efed commit c107229

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

js/apps/system/_admin/aardvark/APP/frontend/js/views/collectionsView.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@
472472
// if we are in the cluster and are not using distribute shards like
473473
// then we want to make use of the replication factor
474474
tmpObj.replicationFactor = replicationFactor === "satellite" ? replicationFactor : Number(replicationFactor);
475-
tmpObj.minReplicationFactor = Number(writeConcern);
475+
tmpObj.writeConcern = Number(writeConcern);
476476
}
477477

478478
if (!abort) {
@@ -578,7 +578,7 @@
578578
window.modalView.createTextEntry(
579579
'new-replication-factor',
580580
'Replication factor',
581-
['', 'flexible'].indexOf(properties.sharding) !== -1 ? properties.replicationFactor : '',
581+
properties.replicationFactor ? properties.replicationFactor : '',
582582
'Numeric value. Must be between ' +
583583
(this.minReplicationFactor ? this.minReplicationFactor : 1) +
584584
' and ' +
@@ -647,7 +647,7 @@
647647
window.modalView.createTextEntry(
648648
'new-write-concern',
649649
'Write concern',
650-
['', 'flexible'].indexOf(properties.sharding) !== -1 ? properties.minReplicationFactor : '',
650+
properties.writeConcern ? properties.writeConcern : '',
651651
'Numeric value. Must be at least 1. Must be smaller or equal compared to the replication factor. Total number of copies of the data in the cluster that are required for each write operation. If we get below this value the collection will be read-only until enough copies are created.',
652652
'',
653653
false,

js/apps/system/_admin/aardvark/APP/frontend/js/views/databaseView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@
436436
'newSharding',
437437
'Sharding',
438438
'flexible',
439-
'some nice description TODO',
439+
'Selects the default sharding setup for new collections in this database. *flexible* means that shards of different collections by default will be randomly distributed to database servers. *single* means that collections by default will use the same sharding setup (number of shards and shard distribution) as one of the system collections.',
440440
sharding
441441
)
442442
);

0 commit comments

Comments
 (0)
0