Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PID Migrator
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
scripts
PID Migrator
Commits
2c4a7351
Commit
2c4a7351
authored
2 years ago
by
Petar Hristov
Browse files
Options
Downloads
Patches
Plain Diff
Logging
parent
f16b7f51
Branches
Branches containing commit
No related tags found
1 merge request
!4
Breaking: Complete Overhaul
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/PIDMigrator/Program.cs
+8
-1
8 additions, 1 deletion
src/PIDMigrator/Program.cs
with
8 additions
and
1 deletion
src/PIDMigrator/Program.cs
+
8
−
1
View file @
2c4a7351
...
...
@@ -8,11 +8,18 @@ var projectModel = new ProjectModel();
var
resourceModel
=
new
ResourceModel
();
// PID Endpoints found inside EpicClient's definition (see Coscine.Action Library)
Console
.
WriteLine
(
"Project PIDs"
);
foreach
(
var
project
in
projectModel
.
GetAll
())
{
EpicUtil
.
UpdatePID
(
project
.
Id
.
ToString
(),
configuration
);
Console
.
WriteLine
(
$"Updated PID for Project
{
project
.
Id
}
"
);
}
Console
.
WriteLine
(
"\nResource PIDs"
);
foreach
(
var
resource
in
resourceModel
.
GetAll
())
{
EpicUtil
.
UpdatePID
(
resource
.
Id
.
ToString
(),
configuration
);
Console
.
WriteLine
(
$"Updated PID for Project
{
resource
.
Id
}
"
);
}
Console
.
WriteLine
(
"Finished."
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment