Project

General

Profile

Actions

Story #3410

closed

[API] Rename collection "desired replication" attributes, add model constraints

Added by Misha Zatsman over 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Target version:
Start date:
07/29/2014
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Story points:
1.0

Description

Each collection record should have a field corresponding to the level of replication that the owner desires.

It's okay to leave this field blank, in which case the default value will be assumed.

The default replication level for collections should be a systemwide default which the api server can return.

Implementation:
  • Rename redundancy -> replication_desired
  • Rename redundancy_confirmed -> replication_confirmed
  • Rename redundancy_confirmed_at -> replication_confirmed_at
  • Drop redundancy_confirmed_by_client_uuid column
  • Delete redundancy_status method from models/collection.rb
  • Prevent non-privileged users from updating replication_confirmed* columns
  • When a collection's manifest_text changes in a way that introduces new block hashes (that weren't in the old manifest_text), reset redundancy_confirmed* columns to NULL
  • Add a config entry in services/api/config/application.default.yml, default_collection_replication: 2
  • Expose the config entry in the discovery document (as defaultCollectionReplication at top level?)

Subtasks 3 (0 open3 closed)

Task #5100: Write migrationResolvedTom Clegg07/29/2014

Actions
Task #5101: Write testsResolvedTom Clegg07/29/2014

Actions
Task #5165: Review 3410-replication-attrsResolvedRadhika Chippada07/29/2014

Actions

Related issues 4 (0 open4 closed)

Related to Arvados - Bug #5685: [SDKs] In Go SDK keepclient, use defaultCollectionReplication as default Want_replicas (instead of always 2)Resolved

Actions
Blocks Arvados - Story #3408: [Keep] Implement Production Data ManagerResolvedPeter Amstutz07/29/2014

Actions
Blocks Arvados - Feature #5011: [SDKs] arv-put accepts --replication argument (saved with collection record)ResolvedTom Clegg01/30/2015

Actions
Blocks Arvados - Task #5124: Use server-provided default replication level as default in arv-put and CollectionWriter classesResolvedTom Clegg01/30/2015

Actions
Actions

Also available in: Atom PDF