Skip to content
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

Add discussion service and associated types #111

Closed
wants to merge 5 commits into from

Conversation

cemms1
Copy link
Contributor

@cemms1 cemms1 commented Feb 14, 2024

What does this change?

Adds thrift definitions for the Discussion service needed to allow the web view to communicate with the discussion API via native layer of the apps. These tend to be authenticated methods as the unauthenticated ones can be done via the web view alone.

@cemms1 cemms1 changed the title wip addition of discussion types Add discussion service and associated types Feb 15, 2024
@ioannakok ioannakok changed the base branch from main to mob/prereleases February 19, 2024 12:47
@ioannakok ioannakok force-pushed the mob/implement-discussion branch from cb21798 to fc1b0cf Compare February 19, 2024 12:55
Base automatically changed from mob/prereleases to main February 20, 2024 12:15
cemms1 and others added 2 commits February 20, 2024 14:15
Co-authored-by: Charlotte Emms <[email protected]>
Co-authored-by: George B <[email protected]>
Co-authored-by: Jamie B <[email protected]>
@ioannakok ioannakok force-pushed the mob/implement-discussion branch from fc1b0cf to bb0d332 Compare February 20, 2024 14:15
Copy link

changeset-bot bot commented Feb 20, 2024

⚠️ No Changeset found

Latest commit: 7e65ce7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment on lines +132 to +137
struct DiscussionApiResponse {
1: required string status;
2: required i32 statusCode;
3: required string message;
4: optional string errorCode;
}
Copy link
Contributor

@mxdvl mxdvl Feb 21, 2024

Choose a reason for hiding this comment

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

Not sure if errorCode can be absent if status is 'error' or present if status is 'ok'. Maybe a union type similar to what we do in DCR would be more appropriate?

georgeblahblah added a commit that referenced this pull request Mar 25, 2024
The previous stub was unused. This adds relevant types and signatures for the
`recommend` method.

This PR is based off commits in #111. This change adds `recommend` by
itself so that it can be implemented soon by Android and iOS.

We can release the remaining Discussion methods in another Bridget
version, so the platforms can implement them when ready. This will
enable us to render more articles with discussion using DCAR, more
quickly.

Co-authored-by: Jamie B <[email protected]>
Co-authored-by: Ioanna Kokkini <[email protected]>
Co-authored-by: Charlotte <[email protected]>
georgeblahblah added a commit that referenced this pull request Mar 26, 2024
* Replace Discussion stubs with new recommend signature + types

The previous stub was unused. This adds relevant types and signatures for the
`recommend` method.

This PR is based off commits in #111. This change adds `recommend` by
itself so that it can be implemented soon by Android and iOS.

We can release the remaining Discussion methods in another Bridget
version, so the platforms can implement them when ready. This will
enable us to render more articles with discussion using DCAR, more
quickly.

Co-authored-by: Jamie B <[email protected]>
Co-authored-by: Ioanna Kokkini <[email protected]>
Co-authored-by: Charlotte <[email protected]>
@mxdvl
Copy link
Contributor

mxdvl commented Apr 17, 2024

Superceded by #154

@mxdvl mxdvl closed this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Bridget API for discussion
4 participants