-
Notifications
You must be signed in to change notification settings - Fork 121
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
[gitter] add gitter backend support to ELK #831
Conversation
I have added Raw and Enricher classes for the backend, however the enrichment of data is quite shallow at the moment because of the limited data returned by perceval. |
Hi @imnitishng, sorry for the late reaction. I'm reviewing the PR right now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @imnitishng for the PR. Overall it looks great, I left a first round of comments :)
Please remember to
- include a schema of the enriched data (as a reference you can check the one for git)
- update the mordred documentation to include this new data source (https://github.com/chaoss/grimoirelab-sirmordred#supported-data-sources-)
I have resolved the issues and created schema for gitter. Please have a look. I just realised some of the attributes need to be removed from the schema I developed. I will do it soon and add the required tests for this backend. Thank You for the review! |
@valeriocos, I also wanted to discuss about the kinds of studies and visualizations we could perform in the data.
This is a very high level idea of the future support I have planned, I will be digging into the details to implement this very soon. Please provide some suggestions or references that you feel I must look through. Thank you! |
Thank you @imnitishng for sharing an initial set of metrics! Can you answer the following questions?
How can we get the issue submitters?
It's a really intersting objective. If we go to this direction, I understand that we should expand the get_identities method to collect the user info stored in
How would you like to implement these metrics? |
Well issue submitters are the people mentioning some issue in the messages, so we already have the
Yea that sounds great, we could add it too, it might be a good metric to convey the most active users in a room
Well I had this idea as I went through git and github dashboards, I suppose people coming and joining the rooms over some defined time period (like GSoC time period of 1-2 months) might be classified in the category of attracted developers. |
Thank you for the clarifications @imnitishng !
Is an approximation you are doing or does Gitter convert the issue submitters (the ones that opened an issue in GitHub) to users that mention those issues in their Gitter messages? In the first case, we can redefine the metrics as To move things forward, I would propose to work on a first implementation of the enricher/dashboard that focuses on a limited set of metrics among the ones you proposed. This set shouldn't require the implementation of a study. Later, we can see how to incorporate more metrics. WDYT? |
Gitter does not do anything as such, it just returns the data consisting of -
There is no way of knowing who opened the issue in the github repository from the data returned by gitter API. However we could rely on some new functions based on github perceval backend to get info about the person who opened the issue. I will think about this.
Yes this seems better. I'll do it.
Sure, I am on it, will update the PR once I have the basic implementation complete. Thanks for the valuable suggestions. |
Thank you @imnitishng , ping me when the PR is ready for review |
Hi @valeriocos, I have added the metrics and enriched data. Please have a look and provide your suggestions. Will add tests soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @imnitishng for working on this PR. I have some questions about the method __get_rich_links
and the ones related to it. Beyond this the PR looks good.
Can you add some tests? You can look at the existing tests (e.g., https://github.com/chaoss/grimoirelab-elk/blob/master/tests/test_slack.py) to write the ones for Gitter.
The tests leverage on a common base (ref here). In the test data folder, you need to add a file containing some docs extracted from the Pagure backend of Perceval (see example here). These docs are then used for testing the code of the raw and enrich connectors.
Thanks!
Hi @valeriocos, I have added the tests, please have a look. However some work in logic and schemas is left because of the pending discussions. Will finalize the PR as soon as we are done with the discussion. Thank you for the help. |
Pull Request Test Coverage Report for Build 2115
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @imnitishng , overall the PR looks good. I left some minor comments. Thanks for your work
Hi @valeriocos, I have finished the work on this backend based on your suggestions and submitted PRs in the concerned repositories. Please have a look, thank you! 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @imnitishng thank you the PR. I left a really minor comment.
If you are interested, you can add a note to this PR which will appear in the next release. The note should include a high-level description of the changes introduced in this PR (to let non technical people understand what the change is about).
If you are interested in adding the note, please follow the instructions at: https://github.com/Bitergia/release-tools#changelog. Consider also to share your feedback when using the tool (what you liked, what you didn't like and things you would like to improve).
If you're not interested, can you clarify why?
In both cases, your feedback is valuable and will allow us to improve the way to reflect the code changes in the release.
Thanks!
@valeriocos done, please have a look. |
thanks @imnitishng ! Did you commit the release note file (#831 (review)) ? |
Doing it now. |
Raw and Enriched indexes have been added along with their tests and schemas. Signed-off-by: Nitish Gupta <[email protected]>
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @imnitishng for your patience and good work!
This PR is for adding an early support of gitter backend in grimoirelab-elk. Please have a look.
Fixes #820
Signed-off-by: Nitish Gupta [email protected]