Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/hashicorp-forge/hermes
/ functions
Functions
1,102 in github.com/hashicorp-forge/hermes
⨍
Functions
1,102
◇
Types & classes
995
↓ 409 callers
Method
set
(key: string, value: T)
web/types/ember-cli-mirage/test-support.d.ts:9
↓ 382 callers
Method
Errorf
(string, ...interface{})
internal/api/helpers.go:123
↓ 265 callers
Method
Run
Run runs the indexer. TODO: improve error handling.
internal/indexer/indexer.go:206
↓ 85 callers
Method
Errorf
(string, ...interface{})
internal/api/v2/helpers.go:124
↓ 68 callers
Method
Get
FirstOrCreate finds the first document by Google file ID or creates a new record if it does not exist. func (d *Document) FirstOrCreate(db *gorm.DB) e
pkg/models/document.go:197
↓ 55 callers
Function
htmlElement
(selector: string)
web/app/utils/html-element.ts:3
↓ 53 callers
Method
Get
Get gets a user from database db by email address, and assigns it to the receiver.
pkg/models/user.go:83
↓ 50 callers
Method
update
(params: Partial<DocumentsRouteParams | ResultsRouteParams>)
web/app/services/active-filters.ts:30
↓ 47 callers
Method
fetch
(url: string, options: FetchOptions = {}, isPollCall = false)
web/app/services/fetch.ts:39
↓ 43 callers
Function
setupTest
(t *testing.T, dsn string)
pkg/models/testing.go:12
↓ 40 callers
Method
Create
Create creates a document in database db.
pkg/models/document.go:109
↓ 39 callers
Function
cleanString
(string: string)
web/app/utils/clean-string.ts:3
↓ 36 callers
Method
filter
* The label of the filter. * If it's a project status, we capitalize it.
web/app/components/header/active-filter-list-item.ts:22
↓ 35 callers
Method
FirstOrCreate
FirstOrCreate finds the first user by email address or creates a user record if it does not exist in database db. The result is saved back to the rece
pkg/models/user.go:54
↓ 33 callers
Method
get
(key: string)
web/types/ember-cli-mirage/test-support.d.ts:11
↓ 32 callers
Function
createTextCellRequests
createTextCellRequests creates a slice of Google Docs requests for header table cells consisting of `cellName: cellVal`.
pkg/hashicorpdocs/rfc_replace_header.go:747
↓ 31 callers
Method
FirstOrCreate
FirstOrCreate finds the first product by name or creates a record if it does not exist in database db.
pkg/models/product.go:26
↓ 27 callers
Method
FirstOrCreate
FirstOrCreate finds the first document type by name or creates a new record if it does not exist.
pkg/models/document_type.go:54
↓ 26 callers
Method
Find
Find finds all document reviews with the provided query, and assigns them to the receiver.
pkg/models/document_review.go:60
↓ 23 callers
Method
Upsert
Upsert updates or inserts the receiver document into database db.
pkg/models/document.go:474
↓ 22 callers
Method
String
()
pkg/models/project.go:61
↓ 20 callers
Method
Create
Create creates a new project. The resulting project is saved back to the receiver.
pkg/models/project.go:78
↓ 19 callers
Method
route
* The route passed to Ember's <LinkTo> component. * Uses the passed-in value or the current route name.
web/app/components/x/dropdown-list/link-to.ts:29
↓ 17 callers
Method
Get
Get gets a product from database db by name, and assigns it back to the receiver.
pkg/models/product.go:49
↓ 16 callers
Method
Find
Find finds all documents from database db with the provided query, and assigns them to the receiver.
pkg/models/document.go:177
↓ 16 callers
Method
ToAlgoliaObject
ToAlgoliaObject converts a document to a document Algolia object.
pkg/document/document.go:398
↓ 16 callers
Function
authenticateTestUser
(mirageContext: MirageTestContext)
web/mirage/utils.ts:108
↓ 15 callers
Function
revertReviewsPost
revertReviewsPost attempts to revert the actions that occur when a review is created. This is to be used in the case of an error during the review- cr
internal/api/v2/reviews.go:872
↓ 14 callers
Method
error
(error: unknown)
web/app/routes/application.ts:25
↓ 14 callers
Function
getProductId
(productName?: string)
web/app/utils/get-product-id.ts:1
↓ 14 callers
Method
maybeLockDoc
(error: Error)
web/app/components/document/sidebar.ts:605
↓ 13 callers
Method
Get
Get gets a project by ID.
pkg/models/project.go:119
↓ 13 callers
Method
Update
Update updates a project. The resulting project is saved back to the receiver.
pkg/models/project.go:239
↓ 13 callers
Method
Upsert
Upsert updates or inserts the receiver user into database db.
pkg/models/user.go:91
↓ 13 callers
Function
getEnv
(key, defaultValue)
web/config/environment.js:3
↓ 13 callers
Method
reset
()
web/app/services/active-filters.ts:39
↓ 12 callers
Method
ReplaceHeader
(fileID, baseURL string, isDraft bool, s *gw.Service)
pkg/hashicorpdocs/common.go:39
↓ 12 callers
Function
StringSliceContains
StringSliceContains returns true if a string is present in a slice of strings.
internal/helpers/helpers.go:18
↓ 12 callers
Function
parseDate
( time?: string | number | Date, monthFormat: "short" | "long" = "short", )
web/app/utils/parse-date.ts:6
↓ 12 callers
Function
setupProductIndex
(mirage: MirageTestContext)
web/tests/mirage-helpers/utils.ts:8
↓ 11 callers
Method
SearchPeople
SearchPeople searches the Google People API.
pkg/googleworkspace/people_helpers.go:11
↓ 11 callers
Function
decodeRequest
decodeRequest decodes the JSON contents of a HTTP request body to a request struct. An error is returned if the request contains fields that do not ex
internal/api/v2/helpers.go:57
↓ 11 callers
Method
showFlashError
(error: Error, title: string)
web/app/components/document/sidebar.ts:611
↓ 11 callers
Function
timeAgo
( timeInSeconds?: number, options?: { limitTo24Hours?: boolean; }, )
web/app/utils/time-ago.ts:8
↓ 10 callers
Method
GetFile
GetFile returns a Google Drive file.
pkg/googleworkspace/drive_helpers.go:107
↓ 10 callers
Function
NewFromAlgoliaObject
NewFromAlgoliaObject creates a document from a document Algolia object.
pkg/document/document.go:149
↓ 10 callers
Method
ShareFile
ShareFile shares a Google Drive file with a user.
pkg/googleworkspace/drive_helpers.go:363
↓ 10 callers
Function
contains
contains returns true if a string is present in a slice of strings.
internal/api/v2/helpers.go:22
↓ 10 callers
Function
createTextCellRequests
createTextCellRequests creates a slice of Google Docs requests for header table cells consisting of `cellName: cellVal`.
pkg/document/replace_header.go:788
↓ 10 callers
Function
revertReviewCreation
revertReviewCreation attempts to revert the actions that occur when a review is created. This is to be used in the case of an error during the review-
internal/api/reviews.go:702
↓ 9 callers
Function
CompareAlgoliaAndDatabaseDocument
CompareAlgoliaAndDatabaseDocument compares data for a document stored in Algolia and the database to determine any inconsistencies, which are returned
internal/api/v2/helpers.go:129
↓ 9 callers
Method
Find
Find finds all document group reviews with the provided query, and assigns them to the receiver.
pkg/models/document_group_review.go:51
↓ 9 callers
Function
compareAlgoliaAndDatabaseDocument
compareAlgoliaAndDatabaseDocument compares data for a document stored in Algolia and the database to determine any inconsistencies, which are returned
internal/api/helpers.go:128
↓ 9 callers
Method
hideContent
()
web/app/components/floating-u-i/index.ts:71
↓ 9 callers
Function
parseParagraphWithEmails
parseParagraphWithEmails parses a Google Doc paragraph containing email addresses.
pkg/hashicorpdocs/rfc.go:412
↓ 9 callers
Method
resetFocusedItemIndex
()
web/app/components/x/dropdown-list/index.ts:402
↓ 8 callers
Method
Delete
Delete deletes a document in database db.
pkg/models/document.go:150
↓ 8 callers
Method
RenameFile
RenameFile renames a Google Drive file.
pkg/googleworkspace/drive_helpers.go:350
↓ 8 callers
Method
Upsert
Upsert updates or inserts the receiver document into database db.
pkg/models/product_latest_document_number.go:56
↓ 8 callers
Method
UpsertCustomField
(cf CustomField)
pkg/document/document.go:634
↓ 8 callers
Function
getStringValue
(in map[string]any, key string)
internal/api/helpers.go:589
↓ 8 callers
Function
getStringValue
(in map[string]any, key string)
internal/api/v2/helpers.go:611
↓ 8 callers
Method
isDisabled
()
web/app/components/header/facet-dropdown.ts:14
↓ 7 callers
Method
Get
Get gets the document review from database db, and assigns it to the receiver.
pkg/models/document_review.go:111
↓ 7 callers
Method
Get
Get gets a document type from database db by document type name, and assigns it to the receiver.
pkg/models/document_type.go:63
↓ 7 callers
Method
Get
Get gets the indexer folder and assigns it to the receiver.
pkg/models/indexer_folder.go:25
↓ 7 callers
Method
GetDoc
GetDoc gets a Google Doc.
pkg/googleworkspace/docs_helpers.go:11
↓ 7 callers
Function
NewFromDatabaseModel
NewFromDatabaseModel creates a document from a document database model.
pkg/document/document.go:240
↓ 7 callers
Function
assertReordered
(expectedOrder: string[])
web/tests/acceptance/authenticated/projects/project-test.ts:474
↓ 7 callers
Function
decodeRequest
decodeRequest decodes the JSON contents of a HTTP request body to a request struct. An error is returned if the request contains fields that do not ex
internal/api/helpers.go:56
↓ 7 callers
Function
getFacetsFromHits
(facetNames: string[], hits: any[])
web/mirage/algolia/utils.ts:20
↓ 7 callers
Function
pushMirageIntoStore
(context: MirageTestContext)
web/mirage/utils.ts:68
↓ 6 callers
Method
Create
Create creates a file revision for a document. Required fields in the receiver: - Document ID or Google File ID - Google Drive file revision ID - Name
pkg/models/document_file_revision.go:36
↓ 6 callers
Method
Get
Get gets the document group review from database db, and assigns it to the receiver.
pkg/models/document_group_review.go:104
↓ 6 callers
Function
GetLatestProductNumber
GetLatestProductNumber gets the latest document number for a product.
pkg/models/document.go:234
↓ 6 callers
Method
GetLatestRevision
GetLatestRevision returns the latest revision for a Google Drive file.
pkg/googleworkspace/drive_helpers.go:167
↓ 6 callers
Method
KeepRevisionForever
KeepRevisionForever keeps a Google Drive file revision forever.
pkg/googleworkspace/drive_helpers.go:233
↓ 6 callers
Method
MoveFile
MoveFile moves a Google Drive file to a different folder.
pkg/googleworkspace/drive_helpers.go:327
↓ 6 callers
Method
SendEmail
SendEmail sends an email.
pkg/googleworkspace/gmail_helpers.go:12
↓ 6 callers
Method
SetFileRevision
(string, string)
pkg/hashicorpdocs/common.go:46
↓ 6 callers
Method
Upsert
Upsert updates or inserts the receiver indexer folder into database db.
pkg/models/indexer_folder.go:44
↓ 6 callers
Function
contains
contains returns true if a string is present in a slice of strings.
pkg/hashicorpdocs/rfc_replace_header.go:799
↓ 6 callers
Function
contains
contains returns true if a string is present in a slice of strings.
internal/api/helpers.go:21
↓ 6 callers
Method
getErrorCode
* Returns the error code from a message that starts with `BAD_RESPONSE_LABEL`. * Used to by consuming components to triage errors.
web/app/services/fetch.ts:25
↓ 6 callers
Function
getStringSliceValue
(in map[string]any, key string)
internal/api/helpers.go:603
↓ 6 callers
Function
getStringSliceValue
(in map[string]any, key string)
internal/api/v2/helpers.go:625
↓ 6 callers
Method
refreshRoute
()
web/app/components/document/sidebar.ts:589
↓ 6 callers
Method
showContent
()
web/app/components/floating-u-i/index.ts:67
↓ 5 callers
Method
Create
(db *gorm.DB)
pkg/models/project_related_resource_hermes_document.go:20
↓ 5 callers
Method
Create
(db *gorm.DB)
pkg/models/document_related_resource_hermes_document.go:19
↓ 5 callers
Method
FirstOrCreate
FirstOrCreate finds the first group by email address or creates a group record if it does not exist in database db. The result is saved back to the re
pkg/models/group.go:20
↓ 5 callers
Method
GetProjects
GetProjects gets all projects associated with document d.
pkg/models/document.go:282
↓ 5 callers
Method
ReplaceRelatedResources
ReplaceRelatedResources replaces related resources for project p.
pkg/models/project.go:177
↓ 5 callers
Method
ServeHTTP
(http.ResponseWriter, *http.Request)
internal/cmd/commands/server/server.go:330
↓ 5 callers
Method
Upsert
Upsert updates or inserts the receiver into database db.
pkg/models/document_type_custom_field.go:70
↓ 5 callers
Function
UpsertStringDocumentCustomField
UpsertStringDocumentCustomField upserts a string document custom field with the provided document type name (documentTypeName), document type custom f
pkg/models/document_custom_field.go:63
↓ 5 callers
Function
UpsertStringSliceDocumentCustomField
UpsertStringSliceDocumentCustomField upserts a string slice document custom field with the provided document type name (documentTypeName), document ty
pkg/models/document_custom_field.go:123
↓ 5 callers
Function
assertIconSize
(containerClass: string, size: string)
web/tests/integration/components/person/avatar-test.ts:42
↓ 5 callers
Method
close
()
web/app/components/modals/draft-created.ts:31
↓ 5 callers
Function
compareSlices
compareSlices compares the first slice with the second and returns the elements that exist in the second slice that don't exist in the first
internal/api/v2/helpers.go:34
next →
1–100 of 1,102, ranked by callers