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

Prevent images from being regenerated again under a new alias #458

Merged
merged 2 commits into from
May 19, 2020

Conversation

drgrice1
Copy link
Member

@drgrice1 drgrice1 commented Mar 9, 2020

Make names_created in PGcore.pm a property of the PGcore object rather than a package variable. Since the new method is called and initializes this property to the empty hash on each successive run, this prevents carry over of old values. That carry over caused unnecessary regeneration of images under new aliases.

Note, that I have removed the gifs_created property of the PGcore object that was completely unused.

than a package variable. Since the new method is called and initializes
this property to the empty hash on each successive run, this prevents
carry over of old values. That carry over caused unnecessary
regeneration of images under new aliases.
@drgrice1 drgrice1 force-pushed the image-regeneration-fix branch from 10164fb to 0b657bd Compare March 9, 2020 12:40
resource object name in getUniqueName of PGcore.pm.  All of that
information and more is already incorporated into the generated uuid by
PGalias.  The image number count doesn't need that information either.
The names_created property is now just a numeric value rather than a
hash.  Each problem has its own PG object anyway.
@mgage mgage merged commit 2533700 into openwebwork:develop May 19, 2020
@drgrice1 drgrice1 deleted the image-regeneration-fix branch June 10, 2020 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants