Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Background services for picking up scores #78

Open
kmeesters opened this issue Nov 12, 2014 · 5 comments
Open

Background services for picking up scores #78

kmeesters opened this issue Nov 12, 2014 · 5 comments

Comments

@kmeesters
Copy link
Member

We need a background process (in the scorekeeper client) that:

  • Scans a directory for new scoresheet files
  • Get the scores, teamNR, roundNR, teeamNAME, from scoresheet file
  • Store in scores.json
  • 'Mark' the scoresheet as done (TBD)
  • Optional: add log entry for tracking/debugging

After implementation we should remove the updating of scores.json from the save function in the scoresheet.

Referring to #75

@kmeesters
Copy link
Member Author

Additional request: fire the background service manually through a button in the "Scores" page

@poelstra
Copy link
Collaborator

Status after e354b7f:

  • Scoresheet no longer modifies scores list, only saves scoresheet
  • Scoresheets are now saved to the scoresheets subdir of data
  • $scores now has method pollSheets() to poll for new sheets, adds them to scores list, then saves the list
  • A log message is added when a new scoresheet has been processed

Note: updating the scorelist is now manual (by pressing the button on the Scores page), i.e. there is no automatic background polling, and no automatic poll at e.g. page load. Reason is that there's currently no way to know whether the client is run in referee or scorekeeper mode.

Note 2: I've only implemented the directory listing for node yet, so it will not work on e.g. phonegap. This is not very critical though, because this whole quick-fix scorekeeper-mode won't be used as an app anyway.

@poelstra
Copy link
Collaborator

So, basically this whole ticket has been implemented, except for automatic polling (see above).

@kmeesters
Copy link
Member Author

I'm sure @robvw can manage to "Push the button" (<- chemical brothers 🎵 )

@rikkertkoppes
Copy link
Member

Moving to next milestone to implement automatic polling

@rikkertkoppes rikkertkoppes modified the milestones: Intial version - V3, Extended (large) version Dec 31, 2014
@kmeesters kmeesters modified the milestones: International release, Extended (large) version - Benelux Jan 1, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants