Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Autosubmit API Autosubmit API
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • Autosubmit APIAutosubmit API
  • Issues
  • #35
Closed
Open
Issue created Oct 24, 2023 by Luiggi Tenorio Ku@ltenorioOwner

Legacy code duplication (Old Autosubmit class)

It seems that when the API was created, some files were copied from the autosubmit package to reutilize its code causing compatibility issues.

A clear case of this is in the autosubmit_api/database/autosubmit.py and autosubmit_api/autosubmit_legacy/autosubmit.py that have a copy of an old Autosubmit class. Until now I found this being called in:

  • autosubmit_api/workers/business/populate_times.py (used by one worker)
  • autosubmit_api/experiment/common_requests.py (used for the graph and tree view)
  • autosubmit_api/statistics/test.py (for testing the statistics module) (to be removed as there is going to be a new pytest module)

With @bdepaula we guess that, if reutilization of the code is needed, we may import the needed helper functions from the autosubmitconfigparser or from the version of the autosubmit package that the user has installed as a solution of this.

Edited Oct 31, 2023 by Luiggi Tenorio Ku
Assignee
Assign to
Time tracking