MCPcopy Index your code

hub / github.com/hashicorp-forge/hermes / functions

Functions1,102 in github.com/hashicorp-forge/hermes

↓ 409 callersMethodset
(key: string, value: T)
web/types/ember-cli-mirage/test-support.d.ts:9
↓ 382 callersMethodErrorf
(string, ...interface{})
internal/api/helpers.go:123
↓ 265 callersMethodRun
Run runs the indexer. TODO: improve error handling.
internal/indexer/indexer.go:206
↓ 85 callersMethodErrorf
(string, ...interface{})
internal/api/v2/helpers.go:124
↓ 68 callersMethodGet
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 callersFunctionhtmlElement
(selector: string)
web/app/utils/html-element.ts:3
↓ 53 callersMethodGet
Get gets a user from database db by email address, and assigns it to the receiver.
pkg/models/user.go:83
↓ 50 callersMethodupdate
(params: Partial<DocumentsRouteParams | ResultsRouteParams>)
web/app/services/active-filters.ts:30
↓ 47 callersMethodfetch
(url: string, options: FetchOptions = {}, isPollCall = false)
web/app/services/fetch.ts:39
↓ 43 callersFunctionsetupTest
(t *testing.T, dsn string)
pkg/models/testing.go:12
↓ 40 callersMethodCreate
Create creates a document in database db.
pkg/models/document.go:109
↓ 39 callersFunctioncleanString
(string: string)
web/app/utils/clean-string.ts:3
↓ 36 callersMethodfilter
* 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 callersMethodFirstOrCreate
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 callersMethodget
(key: string)
web/types/ember-cli-mirage/test-support.d.ts:11
↓ 32 callersFunctioncreateTextCellRequests
createTextCellRequests creates a slice of Google Docs requests for header table cells consisting of `cellName: cellVal`.
pkg/hashicorpdocs/rfc_replace_header.go:747
↓ 31 callersMethodFirstOrCreate
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 callersMethodFirstOrCreate
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 callersMethodFind
Find finds all document reviews with the provided query, and assigns them to the receiver.
pkg/models/document_review.go:60
↓ 23 callersMethodUpsert
Upsert updates or inserts the receiver document into database db.
pkg/models/document.go:474
↓ 22 callersMethodString
()
pkg/models/project.go:61
↓ 20 callersMethodCreate
Create creates a new project. The resulting project is saved back to the receiver.
pkg/models/project.go:78
↓ 19 callersMethodroute
* 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 callersMethodGet
Get gets a product from database db by name, and assigns it back to the receiver.
pkg/models/product.go:49
↓ 16 callersMethodFind
Find finds all documents from database db with the provided query, and assigns them to the receiver.
pkg/models/document.go:177
↓ 16 callersMethodToAlgoliaObject
ToAlgoliaObject converts a document to a document Algolia object.
pkg/document/document.go:398
↓ 16 callersFunctionauthenticateTestUser
(mirageContext: MirageTestContext)
web/mirage/utils.ts:108
↓ 15 callersFunctionrevertReviewsPost
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 callersMethoderror
(error: unknown)
web/app/routes/application.ts:25
↓ 14 callersFunctiongetProductId
(productName?: string)
web/app/utils/get-product-id.ts:1
↓ 14 callersMethodmaybeLockDoc
(error: Error)
web/app/components/document/sidebar.ts:605
↓ 13 callersMethodGet
Get gets a project by ID.
pkg/models/project.go:119
↓ 13 callersMethodUpdate
Update updates a project. The resulting project is saved back to the receiver.
pkg/models/project.go:239
↓ 13 callersMethodUpsert
Upsert updates or inserts the receiver user into database db.
pkg/models/user.go:91
↓ 13 callersFunctiongetEnv
(key, defaultValue)
web/config/environment.js:3
↓ 13 callersMethodreset
()
web/app/services/active-filters.ts:39
↓ 12 callersMethodReplaceHeader
(fileID, baseURL string, isDraft bool, s *gw.Service)
pkg/hashicorpdocs/common.go:39
↓ 12 callersFunctionStringSliceContains
StringSliceContains returns true if a string is present in a slice of strings.
internal/helpers/helpers.go:18
↓ 12 callersFunctionparseDate
( time?: string | number | Date, monthFormat: "short" | "long" = "short", )
web/app/utils/parse-date.ts:6
↓ 12 callersFunctionsetupProductIndex
(mirage: MirageTestContext)
web/tests/mirage-helpers/utils.ts:8
↓ 11 callersMethodSearchPeople
SearchPeople searches the Google People API.
pkg/googleworkspace/people_helpers.go:11
↓ 11 callersFunctiondecodeRequest
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 callersMethodshowFlashError
(error: Error, title: string)
web/app/components/document/sidebar.ts:611
↓ 11 callersFunctiontimeAgo
( timeInSeconds?: number, options?: { limitTo24Hours?: boolean; }, )
web/app/utils/time-ago.ts:8
↓ 10 callersMethodGetFile
GetFile returns a Google Drive file.
pkg/googleworkspace/drive_helpers.go:107
↓ 10 callersFunctionNewFromAlgoliaObject
NewFromAlgoliaObject creates a document from a document Algolia object.
pkg/document/document.go:149
↓ 10 callersMethodShareFile
ShareFile shares a Google Drive file with a user.
pkg/googleworkspace/drive_helpers.go:363
↓ 10 callersFunctioncontains
contains returns true if a string is present in a slice of strings.
internal/api/v2/helpers.go:22
↓ 10 callersFunctioncreateTextCellRequests
createTextCellRequests creates a slice of Google Docs requests for header table cells consisting of `cellName: cellVal`.
pkg/document/replace_header.go:788
↓ 10 callersFunctionrevertReviewCreation
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 callersFunctionCompareAlgoliaAndDatabaseDocument
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 callersMethodFind
Find finds all document group reviews with the provided query, and assigns them to the receiver.
pkg/models/document_group_review.go:51
↓ 9 callersFunctioncompareAlgoliaAndDatabaseDocument
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 callersMethodhideContent
()
web/app/components/floating-u-i/index.ts:71
↓ 9 callersFunctionparseParagraphWithEmails
parseParagraphWithEmails parses a Google Doc paragraph containing email addresses.
pkg/hashicorpdocs/rfc.go:412
↓ 9 callersMethodresetFocusedItemIndex
()
web/app/components/x/dropdown-list/index.ts:402
↓ 8 callersMethodDelete
Delete deletes a document in database db.
pkg/models/document.go:150
↓ 8 callersMethodRenameFile
RenameFile renames a Google Drive file.
pkg/googleworkspace/drive_helpers.go:350
↓ 8 callersMethodUpsert
Upsert updates or inserts the receiver document into database db.
pkg/models/product_latest_document_number.go:56
↓ 8 callersMethodUpsertCustomField
(cf CustomField)
pkg/document/document.go:634
↓ 8 callersFunctiongetStringValue
(in map[string]any, key string)
internal/api/helpers.go:589
↓ 8 callersFunctiongetStringValue
(in map[string]any, key string)
internal/api/v2/helpers.go:611
↓ 8 callersMethodisDisabled
()
web/app/components/header/facet-dropdown.ts:14
↓ 7 callersMethodGet
Get gets the document review from database db, and assigns it to the receiver.
pkg/models/document_review.go:111
↓ 7 callersMethodGet
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 callersMethodGet
Get gets the indexer folder and assigns it to the receiver.
pkg/models/indexer_folder.go:25
↓ 7 callersMethodGetDoc
GetDoc gets a Google Doc.
pkg/googleworkspace/docs_helpers.go:11
↓ 7 callersFunctionNewFromDatabaseModel
NewFromDatabaseModel creates a document from a document database model.
pkg/document/document.go:240
↓ 7 callersFunctionassertReordered
(expectedOrder: string[])
web/tests/acceptance/authenticated/projects/project-test.ts:474
↓ 7 callersFunctiondecodeRequest
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 callersFunctiongetFacetsFromHits
(facetNames: string[], hits: any[])
web/mirage/algolia/utils.ts:20
↓ 7 callersFunctionpushMirageIntoStore
(context: MirageTestContext)
web/mirage/utils.ts:68
↓ 6 callersMethodCreate
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 callersMethodGet
Get gets the document group review from database db, and assigns it to the receiver.
pkg/models/document_group_review.go:104
↓ 6 callersFunctionGetLatestProductNumber
GetLatestProductNumber gets the latest document number for a product.
pkg/models/document.go:234
↓ 6 callersMethodGetLatestRevision
GetLatestRevision returns the latest revision for a Google Drive file.
pkg/googleworkspace/drive_helpers.go:167
↓ 6 callersMethodKeepRevisionForever
KeepRevisionForever keeps a Google Drive file revision forever.
pkg/googleworkspace/drive_helpers.go:233
↓ 6 callersMethodMoveFile
MoveFile moves a Google Drive file to a different folder.
pkg/googleworkspace/drive_helpers.go:327
↓ 6 callersMethodSendEmail
SendEmail sends an email.
pkg/googleworkspace/gmail_helpers.go:12
↓ 6 callersMethodSetFileRevision
(string, string)
pkg/hashicorpdocs/common.go:46
↓ 6 callersMethodUpsert
Upsert updates or inserts the receiver indexer folder into database db.
pkg/models/indexer_folder.go:44
↓ 6 callersFunctioncontains
contains returns true if a string is present in a slice of strings.
pkg/hashicorpdocs/rfc_replace_header.go:799
↓ 6 callersFunctioncontains
contains returns true if a string is present in a slice of strings.
internal/api/helpers.go:21
↓ 6 callersMethodgetErrorCode
* 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 callersFunctiongetStringSliceValue
(in map[string]any, key string)
internal/api/helpers.go:603
↓ 6 callersFunctiongetStringSliceValue
(in map[string]any, key string)
internal/api/v2/helpers.go:625
↓ 6 callersMethodrefreshRoute
()
web/app/components/document/sidebar.ts:589
↓ 6 callersMethodshowContent
()
web/app/components/floating-u-i/index.ts:67
↓ 5 callersMethodCreate
(db *gorm.DB)
pkg/models/project_related_resource_hermes_document.go:20
↓ 5 callersMethodCreate
(db *gorm.DB)
pkg/models/document_related_resource_hermes_document.go:19
↓ 5 callersMethodFirstOrCreate
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 callersMethodGetProjects
GetProjects gets all projects associated with document d.
pkg/models/document.go:282
↓ 5 callersMethodReplaceRelatedResources
ReplaceRelatedResources replaces related resources for project p.
pkg/models/project.go:177
↓ 5 callersMethodServeHTTP
(http.ResponseWriter, *http.Request)
internal/cmd/commands/server/server.go:330
↓ 5 callersMethodUpsert
Upsert updates or inserts the receiver into database db.
pkg/models/document_type_custom_field.go:70
↓ 5 callersFunctionUpsertStringDocumentCustomField
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 callersFunctionUpsertStringSliceDocumentCustomField
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 callersFunctionassertIconSize
(containerClass: string, size: string)
web/tests/integration/components/person/avatar-test.ts:42
↓ 5 callersMethodclose
()
web/app/components/modals/draft-created.ts:31
↓ 5 callersFunctioncompareSlices
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