-
Notifications
You must be signed in to change notification settings - Fork 87
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
[graal] Add Code Complexity(CoCom) & Code License(CoLic) panels #380
Conversation
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 @inishchith for this PR.
I tried it out, but it seems that something is not working. What I did was executing the enrichment and study phase locally, and import the panels with micro-mordred (--enrich
and panels
). Everything was correctly imported, I set the aliases but the data is not shown in the dashboards.
I modified the config.py and task_panels.py (I'm going to share their code soon) to be able to active the dashboards from the setup.cfg with
[panels]
kibiter_time_from= "now-30y"
kibiter_default_index= "cocom"
kibiter_url = http://admin:admin@localhost:5601
community = true
code-license = true <---
code-complexity = true <--
The main reason of this modification is because the dashboards contain also a index pattern of the study, which should be uploaded together with the index pattern of the enriched index.
Some comments about the PR below:
- please split the commit in two: one for cocom and one for colic
- the name of the dashboard files should be
cocom
andcolic
- some
name
fields contain a.keyword
, although it's valid, the other dashboards don't contain them. Please remove them. - the title of the index patterns could be equal to their
id
values (which are shorter and easier to set as aliases)
task_panels.py
config.py
|
123c86f
to
47f9044
Compare
@valeriocos Thanks for the suggestions.
Thanks!. |
ok |
Oh. Yes. Thanks for pointing it out. |
you're welcome! |
Signed-off-by: inishchith <[email protected]>
1c0a35f
to
6dfd795
Compare
6dfd795
to
8ff7bcc
Compare
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 @inishchith for reworking the PR. I tested with the full chain and it works pretty well. There are some minor issue that should be addressed:
- The selector (first visualization on the left) is empty for both colic and cocom dashboards
- The help text visualization is not present in the two dashboards.
- The filter
interval_months
is still set (thus the dashboards will be empty if the setup.cfg contains a month_interval different from the one set in the filter). - The name of the dashboards contain an underscore*, for consistency with the other dashboards they shouldn't. You can change it by modifying their titles (e.g., https://github.com/chaoss/grimoirelab-sigils/pull/380/files#diff-93b975ad35b5337f7dbe76e77da5ff3bR21).
- The description of the dashboars is empty*, it would be great to add some text (e.g.,
Cocom panel by Bitergia
). To add the description, you can modify directly the json (e.g., https://github.com/chaoss/grimoirelab-sigils/pull/380/files#diff-93b975ad35b5337f7dbe76e77da5ff3bR5). - For consistency with the other dashboards, the
time_field
of the index patterns should begrimoire_creation_date
. This requires a tiny modification on the enrichers ([graal] Add support of Graal CoCom & CoLic Backend grimoirelab-elk#672 (review))
62500a4
to
d6a564f
Compare
@valeriocos Sorry for the delayed response.
|
c9c81f3
to
7edd930
Compare
@inishchith I had some problems to visualize the selector of colic and as you reported the time_field attribute wasn't updated. Please find the set of dasboards and index patterns fixed here: graal-panels.zip. Once you have tested them locally, we could update them to the incubator instance. Thanks |
@valeriocos Thanks for resolving the issue. I'll update the PR now. |
7edd930
to
92eee33
Compare
92eee33
to
5f716c4
Compare
@valeriocos I've gone through the new panels and they look good to me. |
Thank you @inishchith , I'm going to make a final pass |
@inishchith final pass made on the full chain! Everything works fine, good job! |
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 @inishchith
@alpgarcia when you have time could you have a look at https://grimoirelab-incubator.biterg.io and review the colic and cocom dashboards? thanks |
@sduenas feel free to have a look at it |
Hi @inishchith, thanks a lot for your effort! I miss the documentation files for these new panels. There is some information about how to document them at: https://github.com/chaoss/grimoirelab-sigils/blob/master/CONTRIBUTING.md The idea is having the corresponding entries in the web page: https://chaoss.github.io/grimoirelab-sigils/ It should be just writing a couple of md files with the right format and place. There are also instructions on how to locally test them using Jekyll. A really minor comment: I think you need to update your colic help box title :) As a suggestion, is easy to convert the format of URLs like Thanks again! |
Thank you @alpgarcia for the review |
Signed-off-by: inishchith <[email protected]>
5f716c4
to
7d3e5a8
Compare
Hey @alpgarcia!
Let me know if any more changes required. :) Thanks! |
Perfect! I don't want to stop this PR anymore, I'm fine with this. I have a suggestion for making the panel easier to understand for "newbies" :) (I'm not requiring this as part of this PR to be accepted, it could be done in a different one, in fact it was my fault not saying this in my previous review). We have some new panels coming to sigils in the short-term. Their documentation can be found at: https://bitergia.gitlab.io/panel-collections/open_source_program_office/engagement-contributions-overview.html There you can see a simple structure: an introductory paragraph and then the metric section. Your documentation is almost the same, just need the intro and the In the example, it says:
As you may see, it says what you could look for in the dashboard (contributions trends). To talk about details, we have the metrics section. This way we hope to engage the users even if they don't understand the metrics at first glance, because they understand the benefits of the panel and thus they should be motivated to going deeper in understanding each and every chart or number.
👍
This is part of the front end (Kibiter/Kibana), so the only way I know to configure this is through Kibiter/Kibana. The mapping is something related to ES from which Kibana infers their own types for the front end and, afaik, there's no direct correspondence for URLs. On the other hand, doing it from Kibiter/Kibana prevents us from breaking searches because of formatting stuff (as you probably noticed, you can even change the link text that is displayed without affecting the real data stored in ES). Thanks a lot! Alberto, |
@alpgarcia Thanks for your comment.
|
Signed-off-by: inishchith <[email protected]>
7d3e5a8
to
911757f
Compare
Perfect @inishchith, thanks for the effort! |
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
REF. inishchith/gsoc#16
Signed-off-by: inishchith [email protected]