daytonaio / daytona

The Open Source Dev Environment Manager.
https://daytona.io
Apache License 2.0
7.02k stars 752 forks source link

TUI Pagination breaks on last page #592

Closed idagelic closed 1 week ago

idagelic commented 1 month ago

Describe the bug TUI views that contain pagination such as daytona info and multi-project advanced configuration views display leftover data lines from previous page as shown in the screenshots.

To Reproduce Steps to reproduce the behavior:

  1. Run the Daytona Server
  2. Create a couple workspaces
  3. Run a workspace selection command such as daytona info
  4. The last page of the pagination has leftover text when there is no workspace to show - see screenshot

Expected behavior There shouldn't be any leftover text where there is no real entry

Screenshots

daytona info:

image

daytona create --multi-project advanced configuration with two projects

image

Desktop (please complete the following information):

Additional context These are very similar issues with likely the same solution so it would be good to solve them both in one PR. Command daytona ide uses pagination without issue

idagelic commented 1 month ago

/bounty $20

algora-pbc[bot] commented 1 month ago

๐Ÿ’Ž $20 bounty โ€ข Daytona

Steps to solve:

  1. Start working: Comment /attempt #592 with your implementation plan
  2. Submit work: Create a pull request including /claim #592 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

If no one is assigned to the issue, feel free to tackle it, without confirmation from us, after registering your attempt. In the event that multiple PRs are made from different people, we will generally accept those with the cleanest code.

Thank you for contributing to daytonaio/daytona!

Add a bounty โ€ข Share on socials

Attempt Started (GMT+0) Solution
๐ŸŸข @tarunrajput May 22, 2024, 10:20:16 AM WIP
๐Ÿ”ด @Anshgrover23 Jun 16, 2024, 9:45:32 AM WIP
๐ŸŸข @abhishek818 #725
tarunrajput commented 1 month ago

/attempt #59

Algora profile Completed bounties Tech Active attempts Options
@tarunrajput    10 daytonaio bounties
+ 4 bounties from 4 projects
Java, TypeScript,
JavaScript
Cancel attempt
Anshgrover23 commented 1 month ago

/attempt #592

abhishek818 commented 1 month ago

@idagelic hey, i keep getting below error while creating a new workspace, any idea?


gitpod /workspace/daytona (main) $ ./daytona create
Creating workspace
Initializing network
Network initialized
Enumerating objects: 8099, done.
Counting objects: 100% (1593/1593), done.
Compressing objects: 100% (405/405), done.
Total 8099 (delta 1239), reused 1360 (delta 1146), pack-reused 6506
Creating project revert
Pulling image...
FATA[0033] failed to create workspace: invalid reference format 

Server logs:

ERRO[0118] API ERROR                                     URI="/log/workspace/dcc90e5e306e?follow=true" error="Error #01: open /home/gitpod/.config/daytona/server/logs/dcc90e5e306e/log: no such file or directory\n" latency="220.88ยตs" method=GET status=500
ERRO[0118] API ERROR                                     URI="/log/workspace/dcc90e5e306e/revert?follow=true" error="Error #01: open /home/gitpod/.config/daytona/server/logs/dcc90e5e306e/revert/log: no such file or directory\n" latency="195.75ยตs" method=GET status=500
ERRO[0118] API ERROR                                     URI="/log/workspace/dcc90e5e306e/revert?follow=true" error="Error #01: open /home/gitpod/.config/daytona/server/logs/dcc90e5e306e/revert/log: no such file or directory\n" latency="575.82ยตs" method=GET status=500
ERRO[0119] API ERROR                                     URI="/log/workspace/dcc90e5e306e/revert?follow=true" error="Error #01: open /home/gitpod/.config/daytona/server/logs/dcc90e5e306e/revert/log: no such file or directory\n" latency="337.71ยตs" method=GET status=500
ERRO[0138] API ERROR                                     URI=/workspace/ error="Error #01: failed to create workspace: invalid reference format\n" latency=20.209921339s method=POST status=500
INFO[0138] API REQUEST                                   URI="/log/workspace/dcc90e5e306e/revert?follow=true" latency=18.714307195s method=GET status=200
idagelic commented 1 month ago

@abhishek818 We are working on a quick fix for this - until then please use "daytona create REPO_URL" In the meantime, in the context of this issue, you can also recreate it without submitting the creation request and just browsing the git repositories for example. You can add a git provider by running daytona git-providers add daytona create will then show a list of repositories with the last page of the pagination having the residue in question

daytonaBot commented 2 weeks ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 14 days). It will be closed if no further activity occurs. Thanks for the feedback.

algora-pbc[bot] commented 2 weeks ago

๐Ÿ’ก @abhishek818 submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] commented 1 week ago

๐ŸŽ‰๐ŸŽˆ @abhishek818 has been awarded $20! ๐ŸŽˆ๐ŸŽŠ