mattermost/server/channels/store
Jesse Hallam 07ba32e849
Some checks failed
API / build (push) Has been cancelled
Server CI / Compute Go Version (push) Has been cancelled
Web App CI / check-lint (push) Has been cancelled
Server CI / Check mocks (push) Has been cancelled
Server CI / Check go mod tidy (push) Has been cancelled
Server CI / check-style (push) Has been cancelled
Server CI / Check serialization methods for hot structs (push) Has been cancelled
Server CI / Vet API (push) Has been cancelled
Server CI / Check migration files (push) Has been cancelled
Server CI / Generate email templates (push) Has been cancelled
Server CI / Check store layers (push) Has been cancelled
Server CI / Check mmctl docs (push) Has been cancelled
Server CI / Postgres with binary parameters (push) Has been cancelled
Server CI / Postgres (push) Has been cancelled
Server CI / Postgres (FIPS) (push) Has been cancelled
Server CI / Generate Test Coverage (push) Has been cancelled
Server CI / Run mmctl tests (push) Has been cancelled
Server CI / Run mmctl tests (FIPS) (push) Has been cancelled
Server CI / Build mattermost server app (push) Has been cancelled
Web App CI / check-i18n (push) Has been cancelled
Web App CI / check-types (push) Has been cancelled
Web App CI / test (platform) (push) Has been cancelled
Web App CI / test (mattermost-redux) (push) Has been cancelled
Web App CI / test (channels shard 1/4) (push) Has been cancelled
Web App CI / test (channels shard 2/4) (push) Has been cancelled
Web App CI / test (channels shard 3/4) (push) Has been cancelled
Web App CI / test (channels shard 4/4) (push) Has been cancelled
Web App CI / upload-coverage (push) Has been cancelled
Web App CI / build (push) Has been cancelled
MM-62151 avoid select * for post store (#34709)
* fix SELECT * in user_store.go

* MM-62151: Avoid SELECT * in post store SQL queries

Replace all SELECT * patterns in post_store.go with explicit column
specifications using postSliceColumns() and postSliceColumnsWithName()
helper functions. This prevents unnecessary data transfer and protects
against schema changes.

Changes:
- Use Squirrel's .Column() method for cleaner query building
- Remove unqueryvet linter exception for post_store.go
- Fix 11 SELECT * occurrences in various query methods

* leverage postsQuery where we can

* more builder simplifications

* add noSelectStar to linter

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2026-01-09 18:23:16 +00:00
..
layer_generators Use golangci-lints's build-in modernize linter (#34341) 2025-11-04 12:09:11 +01:00
localcachelayer [MM-61758] Burn on read feature (#34703) 2025-12-11 07:59:50 +01:00
retrylayer MM-65960: Avoid replica race lag when accessing TelemetryID (#34586) 2025-12-11 17:34:36 -04:00
searchlayer [MM-61758] Burn on read feature (#34703) 2025-12-11 07:59:50 +01:00
searchtest MM-61407: Remove Bleve (#33430) 2025-07-31 09:35:29 +05:30
sqlstore MM-62151 avoid select * for post store (#34709) 2026-01-09 18:23:16 +00:00
storetest Filter burn on read posts from search results (#34747) 2025-12-17 16:23:26 +01:00
timerlayer MM-65960: Avoid replica race lag when accessing TelemetryID (#34586) 2025-12-11 17:34:36 -04:00
.mockery.yaml Migrate mockery to packages feature (#29013) 2024-11-07 12:48:11 +01:00
constants.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
context.go Standardize request.CTX parameter naming to rctx (#33499) 2025-09-10 15:11:32 +02:00
context_test.go MM-60441: Re-index public channels when a user joins a team (#33400) 2025-08-25 19:28:19 +02:00
doc.go Add comprehensive documentation for server/channels layers (#33449) 2025-07-22 11:53:42 +02:00
errors.go [MM-61758] Burn on read feature (#34703) 2025-12-11 07:59:50 +01:00
errors_test.go [MM-58020] Improve error message of NotFound errors in store (#26870) 2024-05-07 15:30:48 +02:00
store.go MM-65960: Avoid replica race lag when accessing TelemetryID (#34586) 2025-12-11 17:34:36 -04:00