We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
the test Test_Chat_Manager.test_add_message wants to write
parameters = {'created_at': datetime.datetime(2024, 7, 9, 16, 19, 24, 604469, tzinfo=datetime.timezone.utc), 'message_type': 'TEXT', 'op_id': 'europe', 'reply_id': None, ...}
but op_id is defined as integer op_id = db.Column(db.Integer, db.ForeignKey('operations.id'))
I have yet not looked up if this is in more than the test happening
The text was updated successfully, but these errors were encountered:
It is a bug because mismatch in chat_manager.add_message and the failure may become fixed in add_message for stable
https://github.com/Open-MSS/MSS/blob/stable/mslib/mscolab/chat_manager.py#L45
add_message needs to query the op_id from the operation_name and use this with Message, because Message is defined as
https://github.com/Open-MSS/MSS/blob/stable/mslib/mscolab/models.py#L189 def __init__(self, op_id, u_id, text, message_type=MessageType.TEXT, reply_id=None):
def __init__(self, op_id, u_id, text, message_type=MessageType.TEXT, reply_id=None):
for develop we can redesign the API to use op_id instead of the operation_name.
Sorry, something went wrong.
most of the test treat it as op.id, but we have to lookup if that is always an int.
ReimarBauer
No branches or pull requests
the test Test_Chat_Manager.test_add_message wants to write
parameters = {'created_at': datetime.datetime(2024, 7, 9, 16, 19, 24, 604469, tzinfo=datetime.timezone.utc), 'message_type': 'TEXT', 'op_id': 'europe', 'reply_id': None, ...}
but op_id is defined as integer
op_id = db.Column(db.Integer, db.ForeignKey('operations.id'))
I have yet not looked up if this is in more than the test happening
The text was updated successfully, but these errors were encountered: