Development log
変更ログ

Development 4/20

Just finished a major backend-overall of the images system. This should make certain pages load quicker (e.g. new releases page), and should make further image-related development easier.

I expect bugs to be introduced due to this overall; if you spot any weird image-related errors, please let me know.


Images

  • Separated artist_id, musician_id, and release_id columns from images table into their own tables (images_artists, etc.). Additionally created images_blog and images_labels tables.
  • Added image_id column to artists, blog, labels, musicians, and releases tables, which will now be used to indicate default image.
  • Transferred all data from old columns into new tables, and transferred default image data into the new image_id columns.
  • Updated access_image to utilize new table structure, and to be more robust.
  • Updated other access_* functions to use access_image rather than bespoke solutions.
  • Further removed bespoke image-get functions from several pages.
  • Created new render_image_section function and moved it and related files to images folder.
  • Updated uploadImage script to use vanilla JS rather than jQuery (except where required, due to other scripts).
  • Updated relevant pages to use new render_image_section function.
  • Updated DB build script to reference new tables.
  • Squashed several bugs that appeared because of the aforementioned changes.

Other fixes

  • Updated avatar script to set default values; failure to do so had been causing new users' avatars to display incorrectly.
  • Updated avatar script to generate image on initial creation.
  • Updated access_comment to allow limit on either total comments or total threads, which should allow all comments to appear on main page again.
  • Corrected url of avatars on main page.
  • Updated SQL on 'recent edits' section of database to pull username of user who made most recent edit, rather than user who initially created the item.
  • Removed some bad looping from access_artist and access_release, to increase speed.
  • Updated several pages to reference 'image' rather than 'cover' or 'default_image'.
  • Fixed incorrect selector in image-section CSS, and renamed file.
  • Created render_json_list function for dropdown options. Updated 'edit artist' and 'edit release' to use new function.

Want to support future updates?

vkgy runs on a custom platform developed by a very small team. If you appreciate what we do and want to help us grow, please consider becoming a VIP member!

Support vkgy
top