GithubHelp home page GithubHelp logo

medmen / dienstplan Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 429 KB

a Duty roster respecting wishes and obeying rules

PHP 53.04% CSS 5.64% HTML 0.81% JavaScript 40.49% Shell 0.02%
php duty-roster simple rules

dienstplan's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @medmen, aging constantly, admirer of the 3 most beautiful girls in my world and in desperate need of a time-warp to get all my interests aligned :)

  • ๐Ÿ‘€ Iโ€™m interested in ... whow a lot of things. given enough time among them i like

    • programming in PHP (my home zone), python, R, js, html, css
    • hiking, running, bouldering
    • skiing (including alpine, cross-country and touring), camping, caravaning
    • any kind of metal music as long as it has at least some good melody, groove or message to offer
  • ๐ŸŒฑ Iโ€™m currently learning ...

    • the hard way that a day is limited to 24 hours, so after subtraction of a minimum of sleep, too much work, family and a bit of social life there is virtually no time left for my hobbies :)
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on any project that

    • makes my day flow easier
    • makes my family happy
    • makes me do more with less effort
  • ๐Ÿ“ซ How to reach me?

    • i am old-school at this point: drop me a personal message and I'll get back to you.
    • follow me @whateverSocialThingIsCoolRightNow and chances are good I will never answer, sorry ;)

dienstplan's People

Contributors

dependabot[bot] avatar medmen avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

dienstplan's Issues

Respect part-time workers and vacation

So far, we try to ditribute the number of duties evenly between all workers.
This will fall short if a person is part time emplyee, since his/her duties should match the part time fraction.
Also when an employee is on vacation she would have to squeeze all duties into the remaining days of the month which is not desired by many.

2 Solutions come to mind:

  1. in rules for even distribution, add a weighting factor (more work, probably more fine grained)

  2. limit the maximum duties for a person (maybe easier to realize)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

composer
composer.json
  • slim/slim 4.*
  • nyholm/psr7 ^1.8
  • nyholm/psr7-server ^1.1
  • php-di/php-di ^7.0
  • monolog/monolog ^3.5
  • slim/php-view ^3.2
  • slim/flash ^0.4.0
  • odan/session ^6.1
  • symfony/uid ^6.4
  • phpstan/phpstan ^1.10
  • squizlabs/php_codesniffer 3.*
  • pestphp/pest *
  • pestphp/pest-plugin-drift ^2.5
  • mockery/mockery ^1.6
  • mikey179/vfsstream ^1.6
github-actions
.github/workflows/Tests.yml
  • actions/checkout v4
  • shivammathur/setup-php v2
  • actions/cache v4
  • actions/upload-artifact v4

  • Check this box to trigger a request for Renovate to run again on this repository

now wishes can be stored and changed, so make dienstplan obey them

  • so far we assume that wishes have priority over other rules, so wishes-rules are parsed first.

  • no checks against violation of later rules at this time ( if a person wishes duty for 2 consecutive days she probably means "any one of these dates", but currently she will be assigned 2 consecutive days (if no other conflicting wishes exist)

  • wishes are randomized to avoid name based preference

in dienstplan.php $this->debug is used in different ways

first idea was to create an array of dates and short messages why a duty was (not) given to a certain person
later, I copied code from wishes.php where $this->debug is a collector for debug messages of all kinds.
mixing both seems dangerous, so untangling will be needed!

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.