Skip to content

fix: Add history entry when approving the slides.#6588

Merged
rjsparks merged 2 commits intoietf-tools:mainfrom
kivinen:fix-5432
Nov 6, 2023
Merged

fix: Add history entry when approving the slides.#6588
rjsparks merged 2 commits intoietf-tools:mainfrom
kivinen:fix-5432

Conversation

@kivinen
Copy link
Copy Markdown
Contributor

@kivinen kivinen commented Nov 4, 2023

Change os.rename to shutils.move as the submissions and proceedings are on the separate filesystems on the docker image, and this same thing might happen in the real environment in the future.

Also changed os.rename to shutils.move as the submissions and
proceedings are on the separate filesystems on the docker image,
and this same thing might happen in the real environment in the
future.
@kivinen
Copy link
Copy Markdown
Contributor Author

kivinen commented Nov 4, 2023

This fixes #5432

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 4, 2023

Codecov Report

Merging #6588 (47c242e) into main (d246879) will increase coverage by 0.00%.
Report is 2 commits behind head on main.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #6588   +/-   ##
=======================================
  Coverage   88.85%   88.85%           
=======================================
  Files         284      284           
  Lines       40253    40255    +2     
=======================================
+ Hits        35765    35770    +5     
+ Misses       4488     4485    -3     
Files Coverage Δ
ietf/doc/models.py 89.20% <ø> (ø)
ietf/meeting/views.py 91.06% <100.00%> (+<0.01%) ⬆️

... and 1 file with indirect coverage changes

Copy link
Copy Markdown
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

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

This looks ok to me, though should there also be an event for disapproval?

Comment thread ietf/meeting/views.py
if not os.path.exists(path):
os.makedirs(path)
os.rename(submission.staged_filepath(), os.path.join(path, target_filename))
shutil.move(submission.staged_filepath(), os.path.join(path, target_filename))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for catching and fixing this! 🎉

@rjsparks rjsparks merged commit f8a06f6 into ietf-tools:main Nov 6, 2023
@kivinen
Copy link
Copy Markdown
Contributor Author

kivinen commented Nov 6, 2023 via email

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants