-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
PLANNING ISSUE : Reply via Twitter . #2671
Comments
Cool! Link to Naman's new issue too!
…On Sat, Apr 28, 2018, 3:25 AM Sagarpreet Chadha ***@***.***> wrote:
Please describe the problem (or idea)
This is a planning issue for reply by twitter : feature .
Let's first discuss the best approach and then we shall break this into
smaller independent issues .
More Details 🔜 !
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2671>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ6EpFnMq_H5zR8vLtf7kXWZJbELxks5ttBlcgaJpZM4TrSYe>
.
|
@namangupta01 , @jywarren ...lets start the discussion on this ? When are you both free ? |
Yeah!
…On Jun 14, 2018 12:55, "Sagarpreet Chadha" ***@***.***> wrote:
@namangupta01 <https://github.com/namangupta01> , @jywarren
<https://github.com/jywarren> ...lets start the discussion on this ? When
are you both free ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2671 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATwCYebYN7qM2c0Emtdw2jhwYIILp5r1ks5t8g_fgaJpZM4TrSYe>
.
|
I have some implementation in my mind...will post in a while. |
Joe (who just started work with the Public Lab staff) had a really good
question -- would this be a channel for spam posting? Do we have to worry
about Twitter bots spamming, or maybe think about a moderation strategy?
What are ways we could watch out for this? Open brainstorm!
Like, maybe response tweets have to be "liked" by... someone?
…On Thu, Jun 14, 2018 at 4:47 AM Naman Gupta ***@***.***> wrote:
I have some implementation in my mind...will post in a while.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2671 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ_g3eeUD8-7bvLjXmQLYIz0LYM1qks5t8jEFgaJpZM4TrSYe>
.
|
Spamming is the major issue. I was reading documentation from past few days. I was also wondering if we implement as you said "response tweets have to be liked" i found a major issue. |
And also one main point which could leads to no spamming is that we can only add the tweets of those users whose twitter handle is associated to any publiclab account just like we were doing in |
@namangupta01 ...great points !
What do you think ? |
Great thinking! But the only point i am concern with is that we have to check explicitly for the tweet's being liked in every request for all the tweets on the publiclab tweets which can become very large request as the tweets increases. |
And most of the time we will be making request for the tweets for nothing...that was my concern. What do you think? |
However moderation technique on the publiclab website interface would work great. |
@jywarren As email feature is almost complete we could discuss over it? |
I'll look to block out some time on this in a day or two... thank you!
Trying to get all the big features fully up and running before moving on.
Thanks!
…On Mon, Jun 25, 2018 at 7:18 PM Naman Gupta ***@***.***> wrote:
@jywarren <https://github.com/jywarren> As email feature is almost
complete we could discuss over it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2671 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ-UOBtZ0G4haKmQRlSr0WJJ3Q30pks5uAW-ugaJpZM4TrSYe>
.
|
@jywarren Can we put node_id in tweets? So that it can be easily identified? |
@jywarren Is it possible to put node_id in tweets? |
I think so, yes! But we turned off the autotweeting for a bit. Could we
recognize links like publiclab.org/n/____ via Twitter API?
…On Sun, Jul 15, 2018, 9:26 AM Naman Gupta ***@***.***> wrote:
@jywarren <https://github.com/jywarren> Is it possible that to put
node_id in tweets?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2671 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ575zPOLYU6bpFdMMkZA0vl-Xg_Yks5uG0LpgaJpZM4TrSYe>
.
|
@jywarren So |
@jywarren So, by which way should i implement it ? using node_id or the other way. I am finalising the way of implementation. |
This is a bit more complex when we don't have the auto-tweeting happening,
because we don't get to format the original. I can bring it up on our staff
call or open call today (https://publiclab.org/opencall) and we can try to
figure out a good way forward!
…On Mon, Jul 16, 2018 at 6:20 PM Naman Gupta ***@***.***> wrote:
I was researching and found that all the links that comes in tweet through
twitter api is a twitter link which gets redirected to actual page. I was
wondering if we use link to find the node and tweet contains more than one
public.org/n/__(one for referencing post on public lab and other may be
used in any of node content on public lab post itself) then in that case
comment may get added to the wrong node because we donot know what the
actual node we should add this comment? What do you think?
[image: screen shot 2018-07-17 at 3 40 13 am]
<https://user-images.githubusercontent.com/20709985/42786554-59b06d14-8974-11e8-96bd-e2c804da47c9.png>
[image: screen shot 2018-07-17 at 3 40 23 am]
<https://user-images.githubusercontent.com/20709985/42786555-59f820f0-8974-11e8-9aa8-ef78abc46dfe.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2671 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJwu8hr_XV85dxj3NlaTRgsBCaZ8jks5uHRF3gaJpZM4TrSYe>
.
|
I am going to use twitter gem using which we can also do auto tweet --just let you know that we can do autotweeting without using any service. I will look for the way to format. |
OK, so what we're thinking of is:
|
I just had a call with @SidharthBansal. I asked about this. So we are not saving twitter handle right now which is require to recognise the users. I think we should save it somewhere so we can recognise it. @jywarren ? |
@namangupta01 you can migrate the user tag model and add handler field. |
|
As of now i only need to store twitter handle but don't know what feature
we want in future like profile picture and more?
On Sat, Jul 21, 2018 at 1:52 AM Jeffrey Warren <[email protected]>
wrote:
… Hi! Yes, i was saying that if there is a lot of content you want to store
together in a less-flat way, we could make a `data` text column in the
user_tag table, and store JSON in it. But can you offer a clear example of
the kind of data you want to be storing so we know if it's the appropriate
way to store it? Thanks!
For the complexity, i agree, this could create significant load. Can you
write pseudocode for the series of queries and I can help optimize? I'm
thinking, we could craft a more efficient query, but help me figure out the
desired steps first. Thanks!
On Fri, Jul 20, 2018 at 4:00 PM Naman Gupta ***@***.***>
wrote:
> My another concern is that when we will poll for new replies on twitter
in
> every 5 seconds or in every 10 seconds we are going to find if particular
> handle exist or not in database. Suppose in every response we got some
> replies and then we have to find the handles for that we will be parsing
> the text field for extracting the handle and to check if that handle
exist
> or not. Would it increase the time complexity of the system? Because for
> every handle checking we will be doing O(n) work? And also no indexing
> would work in this case to make the db transaction faster.
> Sorry @jywarren <https://github.com/jywarren> this is taking some time
> because i want to be fully confirmed about the implementation before
> opening the pr since it is going to be complex system.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#2671 (comment)
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AABfJ7Z9x-9Cwedez8T-gsMnYR4VQ75zks5uIjbCgaJpZM4TrSYe
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2671 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATwCYaP_Iy1H4Uxs83vmG95ucdrSLgxtks5uIjwCgaJpZM4TrSYe>
.
|
@jywarren any review and feedback regarding |
i am hoping to complete this as soon as possible. |
Can you share a typical JSON output that'd be stored in this new column, so we can see? Thanks! For the pseudocode, could you do something like: since = comments.where(since_id not null).last # get most recent comment-from-tweet time
tweets = client.search("to:publiclab", since_id: 23423423).collect do |tweet|
node = Node.where(some_condition) #To find if node exists
if node.any?
node = node.first
tweet_user = tweet.user
ruser = UserTag.find_by(twitter_id: tweet.user)
add_comment(since_id: since, ruser) unless ruser.nil?
end
end It might be more optimal? |
Here's is the sample JSON:
|
Yes we can use the code specified by you, we will need |
yeah, the problem is you can't search by the json, probably... you could
full text search but it's a bit expensive, right? @SidharthBansal - what do
you think is a good approach here?
…On Mon, Jul 23, 2018 at 3:49 PM Naman Gupta ***@***.***> wrote:
Yes we can use the code specified by you, we will need twitter_id column
in user_tag table?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2671 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJxV7kQpSKvSyCCpDQlFN6fWT_-yqks5uJiibgaJpZM4TrSYe>
.
|
Yes, it would make it expensive. |
Hi guys, just want to remind that we store, usernames for various social accounts in usertags too, so if you guys decide on switching to tables for storing username then, please open a follow-up issue to merge that system. Thanks! |
Would it be worth auto-generating the [twitter:jywarren] style tag from the
OA system? We do need to be careful that nobody falsely associates their
account using the [twitter:jywarren] style tags, so maybe we need to
combine these; Gaurav, could you explain a little about how that system
works?
…On Mon, Jul 23, 2018 at 4:39 PM Gaurav Sachdeva ***@***.***> wrote:
Hi guys, just want to remind that we store, usernames for various social
accounts in usertags too, so if you guys decide on switching to tables for
storing username then, please open a follow-up issue to merge that system.
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2671 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ79eJpa40xw7imZ_m2K8A2B3F4v0ks5uJjRdgaJpZM4TrSYe>
.
|
Hi @Gauravano we are nowhere storing the usernames of the social media users till now. Currently only user id and provider name is saved.
@jywarren, @namangupta01 we can store the username.
I have sent a pr in April for this case. No one is able to create any tag with name oauth:________
@jywarren We are currenlty generating the OAuth usertags from OAuth ONLY. There is no other way to generate them.
Adding multiple columns again and again would not help. I will strongly suggest to store the entire hash and use what we need whensoever need arises. For example, after naman uses handler from auth hash. We can use the image from the image url to display on public lab profile page. We currently use Gravatar.
Thanks |
Hi @jywarren @SidharthBansal @namangupta01, I was referring to this system - We provide PL users to enter their various social media usernames like this- User add the social platform as a key and his username as a value- After that usertag is added to his profile- Thanks! |
@Gauravano I guess Using this will not be a good because i can be able to add any username i want ? |
As the @jywarren we should merge the OA system with it? |
OK, storing the hash makes sense - why do the extra converting, right? Cool. And +1 merging these systems. The earlier system is great but would benefit from integration here for the reasons above! Thanks, everyone! |
yeah storing hash seems good option👍
…On Tue, Jul 24, 2018 at 10:45 PM Jeffrey Warren ***@***.***> wrote:
OK, storing the hash makes sense - why do the extra converting, right?
Cool.
And +1 merging these systems. The earlier system is great but would
benefit from integration here for the reasons above! Thanks, everyone!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2671 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATwCYU7kYuvbVUbybfTrYum5r2lVLYevks5uJ1Y-gaJpZM4TrSYe>
.
|
@jywarren @Gauravano @SidharthBansal can you guys please tell me how to get hash from the string saved in db because i am not able to find a way? Thanks |
We can follow approaches like https://stackoverflow.com/questions/35665266/rails-how-to-save-a-hash-to-the-db-and-using-it-as-a-hash-once-you-pull-it-for?rq=1 |
Hi @Gauravano I will highly recommend you to open another issue for merge of Social Media icons with OA and link it here so that the discussion will not be divergent. |
Hi @SidharthBansa i already tried the above links but they didnt work |
I got the problem..we have to explicitly convert the |
Please describe the problem (or idea)
Let's first discuss the best approach and then we shall break this into smaller independent issues .
More Details 🔜 !
=> Email Integration #2672 (@namangupta01 )
The text was updated successfully, but these errors were encountered: