brownfield-team / anacapa-github-linker

A tool for managing students in computer science courses. Deployed at:
https://ucsb-cs-github-linker.herokuapp.com
MIT License
4 stars 6 forks source link

Allow deleting old job log items. #418

Open pconrad opened 3 years ago

pconrad commented 3 years ago

User Story

As an admin/instructor I can delete JobLog records so that the job log is not cluttered with distracting/irrelevant info.

Acceptance Criteria

What does it mean to say that the record "reappears"?

That is to say, the code in background_job.rb that handles updating the job record on completion should check whether the CompletedJob already exists, and if so, it should update it, but if not, it should create a new record. Here is the code in question.

What is not clear is whether this just will "work" without us having to do anything.... because the instance variable in the object already has a handle to an object, or whether we would have to recreate the object.

  def update_job_record_with_completion_summary(summary)
    job_record = @job_record
    job_record.summary = summary
    job_record.save
    summary
  end

Implementation Todos

Front end:

Back end:

Testing: