Coder Social home page Coder Social logo

Whitelisting about lominus HOT 3 CLOSED

beebeeoii avatar beebeeoii commented on July 1, 2024
Whitelisting

from lominus.

Comments (3)

pakshuang avatar pakshuang commented on July 1, 2024 1

Yea I feel like 1 would be the cleanest and simplest because 2 would have stuff in more than one place and might also result in the user having to traverse the directory to find their files, 3 would be quite troublesome for the user and also quite risky because they could edit a file and forget to whitelist it and the sync would overwrite their modifications. Just my two-cents! I wish I could contribute but I've never used Go before!

from lominus.

pakshuang avatar pakshuang commented on July 1, 2024

Hey thanks for creating this program! Recently I've been looking at the different options out there for syncing luminus files and I've tried out this one! I'm sorry I have 0 experience in Go so I can't help directly implement a solution but I can imagine that there's a few cases to consider here:

  1. File on Luminus but not synced locally -> Download
  2. File on Luminus and also synced locally based on hash -> No action required
  3. File on Luminus and also synced locally based on filename but not hash -> It's been modified by the student, don't overwrite
  4. File on Luminus and synced locally based on hash, but the file is updated on Luminus (instructor makes a change) -> Download updated version
  5. File on Luminus and synced locally based on filename but not hash (It's been modified by the student), but the file is updated on Luminus (instructor makes a change) -> how now?? Rename the modified file and download the instructor-updated file?
  6. File not on Luminus but inside the local folder -> student put their own files in, don't touch

from lominus.

Beebeeoii avatar Beebeeoii commented on July 1, 2024

yups thanks for the suggestions ! currently 5 is the issue which requires some attention. I am on the fence with regards to an appropriate and reasonable approach for 5. What I have in mind are:

  1. As per your suggestion (rename user's modified file and download the latest file)
  2. Move user's modified file to a folder on its own that sits alongside the module folders (?) For eg. user modified lec1.pdf in /MA2001/Lecture/lec1.pdf and there is a newer update on Luminus, lec1.pdf would be moved to /my-files/MA2001/Lecture/lec1.pdf and the newer version of lec1.pdf would be downloaded.
  3. Have a whitelist of files the user would like to annotate on and these files will not be updated

from lominus.

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.