Implement Knowledge City platform, organizer and DAV integration
Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming. Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
This commit is contained in:
1 parent
288e6e94ac
commit
c1175d389f
699 files changed
+110197
-4117
No files matched your search
@@ -44,3 +44,27 @@ func (s *Store) ListObjects() ([]Object, error) {
|
||||
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ListObjectsInDomain returns only Objects with a live semantic binding in the
|
||||
// requested Domain. Authorization of each returned Object remains an HTTP
|
||||
// layer concern because direct Object grants are also supported.
|
||||
func (s *Store) ListObjectsInDomain(domainUUID string) ([]Object, error) {
|
||||
rows, err := s.DB.Query(`
|
||||
SELECT o.uuid, COALESCE(o.kind,''), o.created_at
|
||||
FROM objects o
|
||||
WHERE EXISTS (SELECT 1 FROM paths p WHERE p.domain_uuid=? AND p.object_uuid=o.uuid)
|
||||
ORDER BY o.created_at DESC, o.uuid`, domainUUID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer rows.Close()
|
||||
var out []Object
|
||||
for rows.Next() {
|
||||
var object Object
|
||||
if err := rows.Scan(&object.UUID, &object.Kind, &object.CreatedAt); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
out = append(out, object)
|
||||
}
|
||||
return out, rows.Err()
|
||||
}
|
||||
Reference in new issue
Block a user