-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix shared-channel Conversation parse; improve Conversation parse err…
…ors (#108) This bug was found using the conversationsList endpoint, in which our parse failed on a shared channel. I have committed an anonymized version of the bad part of the response as a regression test, and fixed the error messages for Conversations matching a variant but failing to parse that variant. Also fixes CI on ghc 9.4 and deletes *.actual files that should be removed anyway.
- Loading branch information
Jade Lovelace
committed
Nov 4, 2022
1 parent
7fd47a2
commit f567c8e
Showing
18 changed files
with
122 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ dist-newstyle/ | |
cabal.project.local | ||
# generated by flake.nix | ||
.pre-commit-config.yaml | ||
*.actual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,2 @@ | ||
-- Only run the build job on master, since the PR job gets the other branches | ||
branches: master | ||
|
||
-- HI! If you add something in here, make sure to copy it to cabal.project if | ||
-- needed! | ||
raw-project | ||
-- for ghc-9.4 | ||
-- https://github.com/haskell-servant/servant/pull/1592 | ||
source-repository-package | ||
--sha256: sha256-y6fySO8NqtEad+W+F48QJgRR0JYfqXwo/+MCxcrpJpg= | ||
type: git | ||
location: https://github.com/TeofilC/servant.git | ||
tag: a53d69929cf6fe531bb25aec65e7ab6405278459 | ||
subdir: | ||
servant | ||
servant-client | ||
servant-client-core | ||
|
||
-- https://github.com/nikita-volkov/refined/pull/86 | ||
-- this was merged, just need to wait for >0.7 to have a release | ||
source-repository-package | ||
type: git | ||
location: https://github.com/nikita-volkov/refined | ||
tag: eced2bb0991bde971646e4b3d291870d0aab83a3 | ||
--sha256: sha256-QvZSFeAmgdBwdyneGRKMCMNGnP+8rD/uTED0icQB+4s= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Channel | ||
( ChannelConversation | ||
{ channelId = ConversationId | ||
{ unConversationId = "C0000000000" } | ||
, channelName = "shared-channel" | ||
, channelCreated = 1667519517 | ||
, channelIsArchived = False | ||
, channelIsGeneral = False | ||
, channelUnlinked = 0 | ||
, channelNameNormalized = "shared-channel" | ||
, channelIsShared = True | ||
, channelCreator = UserId | ||
{ unUserId = "UAAAAAAAA" } | ||
, channelIsExtShared = True | ||
, channelIsOrgShared = False | ||
, channelSharedTeamIds = Nothing | ||
, channelIsPendingExtShared = False | ||
, channelIsMember = Just False | ||
, channelTopic = Topic | ||
{ topicValue = "" | ||
, topicCreator = "" | ||
, topicLastSet = 0 | ||
} | ||
, channelPurpose = Purpose | ||
{ purposeValue = "" | ||
, purposeCreator = "" | ||
, purposeLastSet = 0 | ||
} | ||
, channelPreviousNames = [] | ||
, channelNumMembers = Just 12 | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"id": "C0000000000", | ||
"name": "shared-channel", | ||
"is_channel": true, | ||
"is_group": false, | ||
"is_im": false, | ||
"is_mpim": false, | ||
"is_private": false, | ||
"created": 1667519517, | ||
"is_archived": false, | ||
"is_general": false, | ||
"unlinked": 0, | ||
"name_normalized": "shared-channel", | ||
"is_shared": true, | ||
"is_org_shared": false, | ||
"is_pending_ext_shared": false, | ||
"pending_shared": [], | ||
"context_team_id": "TAAAAAAAA", | ||
"parent_conversation": null, | ||
"creator": "UAAAAAAAA", | ||
"is_ext_shared": true, | ||
"pending_connected_team_ids": [], | ||
"conversation_host_id": "TAAAAAAAA", | ||
"is_member": false, | ||
"topic": { | ||
"value": "", | ||
"creator": "", | ||
"last_set": 0 | ||
}, | ||
"purpose": { | ||
"value": "", | ||
"creator": "", | ||
"last_set": 0 | ||
}, | ||
"previous_names": [], | ||
"num_members": 12 | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.