Steven Masley
7c8c02733d
chore: disallow sdk imports from the db package, switch enum to string( #14539 )
...
* chore: disallow sdk imports from the db package
* convert to string
2024-09-03 10:32:33 -05:00
dependabot[bot]
48430625a0
ci: bump crate-ci/typos from 1.24.1 to 1.24.3 in the github-actions group ( #14521 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Muhammad Atif Ali <atif@coder.com >
2024-09-03 17:17:12 +05:00
Marcin Tojek
c74fed11ac
fix: add missing down migration ( #14536 )
2024-09-03 13:04:06 +02:00
Danny Kopping
f23a05075e
feat: support optional SMTP auth ( #14533 )
2024-09-03 11:51:34 +02:00
Spike Curtis
0eca1fcb8b
fix: fix TestPendingUpdatesMetric flaky assertion ( #14534 )
2024-09-03 13:47:34 +04:00
dependabot[bot]
2f18f4583b
chore: bump github.com/gohugoio/hugo from 0.131.0 to 0.133.1 ( #14523 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 09:45:36 +00:00
dependabot[bot]
1d331dd049
chore: bump github.com/coder/serpent from 0.7.1-0.20240822034013-1b2301f8c920 to 0.8.0 ( #14522 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 14:32:27 +05:00
dependabot[bot]
aa4a6f89ba
chore: bump github.com/hashicorp/hcl/v2 from 2.21.0 to 2.22.0 ( #14524 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 08:58:58 +00:00
dependabot[bot]
903993a14a
chore: bump github.com/open-policy-agent/opa from 0.67.0 to 0.68.0 ( #14528 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 08:43:51 +00:00
dependabot[bot]
478121df77
chore: bump github.com/prometheus/common from 0.55.0 to 0.57.0 ( #14527 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 08:30:11 +00:00
dependabot[bot]
2368f48c1c
chore: bump google.golang.org/grpc from 1.65.0 to 1.66.0 ( #14525 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 08:17:50 +00:00
dependabot[bot]
4c8a560e19
chore: bump github.com/go-chi/httprate from 0.12.0 to 0.14.1 ( #14503 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 13:03:36 +05:00
Spike Curtis
4eac2acede
fix: stop reporting future licenses as errors ( #14492 )
2024-09-03 09:22:46 +04:00
Spike Curtis
5bd5801286
fix: allow posting licenses that will be valid in future ( #14491 )
2024-09-03 09:09:38 +04:00
Stephen Kirby
0785b77d0b
Minor fixups, added troubleshooting ( #14519 ) ( #14530 )
...
(cherry picked from commit 66c8060605
)
Co-authored-by: Danny Kopping <danny@coder.com >
2024-09-02 14:47:38 -05:00
Danny Kopping
66c8060605
Minor fixups, added troubleshooting ( #14519 )
2024-09-02 16:10:54 +02:00
dependabot[bot]
741d60a25e
chore: bump google.golang.org/api from 0.192.0 to 0.195.0 ( #14504 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 16:16:43 +05:00
dependabot[bot]
3a8424ea23
chore: bump gopkg.in/DataDog/dd-trace-go.v1 from 1.66.0 to 1.67.0 ( #14429 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 15:35:55 +05:00
dependabot[bot]
92253d0f52
chore: bump the emotion group across 1 directory with 2 updates ( #14508 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 15:35:33 +05:00
dependabot[bot]
7d15aad11a
chore: bump eslint-config-next from 14.2.6 to 14.2.7 in /offlinedocs ( #14510 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 15:35:18 +05:00
Ethan
e5d4f3557b
chore: only show license expiry warning for deployment admins ( #14488 )
2024-09-02 17:54:39 +10:00
dependabot[bot]
faf245234f
ci: bump crate-ci/typos from 1.23.6 to 1.24.1 in the github-actions group ( #14431 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 05:22:39 +00:00
dependabot[bot]
c9fcab3717
chore: bump github.com/fergusstrange/embedded-postgres from 1.28.0 to 1.29.0 ( #14430 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 10:15:52 +05:00
dependabot[bot]
ead8fae63d
chore: bump framer-motion from 10.17.6 to 10.18.0 in /offlinedocs ( #14290 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 10:02:00 +05:00
Steven Masley
0ef85147cd
chore: match templates search error with workspace search error ( #14479 )
...
* chore: make templates search error the same as workspaces
2024-08-30 15:14:59 -05:00
Cian Johnston
0f8251be41
feat(coderd/database/dbpurge): retain most recent agent build logs ( #14460 )
...
Updates the `DeleteOldWorkspaceAgentLogs` to:
- Retain logs for the most recent build regardless of age,
- Delete logs for agents that never connected and were created before
the cutoff for deleting logs while still retaining the logs most recent build.
2024-08-30 17:39:09 +01:00
Steven Masley
10c958bba1
chore: implement organization sync and create idpsync package ( #14432 )
...
* chore: implement filters for the organizations query
* chore: implement organization sync and create idpsync package
Organization sync can now be configured to assign users to an org based on oidc claims.
2024-08-30 11:19:36 -05:00
Danny Kopping
043f4f5327
docs: add documentation for notifications feature ( #14478 )
2024-08-30 17:30:06 +02:00
Mathias Fredriksson
13e5c51c30
chore(dogfood): optimize dockerfile for envbuilder cache probing ( #14497 )
2024-08-30 17:54:19 +03:00
Danny Kopping
9596f236c1
fix: use negative deadline to ensure timeout in TestWebhook/timeout
( #14498 )
2024-08-30 16:46:13 +02:00
Danny Kopping
0f414a00d3
fix: restore closing SMTP message on method exit ( #14496 )
2024-08-30 13:03:25 +02:00
Cian Johnston
a74273f1fd
chore(coderd/database/dbpurge): replace usage of time.* with quartz ( #14480 )
...
Related to #10576
This PR introduces quartz to coderd/database/dbpurge and updates the following unit tests to make use of Quartz's functionality:
- TestPurge
- TestDeleteOldWorkspaceAgentLogs
Additionally, updates DeleteOldWorkspaceAgentLogs to replace the hard-coded interval with a parameter passed into the query. This aids in testing and brings us a step towards allowing operators to configure the cutoff interval for workspace agent logs.
2024-08-30 11:55:47 +01:00
Danny Kopping
c90be9b0c1
fix: correctly close SMTP message and await response ( #14495 )
2024-08-30 11:37:50 +02:00
Ethan
851df91991
fix: serve test derp map locally ( #14490 )
2024-08-30 18:43:51 +10:00
Ethan
628750232f
fix: delete workspace agent stats after 180 days ( #14489 )
...
Fixes #13430 .
The test for purging old workspace agent stats from the DB was consistently failing when ran with Postgres towards the end of the month, but not with the in-memory DB.
This was because month intervals are calculated differently for `time.Time` and the `interval` type in Postgres:
```
ethan=# SELECT
'2024-08-30'::DATE AS original_date,
('2024-08-30'::DATE - INTERVAL '6 months') AS sub_date;
original_date | sub_date
---------------+---------------------
2024-08-30 | 2024-02-29 00:00:00
(1 row)
```
Using `func (t Time) AddDate(years int, months int, days int) Time`, where `months` is `-6`:
```
Original: 2024-08-30 00:00:00 +0000 UTC
6 Months Earlier: 2024-03-01 00:00:00 +0000 UTC
```
Since 6 months was chosen arbitrarily, we should be able to change it to 180 days, to remove any ambiguity between the in-memory DB, and the Postgres DB. The alternative solution would involve implementing Postgres' month interval algorithm in Go.
The UI only shows stats as old as 168 days (24 weeks), so a frontend change isn't required for the extra days of stats we lose in some cases.
2024-08-30 18:30:04 +10:00
Kayla Washburn-Love
4672849d05
chore: clean up usage of Object.keys
( #14484 )
2024-08-29 17:21:29 -06:00
Kayla Washburn-Love
d2a22c538b
chore: add more stories and use new groups query for user settings page ( #14481 )
2024-08-29 17:00:12 -06:00
Kayla Washburn-Love
6bc93520c4
fix: fix light mode styles for organization delete button ( #14485 )
2024-08-29 16:10:31 -06:00
Asher
cd38e297b6
fix: make non-existent asset paths return a 404 ( #14472 )
...
Before, if a file was not found we would serve the app.
This would cause either the login page or the workspace
page to load (and consequently error because `assets` is
likely not a valid user).
2024-08-29 13:52:08 -08:00
Asher
ef7fcf3930
fix: include dormant users in template acl query ( #14461 )
...
The issue is that if you add a user and then immediately go to give them
permissions, you can add them but they will not show up in the UI. They
also do not show up in the audit log entry.
2024-08-29 13:48:28 -08:00
Kayla Washburn-Love
49afab12d5
feat: show organization name for groups on user profile ( #14448 )
2024-08-29 10:55:00 -06:00
Ethan
4b5c45d6df
feat(cli): add aws check to ping p2p diagnostics ( #14450 )
2024-08-29 21:41:12 +10:00
Ethan
e65eb0321c
fix: support additional http headers on agent ( #14464 )
2024-08-29 14:15:15 +10:00
Steven Masley
6dbfe6f7ae
chore: remove duplicates using the symmetric difference function ( #14469 )
...
The `SymmetricDifferenceFunc` used to include duplicates, which was incorrect.
2024-08-28 21:06:27 -05:00
Jaayden Halko
15d74a11a0
feat: improve custom roles create/edit page ( #14456 )
...
* fix: improve show/hide checkbox text
* feat: add parent checkbox for grouped resource permissions
* fix: align action list item to a grid
* chore: add additional tests
* fix: format
2024-08-28 18:13:33 -04:00
dependabot[bot]
f3ea740b27
chore: bump next from 14.2.4 to 14.2.7 in /offlinedocs ( #14473 )
...
Bumps [next](https://github.com/vercel/next.js ) from 14.2.4 to 14.2.7.
- [Release notes](https://github.com/vercel/next.js/releases )
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js )
- [Commits](https://github.com/vercel/next.js/compare/v14.2.4...v14.2.7 )
---
updated-dependencies:
- dependency-name: next
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-28 14:20:04 -06:00
Steven Masley
b96ac677f1
chore: add organization search query to workspaces ( #14474 )
...
* chore: add organization search query to workspaces
2024-08-28 15:18:45 -05:00
Steven Masley
54fe082551
chore: implement filters for the organizations query ( #14468 )
...
Required for organization sync. Allows fetching a filtered set of orgs.
2024-08-28 13:24:28 -05:00
dependabot[bot]
7667d64686
chore: bump the mui group across 1 directory with 6 updates ( #14400 )
...
* chore: bump the mui group across 1 directory with 6 updates
Bumps the mui group with 6 updates in the /site directory:
| Package | From | To |
| --- | --- | --- |
| [@mui/icons-material](https://github.com/mui/material-ui/tree/HEAD/packages/mui-icons-material ) | `5.16.0` | `5.16.7` |
| [@mui/lab](https://github.com/mui/material-ui/tree/HEAD/packages/mui-lab ) | `5.0.0-alpha.129` | `5.0.0-alpha.173` |
| [@mui/material](https://github.com/mui/material-ui/tree/HEAD/packages/mui-material ) | `5.16.0` | `5.16.7` |
| [@mui/system](https://github.com/mui/material-ui/tree/HEAD/packages/mui-system ) | `5.16.0` | `5.16.7` |
| [@mui/utils](https://github.com/mui/material-ui/tree/HEAD/packages/mui-utils ) | `5.16.0` | `5.16.6` |
| [@mui/x-tree-view](https://github.com/mui/mui-x/tree/HEAD/packages/x-tree-view ) | `7.9.0` | `7.13.0` |
Updates `@mui/icons-material` from 5.16.0 to 5.16.7
- [Release notes](https://github.com/mui/material-ui/releases )
- [Changelog](https://github.com/mui/material-ui/blob/v5.16.7/CHANGELOG.md )
- [Commits](https://github.com/mui/material-ui/commits/v5.16.7/packages/mui-icons-material )
Updates `@mui/lab` from 5.0.0-alpha.129 to 5.0.0-alpha.173
- [Release notes](https://github.com/mui/material-ui/releases )
- [Changelog](https://github.com/mui/material-ui/blob/next/CHANGELOG.md )
- [Commits](https://github.com/mui/material-ui/commits/HEAD/packages/mui-lab )
Updates `@mui/material` from 5.16.0 to 5.16.7
- [Release notes](https://github.com/mui/material-ui/releases )
- [Changelog](https://github.com/mui/material-ui/blob/v5.16.7/CHANGELOG.md )
- [Commits](https://github.com/mui/material-ui/commits/v5.16.7/packages/mui-material )
Updates `@mui/system` from 5.16.0 to 5.16.7
- [Release notes](https://github.com/mui/material-ui/releases )
- [Changelog](https://github.com/mui/material-ui/blob/v5.16.7/CHANGELOG.md )
- [Commits](https://github.com/mui/material-ui/commits/v5.16.7/packages/mui-system )
Updates `@mui/utils` from 5.16.0 to 5.16.6
- [Release notes](https://github.com/mui/material-ui/releases )
- [Changelog](https://github.com/mui/material-ui/blob/v5.16.6/CHANGELOG.md )
- [Commits](https://github.com/mui/material-ui/commits/v5.16.6/packages/mui-utils )
Updates `@mui/x-tree-view` from 7.9.0 to 7.13.0
- [Release notes](https://github.com/mui/mui-x/releases )
- [Changelog](https://github.com/mui/mui-x/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mui/mui-x/commits/v7.13.0/packages/x-tree-view )
---
updated-dependencies:
- dependency-name: "@mui/icons-material"
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: mui
- dependency-name: "@mui/lab"
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: mui
- dependency-name: "@mui/material"
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: mui
- dependency-name: "@mui/system"
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: mui
- dependency-name: "@mui/utils"
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: mui
- dependency-name: "@mui/x-tree-view"
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: mui
...
Signed-off-by: dependabot[bot] <support@github.com >
* Fix breaking changes
* Fix fmt
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: BrunoQuaresma <bruno_nonato_quaresma@hotmail.com >
2024-08-28 15:19:05 -03:00
Danny Kopping
f24cb5cc96
fix: prevent test flakiness ( #14467 )
...
Signed-off-by: Danny Kopping <danny@coder.com >
2024-08-28 16:33:27 +02:00