Skip to content
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

Show git trailer #1169

Merged
merged 43 commits into from Jun 11, 2020
Merged

Show git trailer #1169

merged 43 commits into from Jun 11, 2020

Conversation

eheimbuch
Copy link
Member

@eheimbuch eheimbuch commented May 29, 2020

Proposed changes

Create changeset trailer from description and "committed by" tag from git. Show trailers on changeset details view in a table.

Your checklist for this pull request

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • PR is well described
  • Target branch is not master (in most cases develop should bet the target of choice)
  • Code does not conflict with target branch
  • New code is covered with unit tests
  • CHANGELOG.md updated
  • Documentation updated (only necessary for new features or changed behaviour)

Checklist for branch merge request (not required for forks)

@pfeuffer pfeuffer force-pushed the feature/show-git-trailer branch 3 times, most recently from 992fedf to 6fee31b Compare June 4, 2020 05:20
Andrzej Polit and others added 11 commits June 8, 2020 08:57
refactor ChangesetAuthor.tsx

get interfaces right / fix unit test / cleanup

fix table layout

use Set constructor injection to bind the implementation for the new changesetTrailers API

cleanup / update CHANGELOG.md

cleanup

fix formatting
Trailes are no persons, they have a person.
Doing so, the trailers are available for other plugins inspecting
changesets, not only for the frontend.
The detection of trailers and removing them from the message should be
in one place, not divided between classes.
@pfeuffer pfeuffer changed the title Feature/show git trailer Show git trailer Jun 8, 2020
@pfeuffer pfeuffer added the enhancement New feature or request label Jun 8, 2020
We have to use a dedicated component because we have to use the
translations from 'plugins', so that other plugins can contribute their
own trailer types with their own descriptions.
Doing so will prevent empty collections being added to the trailers.
Copy link
Member

@sdorra sdorra left a comment

Choose a reason for hiding this comment

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

Something really strange is going on:

image

Each Changeset inherits the description from the one before.

One processor can be used to process multiple chagesets of one
repository. Therefore each processing needs a new clean working
environment.
@pfeuffer
Copy link
Member

pfeuffer commented Jun 9, 2020

Something really strange is going on:

image

Each Changeset inherits the description from the one before.

Should be fixed witch changes to ChangesetDescriptionTrailerProvider.

Copy link
Member

@pfeuffer pfeuffer left a comment

Choose a reason for hiding this comment

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

This is not working when there are not trailers at all.

scm-ui/ui-types/src/Changesets.ts Outdated Show resolved Hide resolved
scm-ui/ui-webapp/public/locales/de/repos.json Outdated Show resolved Hide resolved
scm-ui/ui-webapp/public/locales/en/repos.json Outdated Show resolved Hide resolved
scm-ui/ui-webapp/public/locales/en/repos.json Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Jun 11, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 1 Security Hotspot to review)
Code Smell A 0 Code Smells

57.7% 57.7% Coverage
7.1% 7.1% Duplication

@pfeuffer pfeuffer merged commit 01164a2 into develop Jun 11, 2020
@pfeuffer pfeuffer deleted the feature/show-git-trailer branch June 11, 2020 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants