Skip to content

Commit

Permalink
Prepare for release 1.79.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Hille committed Mar 15, 2023
1 parent 4f2637b commit 2ebb302
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]


### [1.79.0.0] - 2023-03-15

### Updated

- Synapse to 1.79.0


### [1.78.0.0] - 2023-02-28

### Updated
Expand Down Expand Up @@ -118,7 +126,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Location of github action workflow file `build.yml`
- Fix robustness for matrix-synapse name and packages changes and rebuilding in the same path (updater script)

[unreleased]: https://github.com/conhealth/LifeTime-Desktop/compare/v1.78.0.0...HEAD
[unreleased]: https://github.com/conhealth/LifeTime-Desktop/compare/v1.79.0.0...HEAD
[1.79.0.0]: https://github.com/conhealth/LifeTime-Desktop/compare/v1.78.0.0...v1.79.0.0
[1.78.0.0]: https://github.com/conhealth/LifeTime-Desktop/compare/v1.77.0.0...v1.78.0.0
[1.77.0.0]: https://github.com/conhealth/LifeTime-Desktop/compare/v1.76.0.0...v1.77.0.0
[1.76.0.0]: https://github.com/conhealth/LifeTime-Desktop/compare/v1.75.0.0...v1.76.0.0
Expand Down
31 changes: 31 additions & 0 deletions matrix_synapse_testutils/test_utils/event_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,34 @@ async def create_event(
context = await unpersisted_context.persist(event)

return event, context


async def mark_event_as_partial_state(
hs: synapse.server.HomeServer,
event_id: str,
room_id: str,
) -> None:
"""
(Falsely) mark an event as having partial state.
Naughty, but occasionally useful when checking that partial state doesn't
block something from happening.
If the event already has partial state, this insert will fail (event_id is unique
in this table).
"""
store = hs.get_datastores().main
await store.db_pool.simple_upsert(
table="partial_state_rooms",
keyvalues={"room_id": room_id},
values={},
insertion_values={"room_id": room_id},
)

await store.db_pool.simple_insert(
table="partial_state_events",
values={
"room_id": room_id,
"event_id": event_id,
},
)
4 changes: 2 additions & 2 deletions matrix_synapse_testutils/unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def create_and_send_event(
event_creator = self.hs.get_event_creation_handler()
requester = create_requester(user)

event, context = self.get_success(
event, unpersisted_context = self.get_success(
event_creator.create_event(
requester,
{
Expand All @@ -735,7 +735,7 @@ def create_and_send_event(
prev_event_ids=prev_event_ids,
)
)

context = self.get_success(unpersisted_context.persist(event))
if soft_failed:
event.internal_metadata.soft_failed = True

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ classifiers = [
"Topic :: Software Development"
]
dependencies = [
"matrix-synapse[test]==1.78.0"
"matrix-synapse[test]==1.79.0"
]

[project.urls]
Expand Down

0 comments on commit 2ebb302

Please sign in to comment.