Skip to content

Commit

Permalink
Housekeeping: Rename Filereplica to FileReplica
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Schwarz authored and ThePhisch committed Sep 18, 2023
1 parent 54eafde commit 9c452af
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/lib/core/dto/replica-dto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DIDDatasetReplicas, FilereplicaState } from "../entity/rucio";
import { DIDDatasetReplicas, FileReplicaState } from "../entity/rucio";
import { BaseDTO, BaseStreamableDTO } from "@/lib/sdk/dto";

/**
Expand All @@ -11,7 +11,7 @@ export interface ListReplicasDTO extends BaseStreamableDTO {}
/**
* Represents file replica state.
*/
export interface FileReplicaStateDTO extends BaseDTO, FilereplicaState {}
export interface FileReplicaStateDTO extends BaseDTO, FileReplicaState {}


/**
Expand Down
4 changes: 2 additions & 2 deletions src/lib/core/entity/rucio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export type DIDRules = {
}

// File replica states for file DIDs
export type FilereplicaState = {
export type FileReplicaState = {
rse: string
state: ReplicaState
}
Expand All @@ -81,7 +81,7 @@ export type FilereplicaState = {
// stores summary information on the file replica states of the files within
// a dataset DID: how many files are in each state
// currently not in use since we only display scopenames
export type FilereplicaStateD = {
export type FileReplicaStateD = {
scope: string,
name: string,
available: number,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FilereplicaState } from "../entity/rucio"
import { FileReplicaState } from "../entity/rucio"
import { BaseErrorResponseModel, BaseResponseModel } from "@/lib/sdk/usecase-models"
/**
* @interface ListFileReplicasRequest represents the RequestModel for list_file_replicas usecase
Expand All @@ -11,7 +11,7 @@ export interface ListFileReplicasRequest {
/**
* @interface ListFileReplicasResponse represents the ResponseModel for list_file_replicas usecase
*/
export interface ListFileReplicasResponse extends FilereplicaState, BaseResponseModel {}
export interface ListFileReplicasResponse extends FileReplicaState, BaseResponseModel {}


/**
Expand Down
6 changes: 3 additions & 3 deletions src/lib/infrastructure/data/view-model/did.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
DID, DIDLong, DIDMeta, DIDType, ReplicaState, RuleState, DIDRules, DIDKeyValuePairsData,
FilereplicaState, FilereplicaStateD, DIDDatasetReplicas
FileReplicaState, FileReplicaStateD, DIDDatasetReplicas
} from "@/lib/core/entity/rucio";
import { BaseViewModel } from "@/lib/sdk/view-models";

Expand All @@ -11,8 +11,8 @@ export interface DIDMetaViewModel extends DIDMeta, BaseViewModel {}
export interface DIDKeyValuePairsDataViewModel extends DIDKeyValuePairsData, BaseViewModel {}
export interface DIDRulesViewModel extends DIDRules, BaseViewModel {}
export interface DIDDatasetReplicasViewModel extends DIDDatasetReplicas, BaseViewModel {}
export interface FilereplicaStateViewModel extends FilereplicaState, BaseViewModel {}
export interface FilereplicaStateDViewModel extends FilereplicaStateD, BaseViewModel {}
export interface FilereplicaStateViewModel extends FileReplicaState, BaseViewModel {}
export interface FilereplicaStateDViewModel extends FileReplicaStateD, BaseViewModel {}

export function generateEmptyDIDRulesViewModel(): DIDRulesViewModel {
return {
Expand Down

0 comments on commit 9c452af

Please sign in to comment.