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

Add a Projects by Environments box #154

Open
mgale opened this issue Sep 4, 2020 · 3 comments
Open

Add a Projects by Environments box #154

mgale opened this issue Sep 4, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@mgale
Copy link

mgale commented Sep 4, 2020

We use the environment attrs in our GitLab pipelines:
https://docs.gitlab.com/ee/ci/environments/
https://docs.gitlab.com/ee/ci/environments/#viewing-environments-and-deployments

In a Project I can go to the Operations->Environments page (/-/environments) and see a list of "environments" that have been deployed. I can then click on the environment name (/-/environments/43 for example) and see a list of jobs that have been deployed with that environment name.

We have the following environment names for example to represent different parts of our global production environment:

  • production-infra
  • production-config
  • production-containers

As each of the above has specific jobs that are triggered.

It would be awesome if we could see the last X number of jobs and their status under a Project., like how right now I can see branches and all the jobs in that pipeline. Maybe in the configuration there is an include_environment attr that takes a list of environments? Then along with the current Project view there is a ProjectEnvironment box which lists the EnvironmentName and the last 5 jobs and their status for example.

Thanks
Michael

@timoschwarzer timoschwarzer added the enhancement New feature or request label Sep 5, 2020
@mgale
Copy link
Author

mgale commented Sep 10, 2020

I took a look to see if I could complete this request and ended up with this so far:
Screen Shot 2020-09-10 at 9 48 03 AM

mgale pushed a commit to mgale/gitlab-monitor that referenced this issue Sep 11, 2020
…rrently fetchEnvironments always returns an empty list and count
mgale pushed a commit to mgale/gitlab-monitor that referenced this issue Sep 11, 2020
mgale pushed a commit to mgale/gitlab-monitor that referenced this issue Sep 11, 2020
@mgale
Copy link
Author

mgale commented Sep 11, 2020

Ok, I am not sure if you will be interested in this feature and code. I have never used VueJS before and I normally never touch JS so my changes could be way off base. Also my editor (vscode) auto formatted on save, so the first commit in my branch is just from the auto formatting so after that are my changes.

If you are interested in this feature and my code and the auto formatting changes are an issue I can create a new branch from master and pull in my commits.

In the screenshot, the project on the left hand side has about 12 environments listed, I added a dashed line between the Environments at the top and the Pipelines at the bottom.

Regardless, let me know what you think.
Thanks
Michael

Screen Shot 2020-09-10 at 10 58 31 PM

mgale pushed a commit to mgale/gitlab-monitor that referenced this issue Sep 13, 2020
…nt results and pulled data from the deployments api endpoint
@timoschwarzer
Copy link
Owner

@mgale The screenshot looks promising! Do you want to open a WIP Pull Request so I can review changes? :)

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

No branches or pull requests

2 participants