Muhammad Atif Ali and Mathias Fredriksson
de6d4794dc
chore(dogfood): replace repo_dir with base_repo_dir in git-clone module ( #11835 )
...
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
2024-01-27 01:45:07 +00:00
Kayla Washburn-Love
bb8ce7bc02
chore: move components/Resources to modules/resources ( #11852 )
2024-01-26 15:11:07 -07:00
Kayla Washburn-Love
8f46beef72
chore: remove most usage of PropsWithChildren ( #11859 )
2024-01-26 12:04:22 -07:00
Kayla Washburn-Love
c2b6e204f3
fix: type error from theme update ( #11844 )
2024-01-26 10:56:19 -07:00
Kayla Washburn-Love
c85fc3c8fe
refactor: add more fill variants to the experimental theme ( #11827 )
2024-01-26 10:28:59 -07:00
Cian Johnston
42e997d39e
fix(coderd/rbac): do not cache context cancellation errors ( #11840 )
...
#7439 added global caching of RBAC results.
Calls are cached based on hash(subject, object, action).
We often use dbauthz.AsSystemRestricted to handle "internal" authz calls, and these are often repeated with similar arguments and are likely to get cached.
So a transient error doing an authz check on a system function will be cached for up to a minute.
I'm just starting off with excluding context.Canceled but there's likely a whole suite of different errors we want to also exclude from the global cache.
2024-01-26 16:19:55 +00:00
Spike Curtis
d6baa3cab0
fix: stop running tests that exec sh scripts in parallel ( #11834 )
...
Ok, so my last attempt at a fix here failed
https://github.com/coder/coder/actions/runs/7666229961/job/20893608286
I have a new theory: it's not the `terraform` binary that's busy, it's actually `fake_cancel.sh` and it gets marked busy when we `exec` it from the script we write.
Use of `exec` also replaces the executing code in place, rather than starting a new process/shell, so that's why the error we get says `terraform` is busy.
2024-01-26 19:22:35 +04:00
Bruno Quaresma
0ba035a16d
refactor(site): improve parameters field ( #11802 )
2024-01-26 11:31:52 -03:00
Kira Pilot
4c71cccbc3
fix(site): disable autostart and autostop according to template settings ( #11809 )
...
* fix (site): disable autostart and autostop according to template settings
* checking form values again; wrote tests
* fixed closure and label bugs
* fix broken query key
* tweaks
2024-01-26 09:06:01 -05:00
Mathias Fredriksson
52c08a98bb
test(scaletest): fix worksapcebuild retry ( #11836 )
2024-01-26 15:49:19 +02:00
Mathias Fredriksson
02124758fb
feat(cli/exp): extend scaletest create-workspaces with --retry option ( #11825 )
...
Part of #11801
2024-01-26 11:29:48 +00:00
Cian Johnston
fdf9f03097
fix(enterprise/cli): add ID to default columns in licenses list output ( #11823 )
2024-01-26 09:55:16 +00:00
Dean Sheather
29707099d7
chore: add agentapi tests ( #11269 )
2024-01-26 07:04:19 +00:00
Muhammad Atif Ali
541154b74b
docs: simplify JFrog integration docs ( #11787 )
2024-01-25 19:50:06 -05:00
Steven Masley
005c014f13
chore: instrument additional github api calls ( #11824 )
...
* chore: instrument additional githubapi calls
This only affects github as a login source, not external auth.
2024-01-25 18:34:46 -06:00
Bruno Quaresma
e371716b38
refactor(site): add minor workspace improvements ( #11822 )
2024-01-25 21:05:29 -03:00
Kayla Washburn-Love
73a6899f2c
chore: miscellaneous cleanup ( #11785 )
2024-01-25 14:22:52 -07:00
Ammar Bandukwala
79568bf628
Revert "fix: always attempt external auth refresh when fetching ( #11762 )"
...
This reverts commit 0befc0826a .
2024-01-25 14:22:47 -06:00
Steven Masley
0befc0826a
fix: always attempt external auth refresh when fetching ( #11762 )
...
* fix: always attempt external auth refresh when fetching
* refactor validate to check expiry when considering "valid"
2024-01-25 10:54:56 -06:00
Bruno Quaresma
fd7f85bc5e
fix(site): fix proxy settings link ( #11817 )
2024-01-25 12:16:24 +00:00
Cian Johnston
8eae4f83bf
fix(coderd/provisionerdserver): fix test flake in TestHeartbeat ( #11808 )
2024-01-25 12:05:57 +00:00
Muhammad Atif Ali
979a920832
docs: use coder modules in offline deployments ( #11788 )
...
* docs: use coder modules in offline deployments
* fix typos
* Update offline installation instructions with Artifactory support for Coder modules
* Review suggestions
2024-01-25 08:01:56 +03:00
Ben Potter
6b0e1291d2
docs: add v2.7.3 changelog ( #11811 )
...
* docs: add v2.7.1 changelog
* docs: add v2.7.2 changelog
2024-01-24 16:53:08 -06:00
Kayla Washburn-Love
3d76e1b55c
chore: clean up package.json and tsconfig ( #11757 )
2024-01-24 13:53:44 -07:00
Cian Johnston
ecae6f9135
fix(enterprise/tailnet): handle query canceled error in sendBeat() ( #11794 )
2024-01-24 18:42:05 +00:00
Bruno Quaresma
8bc91b489e
refactor(site): increase form fields gap ( #11803 )
2024-01-24 14:16:42 -03:00
Marcin Tojek
560e8cc1ae
fix: check update permission to start workspace ( #11798 )
2024-01-24 17:18:03 +01:00
Cian Johnston
4616ccf462
fix(coderd): alter return signature of convertWorkspace, add check for requesterID ( #11796 )
2024-01-24 14:13:14 +00:00
Cian Johnston
70dc282b7d
feat(cli): add favorite/unfavorite commands ( #11793 )
2024-01-24 14:05:39 +00:00
Cian Johnston
f92336c4d5
feat(coderd): allow workspace owners to mark workspaces as favorite ( #11791 )
...
- Adds column `favorite` to workspaces table
- Adds API endpoints to favorite/unfavorite workspaces
- Modifies sorting order to return owners' favorite workspaces first
2024-01-24 13:39:19 +00:00
Bruno Quaresma
6145da8a9e
refactor(site): verify external auth before display ws form ( #11777 )
2024-01-24 09:45:22 -03:00
Spike Curtis
5cbb76b47a
fix: stop spamming DERP map updates for equivalent maps ( #11792 )
...
Fixes 2 related issues:
1. wsconncache had incorrect logic to test whether to send DERPMap updates, sending if the maps were equivalent, instead of if they were _not equivalent_.
2. configmaps used a bugged check to test equality between DERPMaps, since it contains a map and the map entries are serialized in random order. Instead, we avoid comparing the protobufs and instead depend on the existing function that compares `tailcfg.DERPMap`. This also has the effect of reducing the number of times we convert to and from protobuf.
2024-01-24 16:27:15 +04:00
Spike Curtis
f5dbc718a7
fix: accept agent RPC connection without version query parameter ( #11790 )
...
Fixes an issue where Coder v2.7.1 agents connect to /api/v2/workspaceagents/me/rpc without a version query parameter
2024-01-24 09:10:16 +04:00
Colin Adler
13beb04521
fix: disable keepalives in workspaceapps transport ( #11789 )
...
Connection caching causes requests to hit the wrong workspaces. See
comment.
Fixes https://github.com/coder/coder/issues/11767
2024-01-24 14:46:59 +10:00
Muhammad Atif Ali
1e2634d2d0
chore(dogfood): use versioning for coder modules ( #11774 )
2024-01-24 01:33:25 +00:00
Kayla Washburn-Love
31a6a5dc6d
chore: add stories for DropdownArrow ( #11764 )
2024-01-23 16:02:57 -07:00
Jon Ayers
383eed93f8
fix: use correct logger for lifecycle_executor ( #11763 )
2024-01-23 14:33:55 -06:00
Bruno Quaresma
e828daba6e
refactor(site): simplify create workspace form ( #11771 )
...
This is the first PR of a series of PRs trying to simplify and improve the create workspace flow.
- Use the existent template header and remove the selected template card
- Move the owner field to the general section so we don't have "anemic" sections with single fields
Before:
<img width="1512" alt="Screenshot 2024-01-23 at 10 22 45" src="https://github.com/coder/coder/assets/3165839/6a2ba6b4-9ffb-4576-9282-7901691f45ee ">
Now:
<img width="1512" alt="Screenshot 2024-01-23 at 10 22 56" src="https://github.com/coder/coder/assets/3165839/84301548-4af9-4de0-96ff-2a6363fc8cf7 ">
2024-01-23 15:39:23 -03:00
Steven Masley
d6ba0dfecb
feat: add "updated" search param to workspaces ( #11714 )
...
* feat: add "updated" search param to workspaces
* rego -> sql needs to specify which <table>.organization_id
2024-01-23 11:52:06 -06:00
Steven Masley
081fbef097
fix: code-server path based forwarding, defer to code-server ( #11759 )
...
Do not attempt to construct a path based port forward url.
Always defer to code server, as it has it's own proxy method.
2024-01-23 11:36:44 -06:00
Marcin Tojek
77a4792ecd
fix(cli): ssh: auto-update workspace ( #11773 )
2024-01-23 18:01:44 +01:00
Bruno Quaresma
369821ea19
feat(site): generates unique workspace names by default ( #11772 )
2024-01-23 15:55:29 +00:00
Bruno Quaresma
910f17f4e7
refactor(site): refactor external auth component ( #11758 )
...
Recommended improvements:
- Rename component for clarity
- Simplify interface for contextual relevance
- Handle polling errors based on section, not every button
Before:
<img width="1511" alt="Screenshot 2024-01-22 at 15 24 26" src="https://github.com/coder/coder/assets/3165839/cfb8c0bc-f5a2-4708-bd97-fdfc46bd1eee ">
Now:
<img width="1512" alt="Screenshot 2024-01-22 at 15 24 41" src="https://github.com/coder/coder/assets/3165839/5aaad448-1bb2-45ea-9250-cd374a072be2 ">
2024-01-23 12:26:12 -03:00
Spike Curtis
059e533544
feat: agent uses Tailnet v2 API for DERPMap updates ( #11698 )
...
Switches the Agent to use Tailnet v2 API to get DERPMap updates.
Subsequent PRs will do the same for the CLI (`codersdk`) and `wsproxy`.
2024-01-23 14:42:07 +04:00
Spike Curtis
3e0e7f8739
feat: check agent API version on connection ( #11696 )
...
fixes #10531
Adds a check for `version` on connection to the Agent API websocket endpoint. This is primarily for future-proofing, so that up-level agents get a sensible error if they connect to a back-level Coderd.
It also refactors the location of the `CurrentVersion` variables, to be part of the `proto` packages, since the versions refer to the APIs defined therein.
2024-01-23 14:27:49 +04:00
Spike Curtis
eb12fd7d92
feat: make ServerTailnet set peers lost when it reconnects to the coordinator ( #11682 )
...
Adds support to `ServerTailnet` to set all peers lost before attempting to reconnect to the coordinator. In practice, this only really affects `wsproxy` since coderd has a local connection to the coordinator that only goes down if we're shutting down or change licenses.
2024-01-23 13:17:56 +04:00
dependabot[bot]
f86186eef2
chore: bump github.com/hashicorp/terraform-json from 0.20.0 to 0.21.0 ( #11738 )
...
Bumps [github.com/hashicorp/terraform-json](https://github.com/hashicorp/terraform-json ) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/hashicorp/terraform-json/releases )
- [Commits](https://github.com/hashicorp/terraform-json/compare/v0.20.0...v0.21.0 )
---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-json
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 09:46:11 +03:00
Ben Potter
18d43405c0
chore: change SSH wording on workspace page ( #11702 )
2024-01-23 09:45:44 +03:00
dependabot[bot]
ca38bfd2fc
ci: bump the github-actions group with 2 updates ( #11745 )
...
Bumps the github-actions group with 2 updates: [crate-ci/typos](https://github.com/crate-ci/typos ) and [toshimaru/auto-author-assign](https://github.com/toshimaru/auto-author-assign ).
Updates `crate-ci/typos` from 1.17.1 to 1.17.2
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.17.1...v1.17.2 )
Updates `toshimaru/auto-author-assign` from 2.0.1 to 2.1.0
- [Release notes](https://github.com/toshimaru/auto-author-assign/releases )
- [Changelog](https://github.com/toshimaru/auto-author-assign/blob/main/CHANGELOG.md )
- [Commits](https://github.com/toshimaru/auto-author-assign/compare/v2.0.1...v2.1.0 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: toshimaru/auto-author-assign
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 09:43:02 +03:00
Stephen Kirby
91a8b1b886
chore: fix broken docs links ( #11760 )
...
* fixed broken install/packages.md link
* fixed broken docs links
* fixed admin/auth link
* fixed example-guide links
* replaced mitchell tweet with nix docs
* make fmt
* replaced private image with imgur
2024-01-22 18:45:34 -06:00