Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

feat:slack connector #47

Merged
merged 6 commits into from
Apr 19, 2024

Conversation

khareyash05
Copy link
Contributor

@khareyash05 khareyash05 commented Apr 18, 2024

Slack Connector

@khareyash05 khareyash05 marked this pull request as ready for review April 18, 2024 17:05
@louismurerwa louismurerwa merged commit b2920ea into OcularEngineering:main Apr 19, 2024
Copy link

@ArnavBalyan ArnavBalyan left a comment

Choose a reason for hiding this comment

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

Indexing and fetching does not seem to be working, code needs minor changes & testing.

for (const channel of slackChannels) {
const conversations = await this.fetchChannelConversations(channel.id,config);
for(const conversation of conversations){
const thread = await this.fetchThreadForConversation(channel.id,conversation.ts,config)

Choose a reason for hiding this comment

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

This seems to be a bug, .ts does not exist on conversation. Similarly, it's non-existent for the references in this file. Consider changing to conversation.id

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey id will not work . Please refer to the following doc https://api.slack.com/methods/conversations.history

Choose a reason for hiding this comment

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

Yes, refer to the other comment on this file, ts does not exist on the conversation object

Comment on lines +147 to +150
id: conversations.ts,
text:conversations.text,
user: conversations.user
}))

Choose a reason for hiding this comment

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

We are assigning conversations.ts to id, not to ts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh right! Missed that!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could you please create a PR with the change? Thanks for finding the issue

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

Successfully merging this pull request may close these issues.

4 participants