Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make hashing independent of notebook content #1774

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Conversation

tuncbkose
Copy link
Contributor

@tuncbkose tuncbkose commented Apr 6, 2023

Currently, changing the content of a submitted notebook breaks feedback distribution (see some discussion in #1202). This is because feedback distribution uses a hash that depends on the notebook content.

This pr aims to solve this issue by duplicating the timestamp.txt mechanism. A submission_secret.txt file containing a random string is created during submission, and the notebook hash is changed to depend only on this file and notebook name.

Should fix #1712

@github-actions
Copy link
Contributor

github-actions bot commented Apr 6, 2023

Binder 👈 Launch a Binder on branch AaltoSciComp/nbgrader/hash

@danielmaitre
Copy link
Contributor

I like this solution and would also solve some of the issues I am facing!

Copy link
Contributor

@brichet brichet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tuncbkose, let's move forward and merge this one.
Can you rebase on main please ?

nbgrader/exchange/default/fetch_feedback.py Outdated Show resolved Hide resolved
nbgrader/exchange/default/fetch_feedback.py Outdated Show resolved Hide resolved
nbgrader/exchange/default/list.py Outdated Show resolved Hide resolved
@tuncbkose
Copy link
Contributor Author

Thanks for the review. I'll rebase within a day or two and ping you

@tuncbkose
Copy link
Contributor Author

@brichet rebased.

@brichet brichet merged commit 08fcced into jupyter:main Jun 20, 2024
24 checks passed
@brichet
Copy link
Contributor

brichet commented Jun 20, 2024

Thanks @tuncbkose

@LukasMueller187
Copy link

LukasMueller187 commented Jun 20, 2024

Happy to see this. 🎉 Was manually applying the PR every update. Thanks @tuncbkose

@Gehock Gehock deleted the hash branch July 1, 2024 08:59
AlirezaT99 pushed a commit to AaltoSciComp/nbgrader that referenced this pull request Aug 6, 2024
* Make hashing independent of notebook content

Decouple notebook hash from its content

* Testing changes for hash changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

different hashing in release_feedback and fetch_feedback
4 participants