-
Notifications
You must be signed in to change notification settings - Fork 209
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
Changes how the investigation tab displays the git log output #3993
Conversation
|
i was wondering if i have to run the tidy before i submit. i can revert those. so no tidy? |
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.
So personally as explained in the ticket already I am not convinced that this approach is beneficial in general. Also I would like to be careful changing an existing behaviour unconditionally. I am open to be convinced by multiple power users though if they like your proposed format better :) As an alternative add the new view based on a configurable feature switch. As suggested in the ticket we should go with https://progress.opensuse.org/issues/92731 first before considering changing the format. @b10n1k maybe this is something that you would like to try out first?
2f2b83a
to
4216ec4
Compare
Done
Reverted |
https://progress.opensuse.org/issues/92731 is very cool to have but it might take more time for me. So i found some time to implement this as i had it in mind, and go as you had said "to discuss over code rather just english text" |
083c655
to
bd291bd
Compare
This comment has been minimized.
This comment has been minimized.
bd291bd
to
4262d5c
Compare
After the latest commit the results should be shown as this example http://aquarius.suse.cz:7900/tests/56#investigation there are some things still to fixed to become a proper code (and testing apparently). but i would like to get some early feedbacks |
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.
The style check is failing. You can run tools/js-tidy
locally to fix this.
@Martchus i read your comments and i will address. i just have another question. |
You mean for the sake of making it configurable (via the web UI service's config file)? That would make sense, we do that already in several pages, e.g. templates/webapi/admin/audit_log/productlog.html.ep and templates/webapi/step/edit.html.ep (the block started with |
4262d5c
to
75566da
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.
I still prefer the previous concise list but maybe you can make use of collapsing to keep the concise list and unfold the entries on click? We already use this "more …" label. Maybe this can be a starting point for you
thats a good idea. thanks |
2c74582
to
70db21f
Compare
can you replace the leading "+" with a "-" if unfolded? |
Actually i have. But i have some js strange behavior and i havent found a way through it yet. But the switch of the sign is there |
70db21f
to
3e9886d
Compare
3e9886d
to
31da233
Compare
dfd2ee9
to
8c788fd
Compare
8c788fd
to
d8b4b60
Compare
Well, I still see it as easier to do a single click to find the complete diff. But my suggestion was that you would simply offer both ways in the separate parts of the investigation tab. So if you bring back the old behaviour for the complete diff and just add the new functionality within the commit list then we can find an agreement :) |
e8c380e
to
736abd9
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.
The last commit message is a bit "low-level" and lacks proper casing. Since you've updated your changes it would be nice to know what you've actually changed (also regarding @okurz 's review comments).
5c2fd29
to
ac9671d
Compare
i did some changes but i am not completed sure if this what you meant. ready for review |
This pull request is now in conflicts. Could you fix it? 🙏 |
ac9671d
to
fa11567
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.
@okurz i have the local dev one. Let me know when you want to take a look |
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.
I checked it on @b10n1k's instance and attached the screenshot to the PR description. Looks good. Great work! Approved :)
fa11567
to
6c17cbf
Compare
lib/OpenQA/WebAPI/Controller/Test.pm
Outdated
testgiturl => gitrepodir(distri => $job->DISTRI), | ||
needlegiturl => gitrepodir(distri => $job->DISTRI, needles => 1), |
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.
Likely my last comment got lost. I still think these URLs should be rendered on the tab's page (and not the overall page).
This PR unifies the output of the git logs and git log stats into one https://progress.opensuse.org/issues/91878 The purpose is to have a better view of what files have been changed for each commit. Example: ``` test_log 6a44799cb test lib/bootbasetest.pm | 2 +- lib/opensusebasetest.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ``` Signed-off-by: ybonatakis <ybonatakis@suse.com>
Before test_log be rendered i convert each hash to a link element to the actual commit in github. If more than five commits exists it concatenates the rest and they append the preElementMore directly are shown as the textLinesRest do with the `Show More` link. Signed-off-by: ybonatakis <ybonatakis@suse.com>
As part of the changes for the investigation tab with links to the commits, it was neccessity to find a way to make the repo url self-agnostic, for the test repo as well as the needles. This is what the purpose of `gitrepodir()` in *Utils.pm*. Running that, it will return something like "https://github.com/b10n1k/os-autoinst-distri-opensuse/commit/" constructed by the of the local **.git/config** and the info under the `origin` branch. `origin` might not be the one that is set so this may need to be configurable, but i leave it for later. The reason of this approach is because: - avoid static variables. In this case i could set the variables in the js and ask to use each one correspondingly. - avoid openqa setup for every instance. Similar with the previous but the variables would have to adjust for every instance and finally passed to somehow to the js. Also i stash the variables (*needlesgiturl* and *testgiturl*) inside `_show`. i think this will give access to the variables also for other utulities. However i come up with it because i strungled to stash the variables from `investigation()`. Signed-off-by: ybonatakis <ybonatakis@suse.com>
applied in other files via `make update-deps` Signed-off-by: ybonatakis <ybonatakis@suse.com>
Here also i solved a problem which i missed before with the test_log when this is just one. the problem was in the regex logic which it was always matching only when another git_log was shown. The regex used to make enumeration of the logs returned by `git log` Signed-off-by: ybonatakis <ybonatakis@suse.com>
Rather stash the variables which contain the git url on each rendering via `_show`, we move the invocation in the `investigation`. In such way, the variables are in the `investigation_json` and can be used to set the required attributes during the rendering of that particular tab. Signed-off-by: ybonatakis <ybonatakis@suse.com>
7dc4a53
to
c36c13a
Compare
This PR unifies the output of the git logs and git log stats into one
https://progress.opensuse.org/issues/91878
The purpose is to have a better view of what files have been changed for each
commit.
Example:
Signed-off-by: ybonatakis ybonatakis@suse.com