mitre-cyber-academy / ctf-scoreboard-archive

Repository for the Deprecated MITRE Capture the Flag scoreboard.
Apache License 2.0
11 stars 10 forks source link

No option for pulling importing data to rails admin #4

Open rbclark opened 9 years ago

rbclark commented 9 years ago

Currently there is no easy way to export the data from one scoreboard instance and import it into another. If we are going to continue spinning up 2 different scoreboards for college and hs students then this needs to be added.

Probably something like https://github.com/stephskardal/rails_admin_import will work nicely for this.

Bialogs commented 8 years ago

So I've added the gem to the project in a21b19a it kind of works. Need to be careful what order the game is imported in. Also need to be aware of complex relationships such as import flags for a game that has solved challenges. Works very well for simple things such as flags at the beginning of a game, messages, SSH keys, etc.

rbclark commented 8 years ago

Does this gem give us any control over things like denying import if specific models are populated or is it just kind of a free for all?

Bialogs commented 8 years ago

You can write hooks to check for these specific cases when you important a model

rbclark commented 8 years ago

We may need to look into something like that before including this then, since there has been more use by outside parties of our scoreboard.

Bialogs commented 8 years ago

Would recommend retesting this with current ruby, rails, and gem versions.

rbclark commented 8 years ago

This is really no longer needed, it may be nice but it is a much lower priority now that we have one scoreboard that shares everything.