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

Add history functionality to pyDataverse objects #43

Open
skasberger opened this issue Jun 26, 2020 · 1 comment
Open

Add history functionality to pyDataverse objects #43

skasberger opened this issue Jun 26, 2020 · 1 comment
Assignees
Labels
info:help wanted Extra attention is needed pkg:api api related activities pkg:models models related activities prio:medium status:confirmed Is a valid issue and will be moved forward soon. type:feature New feature

Comments

@skasberger
Copy link
Member

skasberger commented Jun 26, 2020

Purpose

  • Add audit trail / history function to pyDataverse objects and function calls

Functionality

  • Question: use file(s) to store information: CSV, JSON, ???
  • Synchronize local directory with remote folders #51
  • Integrate with logging Add logging functionality #44
  • Integrate with OAISTree (Add import and export of OAISTree  #5 )
    • Store history.json files outside oaistree structure (to seperate the two features)
  • Re-do all steps: a dataset could even be created at another instance again, so all workflow steps which should be stored in the history can be done n-times.
  • use state of pyDataverse object history to control workflow: OAISTree, API calls,
  • save Dataverse id and alias after creation
  • save Dataset id, title and internal id after creation
  • save Datafile id, filename and internal id after upload
  • synchronize pyDataverse object history with output (JSON, CSV, whatever)
  • save username and base_url to API calls
  • Filename: history_ID.json
  • create one entry for each event/activity

history.json structure (DRAFT):

  • metadata
    • date-created: string, YYYY-MM-DD HH:MM:SS
    • history_version: version des history schemas
  • history: [{}]
    • dataset_id: string
    • dataverse_dataset_version: string
    • datafiles: [FILENAMES], ohne Pfad
    • timestamp: string, YYYY-MM-DD HH:MM:SS
    • description: string
    • object_type: dataset oder datafile
    • object_id
    • creator
    • change_type: {dataverse_release: , dataverse_process: }
      • dataverse: init, update, delete, move
        • release: init, update, delete, move
        • edit: major/minor release version change in Dataverse
        • delete: major/minor release version change in Dataverse
      • internal
        • specific_change_type: nähere Beschreibung des change types, zb aussda
@skasberger skasberger added info:help wanted Extra attention is needed type:review Review pkg:models models related activities pkg:api api related activities prio:medium labels Jun 26, 2020
@skasberger skasberger added this to the Later milestone Jun 26, 2020
@skasberger skasberger self-assigned this Jun 26, 2020
@skasberger skasberger added the status:confirmed Is a valid issue and will be moved forward soon. label Jun 26, 2020
@skasberger skasberger added status:wip Work in progress and removed status:confirmed Is a valid issue and will be moved forward soon. labels Jul 21, 2020
@skasberger skasberger added type:feature New feature and removed type:review Review labels Jan 26, 2021
@skasberger skasberger added status:confirmed Is a valid issue and will be moved forward soon. and removed status:wip Work in progress labels Mar 1, 2021
@pdurbin
Copy link
Member

pdurbin commented Mar 4, 2024

As discussed during the 2024-02-14 meeting of the pyDataverse working group, we are closing old milestones in favor of a new project board at https://github.com/orgs/gdcc/projects/1 and removing issues (like this one) from those old milestones. Please feel free to join the working group! You can find us at https://py.gdcc.io and https://dataverse.zulipchat.com/#narrow/stream/377090-python

@pdurbin pdurbin removed this from the Later milestone Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info:help wanted Extra attention is needed pkg:api api related activities pkg:models models related activities prio:medium status:confirmed Is a valid issue and will be moved forward soon. type:feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants