Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

channels.history is deprecated, should we migrate to conversations.history instead? #191

Closed
natikgadzhi opened this issue Oct 10, 2020 · 6 comments

Comments

@natikgadzhi
Copy link

I've just started playing around with SKWebAPI, and it seems like channelsHistory() fails since the whole family if channels* API methods is now deprecated and doesn't work for new apps already.

I'd love to work on this and port the deprecated methods from channel* to conversations*, but I'm fairly new to Swift and will need your help reviewing my PRs. Should I work on that?

@natikgadzhi
Copy link
Author

Undo this, seems like conversations.history is already in 4.6.0, my bad.

@pvzig
Copy link
Owner

pvzig commented Oct 15, 2020

Hey Nate,

If you find something else you're interested in implementing I'd be happy to review any PRs!

Peter

@natikgadzhi
Copy link
Author

natikgadzhi commented Oct 15, 2020 via email

@pvzig
Copy link
Owner

pvzig commented Oct 16, 2020

  1. Models are not Codable by default: Yep, Codable wasn't around for the initial implementation of SKCore! Some of the models have been ported, there's a general ticket here that's referenced from a couple of previous PRs. I think tackling both the Codable conversion and object construction are worthwhile tasks. It would be great to see some more tests around our object construction as well.

  2. Agreed it would be nice to standardize things. My preference is to return strongly typed objects where possible but I know it can be hard to get accurate and complete representations when dealing with a 3rd-party API which means we might be excluding properties other users might want...What are your thoughts?

  3. If they just don't work, we should delete them!

I think any/all of these would be awesome improvements! If you'd like to create issues to work off of you can, but for my purposes just PRs are sufficient for 2 and 3.

@natikgadzhi
Copy link
Author

With 3, there's a gotcha. Channel* don't work for new apps created after June or July 2020, but for apps created before that, they still work and will work until Q2 2021 I think. I'll take a look. I don't know if there's a way to fetch API capabilities (i.e. whether those methods work for a specific app / token), so it's probably too soon to delete them.

@natikgadzhi
Copy link
Author

Thanks for the feedback! I'll go ahead and file issues, follow 1 in the general discussion, maybe propose a few models ported to Codable in a separate issue and link those.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants