Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import existing Production Projects into the front end - Define fields #987

Open
4 tasks
carolyncole opened this issue Oct 15, 2024 · 0 comments
Open
4 tasks
Assignees

Comments

@carolyncole
Copy link
Member

We need a way to get the information from mediaflux and import it into the front end

What fields do we need to make the record in the front end?

Acceptance Criteria

  • Make a mapping between the front end and existing fields in the back end.
    • Current metadata does not match the schema, but some fields do exists
  • Document the field mapping in an ADR
  • Pass along the list of fields to Chuck so he can make a CSV report

Implementation notes

Script Chuck uses for extracting information currently. Use as reference for field names

set ids [xvalues id [asset.query :where xpath(tigerdata:project/ProjectID) has value]]
foreach id $ids {
set asset [asset.get :id $id]
puts "*************************************"
puts "Project: " [xvalue asset/name $asset]
puts "File Count: " [xvalue asset/collection/accumulator/value/non-collections $asset]
puts "Collection Count: " [xvalue asset/collection/accumulator/value/collections $asset]
puts "Storage Size: " [xvalue asset/collection/accumulator/value/total/@h $asset]
puts "Data Sponsor: " [xvalue asset/meta/tigerdata:project/DataSponsor $asset]
puts "Department: " [xvalue asset/meta/tigerdata:project/Department $asset]
puts "Quota Allocation: " [xvalue asset/collection/quota/allocation/@h $asset]
puts "Quota Used: " [xvalue asset/collection/quota/used/@h $asset]
puts " "
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant