Skip to content

[CFM2_3] Update Fridge ID#56

Merged
1jeanpaul1 merged 3 commits into
devfrom
CFM2_3_JP
Sep 15, 2025
Merged

[CFM2_3] Update Fridge ID#56
1jeanpaul1 merged 3 commits into
devfrom
CFM2_3_JP

Conversation

@1jeanpaul1

@1jeanpaul1 1jeanpaul1 commented Sep 6, 2025

Copy link
Copy Markdown
Collaborator

Ticket: https://trello.com/c/i5hqCMIO/267-cfm23-update-fridge-id-hash
Proposal: https://docs.google.com/document/d/1reJibvkEZw_rbzj82BgawbCy4iQLGpObGrkwPWT8SOA/edit?usp=sharing

Updates

  • Updates the set_id function to use a random 6-character, URL-safe identifier, instead of the Fridge's name, for the Fridge ID
  • Updates and adds unit tests to cover the new ID generation
  • Updates README to reflect ID format
  • Update Python Version from 3.9 -> 3.13 (Lambda is ending support for python 3.9)

TEST:

  1. Local testing
  • Follow README instructions to load fridges and start local server
  • go to http://localhost:3000/v1/fridges
  • Confirm that the IDs are now randomly generated characters
    Screenshot 2025-09-08 at 2 57 18 PM
  1. Unit Tests
  • Follow README instructions to run unit tests
  • Confirm that all tests were succesful
    Screenshot 2025-09-08 at 2 56 35 PM

@1jeanpaul1 1jeanpaul1 changed the title [CFM2_3] Update Fridge ID Hash [CFM2_3] Update Fridge ID Sep 8, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Removed because we no longer can query on a predefined ID, id's are now randomly generated

Comment thread CommunityFridgeMapApi/dependencies/python/db.py
@1jeanpaul1 1jeanpaul1 merged commit 6daf463 into dev Sep 15, 2025
1 check passed
@1jeanpaul1 1jeanpaul1 deleted the CFM2_3_JP branch September 15, 2025 19:28
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