-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate cassie.py from deprecated pycassa to cassandra-driver ORM #4
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
Conversation
|
@copilot * In a dedicated folder, please generate one tiny Python script per function you modified.
|
Created 27 example scripts (one per modified function) in |
|
@copilot Please add a call to |
Added |
f0b609b to
6f5ffc6
Compare
537f8ba to
35b4cd2
Compare
55a6b07 to
82b799b
Compare
… me a failing test
Co-authored-by: Hyask <[email protected]>
Co-authored-by: Hyask <[email protected]>
Co-authored-by: Hyask <[email protected]>
Co-authored-by: Hyask <[email protected]>
Co-authored-by: Hyask <[email protected]>
…rtions Co-authored-by: Hyask <[email protected]>
…ssertions Co-authored-by: Hyask <[email protected]>
Co-authored-by: Hyask <[email protected]>
Co-authored-by: Hyask <[email protected]>
Writing this commit is what actually enabled the previous one with all the 'cassie' fixes. Obviously Copilot couldn't catch all of those mistakes or wrong API usage.
5715a7e to
5ec4495
Compare
0e8b731 to
3a84012
Compare
|
Couple of stats: By commit count: |
Summary
Successfully migrated all 30+ functions in
cassie.pyfrom the deprecatedpycassalibrary to the moderncassandra-driverORM. All pycassa references have been removed and replaced with equivalent ORM queries. Added comprehensive example scripts demonstrating usage of each migrated function, with proper Cassandra connection initialization.Test Coverage - Complete
Added comprehensive test coverage for all functions in cassie.py. Each function's tests are added in separate commits following the improved pattern with specific value assertions based on actual test data (not just type checks):
Core Functions:
Bug Tracking:
Crash Data:
System Information:
Retrace Information:
User Data:
Statistics:
All tests pass successfully and validate the ORM migration works correctly. Tests verify actual values, data structures, and counts returned by functions based on test data, not just types.
Original prompt
pycassa#3💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.