-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: Jobs now shown in a table in the main page #3784
feat: Jobs now shown in a table in the main page #3784
Conversation
Hi @marcosdiez, this would be a great addition to Atlantis. I've run some tests using your branch and there are a few issues:
I would also suggest displaying the list of jobs on a separate tab, rather than below the list of lock files. This could be achieved easily using something like this example: https://www.w3schools.com/howto/howto_js_tabs.asp You also need to update the tests for the Go files you are changing. |
Hi @X-Guardian ! Thanks for reviewing. About the order not being consistent, I could easily fix that. The biggest fix I actually need to do is that the row lines are not showing. I'll try to work on that as well. Now why would I stop showing the logs of a merged PR ? If we have the data, I want it to be seen. The primary reason I wrote this code was because I was being affected by #3767 . So more data is better than less data. Maybe I could add a new column showing the PR status (opened/closed/merged) or something like that. I don't recall if we have that data in memory. Also, I can't reproduce "The repository name, project and workspace don't always populate in the table.". We've been using it in an environment with more than 50 people (on GitHub) and this is not happening. I don't mind implementing the tabs either nor unit tests. That being said, I want to fix everything in one sit, so we need to agree on 1) and I need to know how to reproduce 3) Thanks Marcos |
Hi Marcos. I have been testing it on GitLab. Let me try it on GitHub and see if I get the same issue with the repo name/project workspace not showing. Regarding keeping all the log references. Eventually you are going to have so many that the Atlantis server will surely run out of memory and fall over, so I don't think that is viable. |
OK, the entries with no repository name, project or workspace are the outputs from pre/post workflow hooks. |
@X-Guardian I don't keep logs in memory. I just list all the logs there currently are in memory. If you look at my code, the only modification that I did is that whenever a "log in memory" is created, I am also saving the timestamp so I can later use it to sort. So I won't ever cause atlantis to run out of memory :) |
Could you please show me a screenshot with pre/post workflow hooks so I can see what it looks like? |
fd32def
to
b3d4019
Compare
b3d4019
to
da82500
Compare
@X-Guardian all the tests pass now. I was thinking, I personally prefer two tables one below the other one. If you really want, I can implement the tabs, though. |
as @X-Guardian said we need to review it too. |
da82500
to
d0d39d9
Compare
@marcosdiez can you fix the lint errors? |
d76973c
to
4995d91
Compare
@jamengual done! |
@marcosdiez can you please fix the conflicts? Thanks. |
4995d91
to
317c731
Compare
@jamengual done! |
The pre and post workflow hooks outputs are still broken in this. |
Nice job with this PR. I do like seeing the exposed jobs.
Yep, I can confirm that the pre and post workflow jobs still show up as empty rows as indicated by @X-Guardian. I created the link issue above 4132. If you get a chance @marcosdiez, please look into it. |
* feat: better logging for UpdateStatus * feat: jobs now shown in a table in the main page --------- Co-authored-by: PePe Amengual <[email protected]>
* feat: better logging for UpdateStatus * feat: jobs now shown in a table in the main page --------- Co-authored-by: PePe Amengual <[email protected]>
what
I wanted to see all the jobs running in/executed by atlantis in a single page.
why
This will help me see all my plans at once. They are sorted by age, which also helps. Will also help me to fix #3767 in the future.
Since the data is obtained from memory, it will be cleared when atlantis is restarted and therefore it should not show any dead links.
It may be a nice workaround for #3783
screenshot
and when there are no jobs,
The PR can be quickly tested using the following docker container: marcosdiez/atlantis:v0.25.0b