Marcin Tojek and Presley Pizzo
e94b27bce4
fix: Adjust description for cancel in-progress workspace jobs ( #5142 )
...
* fix: Adjust description for cancel in-progress workspace jobs
* Update site/src/i18n/en/templatePage.json
Co-authored-by: Presley Pizzo <1290996+presleyp@users.noreply.github.com >
Co-authored-by: Presley Pizzo <1290996+presleyp@users.noreply.github.com >
2022-11-21 17:00:18 +00:00
Presley Pizzo
67941b4f80
chore: refactor audit page to use window function for count ( #5133 )
...
* Move count query to window function
* Unpack count and update types
* Remove count endpoint
* Update tests, wip
* Fix tests
* Update frontend, wip
* Remove space
* Fix frontend test
* Don't hang on error
* Handle no results
* Don't omit count
* Fix frontend tests
2022-11-21 11:30:41 -05:00
Bruno Quaresma
7a369e0a30
refactor: Minor build bar UI improvement ( #5132 )
2022-11-21 10:04:24 -05:00
Marcin Tojek
e86539db11
feat: Allow user to cancel workspace jobs ( #5115 )
...
* Add database column allow_user_cancel_workspace_jobs
* Adjust API
* site: typesGenerated.ts
* Expose template.allow_ in Workspaces API
* Fix: site tests
* Fix: make fmt/prettier
* Fix: enterprise
* Database tests
* Add CLI tests
* Add checkbox
* i18n
* Logic: block cancelling
* Unit tests for conditional cancel
* Fix: message
* Address PR comment
* Address PR comments
* Fix: make
2022-11-21 11:43:53 +01:00
Bruno Quaresma
5fa3fdeca0
refactor: Improve empty views ( #5134 )
2022-11-19 01:46:11 +00:00
Bruno Quaresma
a477d901d6
refactor: Fix up to date color ( #5131 )
2022-11-19 01:18:40 +00:00
Bruno Quaresma
13a4cfa670
chore: Remove unused test files and code ( #5130 )
2022-11-18 18:03:15 +00:00
Presley Pizzo
4c24adb471
Fix filter bug ( #5124 )
2022-11-18 09:53:16 -05:00
Bruno Quaresma
5866ca48a9
refactor: Reemove mono font from empty title ( #5125 )
2022-11-18 10:09:13 -03:00
Ammar Bandukwala
acf34d4295
site: support high build time variation in progress bar ( #4941 )
2022-11-17 16:56:56 +00:00
Ben Potter
8e468c49cb
chore: default to generic troubleshooting link ( #5007 )
2022-11-17 11:10:49 +00:00
Kyle Carberry
fb9ca7b830
feat: Add the option to generate a trial license during setup ( #5110 )
...
This allows users to generate a 30 day free license during setup to
test out Enterprise features.
2022-11-16 17:09:49 -06:00
Kyle Carberry
b6703b11c6
feat: Add external provisioner daemons ( #4935 )
...
* Start to port over provisioner daemons PR
* Move to Enterprise
* Begin adding tests for external registration
* Move provisioner daemons query to enterprise
* Move around provisioner daemons schema
* Add tags to provisioner daemons
* make gen
* Add user local provisioner daemons
* Add provisioner daemons
* Add feature for external daemons
* Add command to start a provisioner daemon
* Add provisioner tags to template push and create
* Rename migration files
* Fix tests
* Fix entitlements test
* PR comments
* Update migration
* Fix FE types
2022-11-16 16:34:06 -06:00
Ammar Bandukwala
da758ba712
site: fix quota_allowance == 0 bug ( #5108 )
2022-11-16 18:20:07 +00:00
Bruno Quaresma
1fcc7caf99
fix: Fix tab default ( #5104 )
2022-11-16 16:43:35 +00:00
Presley Pizzo
e6ead7d915
chore: refactor workspaces query to use window function ( #5079 )
...
* Use window function in query
* Convert workspace rows and unpack count
* Update types
* Fix Scan bug
* Remove getCountError
2022-11-16 10:16:37 -05:00
Presley Pizzo
560d3c9fd0
fix: remove pagination widget when filter is invalid ( #5095 )
...
* Clear count along with user, remove count error
* Format
2022-11-16 09:55:41 -05:00
Marcin Tojek
32927b1a24
feat: show template.display_name on Workspace pages ( #5082 )
...
* feat: expose template.display_name via Workspaces endpoint
* Fix: MockWorkspace
* UI: Workspace stats and row
* Show template.display_name on pages
* Fix: address PR comments
* Add helper function: getDisplayWorkspaceTemplateName
2022-11-16 15:50:32 +01:00
Mathias Fredriksson
c1ecc91aab
feat: Add fallback troubleshooting URL for coder agents ( #5005 )
2022-11-16 12:53:02 +02:00
Ben Potter
09ee844389
fix: git docs link ( #5099 )
2022-11-15 21:19:52 +00:00
Kyle Carberry
fc0a493b72
feat: Add no_refresh option to Git auth configs ( #5097 )
...
This allows organizations to disable refreshing Git tokens
and instead prompt for authentication again.
2022-11-15 21:06:13 +00:00
Bruno Quaresma
2a46702fc5
fix: Syntax highlighting with long lines and untar content with emojis ( #5098 )
2022-11-15 20:09:54 +00:00
Marcin Tojek
eda7c66896
chore: TemplatesPage tests failing on M1 ( #5088 )
2022-11-15 19:45:01 +01:00
Bruno Quaresma
e68923fa36
fix: Worker security policy ( #5093 )
2022-11-15 17:02:24 +00:00
Mathias Fredriksson and 李董睿煊
9fb710a04f
feat: Add allow everyone option to GitHub OAuth2 logins ( #5086 )
...
* feat: Add allow everyone option for GitHub OAuth
* fix: Detect team when multiple orgs are present
Co-authored-by: 李董睿煊 <dongruixuan@hotmail.com >
2022-11-15 18:56:46 +02:00
Bruno Quaresma
f262fb4811
feat: Add template version page ( #5071 )
2022-11-15 16:24:13 +00:00
Geoffrey Huntley
b5181aacd7
feat(i18n): adjust language when deleting a template ( #5056 )
2022-11-15 10:12:53 +10:00
Garrett Delfosse
88f3691dcc
feat: add count to get users endpoint ( #5016 )
2022-11-14 17:22:57 -05:00
Marcin Tojek
49b340e039
Show template.display_name in the site UI ( #5069 )
...
* Show display_name field in the template settings
* Show template.display_name on pages: Templates, CreateWorkspace
* Fix: template.display_name pattern
* make fmt/prettier
* Fix tests
* Fix: make fmt/prettier
* Fix: merge
* Fix: autoFocus
* i18n: display_name
2022-11-14 21:11:50 +01:00
Ammar Bandukwala
97dbd4dc5d
Implement Quotas v3 ( #5012 )
...
* provisioner/terraform: add cost to resource_metadata
* provisionerd/runner: use Options struct
* Complete provisionerd implementation
* Add quota_allowance to groups
* Combine Quota and RBAC licenses
* Add Opts to InTx
2022-11-14 17:57:33 +00:00
Kira Pilot
3fb7892c07
fix: template permissions page never loads ( #5014 )
...
* removed redundant permissions loader
* fixed tests
2022-11-14 12:33:17 -05:00
Arthur Normand
9578ce9f77
OAuth now uses client TLS certs (if configured) ( #5042 )
...
* OAuth now uses client TLS certs (if configured)
* Update docs
* Cleaning
* Fix lint errors and generate static files
* Fix lint error and regenerate more static files
* Suppress lint error
2022-11-13 14:15:06 -06:00
Dean Sheather
8e5af82275
feat: add api-rate-limit flag ( #5013 )
2022-11-10 21:53:48 +00:00
Marcin Tojek
2042b575dc
feat: Add template display name (backend) ( #4966 )
...
* Rename to nameValidator
* Refactor: NameValid
* Fix: comment
* Define new migration
* Include display_name
* Update typesGenerated.ts
* Update meta
* Adjust tests
* CLI tests
* Fix: audit
* Fix: omitempty
* site: display_name is optional
* unit: TestUsernameValid
* entities.ts: add display_name
* site: TemplateSettingsPage.test.tsx
* Fix: TemplateSettingsForm.tsx
* Adjust tests
* Add comment to display_name column
* Fix: rename
* Fix: make
* Loosen regexp
* Fix: err check
* Fix: template name length
* Allow for whitespaces
* Update migration number
2022-11-10 21:51:09 +01:00
Garrett Delfosse and Presley Pizzo
766a2ad590
chore: refactor workspace count to single route ( #4809 )
...
Co-authored-by: Presley Pizzo <presley@coder.com >
2022-11-10 13:25:46 -05:00
Kira Pilot
1c9677d37a
Template delete button/kira pilot ( #4992 )
...
* removed button
* ripped out delete dialog
* fixed tests
* added error message back
* redirecting after success
2022-11-10 10:41:36 -05:00
Bruno Quaresma
d225f2c6ba
feat: Display warning on agent connection timeout ( #4983 )
2022-11-09 20:40:34 +00:00
Garrett Delfosse
d277e28427
feat: change template max_ttl to default_ttl ( #4843 )
2022-11-09 19:36:25 +00:00
Dean Sheather
ffc24dcbe0
feat: create tracing.SlogSink for storing logs as span events ( #4962 )
2022-11-09 12:58:23 -06:00
Mathias Fredriksson
90c34b74de
feat: Add connection_timeout and troubleshooting_url to agent ( #4937 )
...
* feat: Add connection_timeout and troubleshooting_url to agent
This commit adds the connection timeout and troubleshooting url fields
to coder agents.
If an initial connection cannot be established within connection timeout
seconds, then the agent status will be marked as `"timeout"`.
The troubleshooting URL will be present, if configured in the Terraform
template, it can be presented to the user when the agent state is either
`"timeout"` or `"disconnected"`.
Fixes #4678
2022-11-09 17:27:05 +02:00
Presley Pizzo
fa844d0878
Feat: hide pagination widget when not needed ( #4957 )
...
* Hide pagination widget when not needed. Don't merge until count is in.
* Format
* Refactor
* Remove story
* Fix bug
* Format
2022-11-08 13:29:32 -05:00
Garrett Delfosse
2789fb7cac
fix: move experimental flag to server ( #4959 )
2022-11-08 16:59:39 +00:00
dependabot[bot]
6baaf205c8
chore: bump loader-utils from 1.4.0 to 1.4.1 in /site ( #4956 )
...
Bumps [loader-utils](https://github.com/webpack/loader-utils ) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases )
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md )
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.1 )
---
updated-dependencies:
- dependency-name: loader-utils
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-08 10:09:33 -06:00
Presley Pizzo
87b3fe1afb
feat: add "on this page" to empty table message when you're past page 1 ( #4886 )
...
* Use empty page message on workspaces page
* Add prop for story
* AuditPage
* UsersPage
* Lint and format
* Fix tests
* Remove log
* Try to fix story
* Fix the right story
2022-11-08 11:08:51 -05:00
Presley Pizzo and Garrett
f496b149df
feat: add count endpoint for users, enabling better pagination ( #4848 )
...
* Start on backend
* Hook up frontend
* Add to frontend test
* Add go test, wip
* Fix some test bugs
* Fix test
* Format
* Add to authorize.go
* copy user array into local variable
* Authorize route
* Log count error
* Authorize better
* Tweaks to authorization
* More authorization tweaks
* Make gen
* Fix test
Co-authored-by: Garrett <garrett@coder.com >
2022-11-08 10:58:44 -05:00
Bruno Quaresma
e7bd04999f
fix: Optimistically update the UI when a workspace action is triggered ( #4929 )
2022-11-08 09:35:19 -05:00
Marcin Tojek
16384f8594
feat: Add provisioner force-cancel flag ( #4947 )
...
* feat: Add provisionerd force cancel flag
* Golden files
* Fix: typesGenerated.ts
* Use single struct for Provisioner config
2022-11-08 14:19:40 +01:00
Bruno Quaresma
f6130e25b2
refactor: Disable auto-complete for the new user form ( #4933 )
2022-11-08 13:10:25 +00:00
Bruno Quaresma
2af698c43d
refactor: Remove workspace schedule banner ( #4932 )
2022-11-08 10:05:47 -03:00
Colin Adler
50ad4a8535
fix: use backend for /healthz page ( #4938 )
2022-11-07 19:35:52 +00:00