Skip to content

Sync Projects with PTime #1199

Description

@nevio18324

Description of feature or bug
We want to make it easier for a Member to register their Projects for that we want to fetch the Projects from PTime where we get Information like title, description and role the object we get will look similar to this.

[
  {
    "id": 12636,
    "name": "Puzzle Skills Aufwände",
    "path_shortnames": "PITC-SKI25-SKDEV",
    "description": "",
    "path_names": "Puzzle ITC AG\nPuzzle Skills GJ 25/26\nPuzzle Skills Aufwände",
    "billable": false,
    "meal_compensation": false,
    "work_item_id": 12636,
    "offered_hours": 80.0,
    "done_hours": 75.25
  }
]

This isn't absolute yet as the API endpoint still has to be added to the PTime API

For persistence we should create a new Model named something along the lines of PTimeProjects. Where we sync all Information that's relevant like title, description and role

We can use those informations so the Member only has to define start_date, end_date and skills.
Additionally we want to save the PTimeProjects id so we can sync the Project with the PTimeProject which is synced with the Projects from PTime.

A checkbox to disable Projects getting synced with the PTime would probably also be nice.

Important

It should still be possible to register a Project that doesn't exist in PTime

TODO

  • Add Logic to fetch all Projects from PTime
  • A new Model where we store the Projects from PTime with the relevant attributes
  • Implement a way the User can select a Project (similar to Buchungsposition dropdown in PTime)
  • Write a lot of Tests
  • Update Readme.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions