Code Monkey home page Code Monkey logo

Comments (7)

LaChope avatar LaChope commented on June 12, 2024 1

@kostobog as you proposed I also think it is better not to assign new mechanic when work session does not have one. Maybe user could assign from list of current mechanics? We can discuss it during next meeting with @kalamartin

It should not cause any problem but just be empty.

from csat-maintenance-planner.

kalamartin avatar kalamartin commented on June 12, 2024

See picture below for reference of user_sign:

image

Replace the actual sign in plan manager with user sign as can be seen:

image

from csat-maintenance-planner.

LaChope avatar LaChope commented on June 12, 2024

@kostobog

from csat-maintenance-planner.

kostobog avatar kostobog commented on June 12, 2024

I need some feedback.
First, the data in csat-data does not contain a triple for the mechanic user_sign. Currently I have implemented the employee_id.
Second, I am not sure what to do with work sessions who are not assigned a mechanic. Currently, a new mechanic is attached for each session which has no mechanic. I think it is better not to assign mechanic if session has a mechanic do not assign a new mechanic. What do you think @blcham @LaChope

I am not sure if this will lead to some problems on the client @LaChope.

The code changes in the server side can be reviewed in the pull-request.

Here is an example of how the this would look like in the data. The first JSON snippet shows a session plan with resource assigned a mechanic and the second shows a session with a resource assigned null.

This file example-plan-GFR_H-20 K+2K+4K.json.zip contains a JSON with the full plan containing snippets from below.

{
	"types": null,
	"applicationType": "SessionPlan",
	"entityURI": null,
	"id": 16647971489330078,
	"title": null,
	"resource": {
		"types": null,
		"applicationType": "Mechanic",
		"entityURI": "http://onto.fel.cvut.cz/ontologies/csat-maintenance/mechanic--12345",
		"id": "12345",
		"title": "12345"
	},
	"plannedStartTime": 1658730600000,
	"plannedEndTime": 1658739600000,
	"plannedDuration": 9000000,
	"plannedWorkTime": 9000000,
	"startTime": 1658730600000,
	"endTime": 1658739600000,
	"duration": 9000000,
	"workTime": 9000000
}
{
	"types": null,
	"applicationType": "SessionPlan",
	"entityURI": null,
	"id": 16647971489330078,
	"title": null,
	"resource": null,
	"plannedStartTime": 1658730600000,
	"plannedEndTime": 1658739600000,
	"plannedDuration": 9000000,
	"plannedWorkTime": 9000000,
	"startTime": 1658730600000,
	"endTime": 1658739600000,
	"duration": 9000000,
	"workTime": 9000000
}

from csat-maintenance-planner.

kalamartin avatar kalamartin commented on June 12, 2024

@LaChope there is still ID instead user sign. When it will be change to user_sign?

@kostobog please send example of worksession with no mechanic assigned, I cannot imagine this scenario.

from csat-maintenance-planner.

LaChope avatar LaChope commented on June 12, 2024

Blocker: kbss-cvut/aircraft-maintenance-planning-system#81

@kostobog @blcham

from csat-maintenance-planner.

LaChope avatar LaChope commented on June 12, 2024

Solved with #120

from csat-maintenance-planner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.