Skip to content

Remove Key structs#488

Merged
tsmbland merged 5 commits intomainfrom
remove_keys
Apr 23, 2025
Merged

Remove Key structs#488
tsmbland merged 5 commits intomainfrom
remove_keys

Conversation

@tsmbland
Copy link
Copy Markdown
Collaborator

@tsmbland tsmbland commented Apr 16, 2025

Description

Removing the Key structs, and looking up the respective HashMaps with tuple keys using the appropriate ID types

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change to fix an issue)
  • New feature (non-breaking change to add functionality)
  • Refactoring (non-breaking, non-functional change to improve maintainability)
  • Optimization (non-breaking change to speed up the code)
  • Breaking change (whatever its nature)
  • Documentation (improve or add documentation)

Key checklist

  • All tests pass: $ cargo test
  • The documentation builds and looks OK: $ cargo doc

Further checks

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@tsmbland tsmbland self-assigned this Apr 16, 2025
@tsmbland tsmbland added this to MUSE Apr 16, 2025
@tsmbland tsmbland moved this to 🏗 In progress in MUSE Apr 16, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.03%. Comparing base (fd22796) to head (9f38915).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #488      +/-   ##
==========================================
- Coverage   95.12%   95.03%   -0.09%     
==========================================
  Files          36       36              
  Lines        5002     4914      -88     
  Branches     5002     4914      -88     
==========================================
- Hits         4758     4670      -88     
  Misses        123      123              
  Partials      121      121              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tsmbland tsmbland marked this pull request as ready for review April 16, 2025 08:56
@tsmbland tsmbland requested a review from alexdewar April 16, 2025 08:56
@tsmbland tsmbland changed the title Remove Key objects Remove Key structs Apr 16, 2025
Base automatically changed from id_types to main April 16, 2025 11:11
Copy link
Copy Markdown
Member

@alexdewar alexdewar left a comment

Choose a reason for hiding this comment

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

LGTM. I think we could probably go one step further and turn at least some of the custom structs into type aliases. It would mean that using the standard get methods etc. would be a bit more verbose, but it would reduce the amount of boilerplate code we have, which seems like a net gain.

@tsmbland
Copy link
Copy Markdown
Collaborator Author

LGTM. I think we could probably go one step further and turn at least some of the custom structs into type aliases. It would mean that using the standard get methods etc. would be a bit more verbose, but it would reduce the amount of boilerplate code we have, which seems like a net gain.

You mean like #490?

@tsmbland tsmbland enabled auto-merge April 23, 2025 07:48
@tsmbland tsmbland merged commit d2fb72d into main Apr 23, 2025
7 checks passed
@tsmbland tsmbland deleted the remove_keys branch April 23, 2025 07:49
@github-project-automation github-project-automation Bot moved this from 🏗 In progress to ✅ Done in MUSE Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants