MCPcopy Create free account

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

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

↓ 5 callersMethodgetAbbreviation
* A helper function to get the abbreviation for a product. * Used wherever the abbreviation is needed, e.g., * the ProductSelect component.
web/app/services/product-areas.ts:96
↓ 5 callersFunctiongetDocumentURL
getDocumentURL returns a Hermes document URL.
internal/api/v2/reviews.go:856
↓ 5 callersFunctiongetProductLabel
(product?: string)
web/app/utils/get-product-label.ts:1
↓ 5 callersFunctionisValidURL
(string: string)
web/app/utils/is-valid-u-r-l.ts:1
↓ 5 callersFunctionmeasure
(selector?: string)
web/tests/integration/components/x/dropdown-list/index-test.ts:494
↓ 5 callersMethodopen
(modalType: ModalType, data?: Record<string, unknown>)
web/app/services/modal-alerts.ts:40
↓ 5 callersFunctionparseParagraphWithText
parseParagraphWithText parses a Google Doc paragraph containing a text value.
pkg/hashicorpdocs/rfc.go:421
↓ 5 callersMethodsetFocusedItemIndex
( focusDirectionOrNumber: FocusDirection | number, scrollIntoView = true, )
web/app/components/x/dropdown-list/index.ts:327
↓ 5 callersFunctionupdateRelatedResourcesSortOrder
( hermesDocuments: RelatedHermesDocument[], externalLinks: RelatedExternalLink[], )
web/app/utils/update-related-resources-sort-order.ts:6
↓ 4 callersMethodCopyFile
CopyFile copies a Google Drive file.
pkg/googleworkspace/drive_helpers.go:17
↓ 4 callersMethodCreateFolder
CreateFolder creates a Google Drive folder.
pkg/googleworkspace/drive_helpers.go:36
↓ 4 callersMethodDeletePermission
DeletePermission deletes a permission for a Google Drive file.
pkg/googleworkspace/drive_helpers.go:438
↓ 4 callersMethodGet
Get gets the indexer metadata and assigns it to the receiver.
pkg/models/indexer_metadata.go:21
↓ 4 callersMethodGet
Get gets a document type custom field from database db by name and document type name, and assigns it to the receiver.
pkg/models/document_type_custom_field.go:32
↓ 4 callersMethodGet
Get gets the latest product number and assigns it to the receiver.
pkg/models/product_latest_document_number.go:37
↓ 4 callersMethodGetSubfolder
GetSubfolder returns the subfolder file if the specified folder contains a subfolder with the specified name, and nil if not found.
pkg/googleworkspace/drive_helpers.go:182
↓ 4 callersMethodListPermissions
ListPermissions lists permissions for a Google Drive file.
pkg/googleworkspace/drive_helpers.go:399
↓ 4 callersMethodUpsert
Upsert updates or inserts a product into database db.
pkg/models/product.go:72
↓ 4 callersMethodannounceMovement
* The action to announce the movement of an item to screen readers. * Called when an item is moved up, down, to the top, or to the bottom.
web/app/components/project/resource-list-item.ts:123
↓ 4 callersFunctionassertEditingIsDisabled
(assert: Assert)
web/tests/acceptance/authenticated/document-test.ts:143
↓ 4 callersFunctioncaptureFacetElements
()
web/tests/acceptance/authenticated/results-test.ts:289
↓ 4 callersMethodcheckForDuplicate
( urlOrID: string, resourceIsHermesDocument = false, )
web/app/components/related-resources/add.ts:372
↓ 4 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/helpers.go:33
↓ 4 callersFunctiondefaultBackoff
defaultBackoff returns a default exponential backoff configuration for Google Workspace APIs.
pkg/googleworkspace/backoff.go:12
↓ 4 callersFunctiongetPageTwoButton
()
web/tests/acceptance/authenticated/projects-test.ts:156
↓ 4 callersMethodhandleAuthentication
()
web/tests/unit/services/session-test.ts:9
↓ 4 callersFunctionparseResourceIDFromURL
parseResourceIDFromURL parses a URL path with the format "/api/v1/{apiPath}/{resourceID}" and returns the resource ID.
internal/api/helpers.go:72
↓ 4 callersMethodscheduleFocusDragHandle
()
web/app/components/project/resource-list-item.ts:127
↓ 3 callersMethodCreate
(db *gorm.DB)
pkg/models/document_related_resource_external_link.go:22
↓ 3 callersMethodCreate
(db *gorm.DB)
pkg/models/project_related_resource_external_link.go:23
↓ 3 callersMethodDeleteFile
DeleteFile deletes a Google Drive file
pkg/googleworkspace/drive_helpers.go:427
↓ 3 callersMethodFind
Find finds all file revisions for a provided document, and assigns them to the receiver.
pkg/models/document_file_revision.go:62
↓ 3 callersMethodGetRelatedResources
GetRelatedResources returns typed related resources for document d.
pkg/models/document.go:409
↓ 3 callersMethodListFiles
ListFiles lists files in a Google Drive folder using the provided query.
pkg/googleworkspace/drive_helpers.go:261
↓ 3 callersFunctionNew
New initializes Hermes indices and returns a new Algolia client for indexing data.
pkg/algolia/client.go:104
↓ 3 callersFunctionNewConfig
NewConfig parses an HCL configuration file and returns the Hermes config.
internal/config/config.go:339
↓ 3 callersFunctionNewFlagSet
NewFlagSet creates a new flag set.
internal/cmd/base/base.go:112
↓ 3 callersFunctionRemoveStringSliceDuplicates
RemoveStringSliceDuplicates removes duplicate strings from a string slice.
internal/helpers/helpers.go:4
↓ 3 callersMethodReplaceHeader
ReplaceHeader replaces the document header, which is assumed to be the first table in the document. The resulting table looks like this: |----------
pkg/document/replace_header.go:46
↓ 3 callersMethodReplaceRelatedResources
ReplaceRelatedResources replaces related resources for document d.
pkg/models/document.go:325
↓ 3 callersFunctionSaveDocumentRedirectDetails
SaveDocumentRedirectDetails saves the short path of the document as the key and the document ID as the value in Algolia.
pkg/links/data.go:31
↓ 3 callersFunctionSendReviewRequestedEmail
( d ReviewRequestedEmailData, to []string, from string, s *gw.Service, )
internal/email/email.go:196
↓ 3 callersMethodUpsert
Upsert updates or inserts the indexer metadata.
pkg/models/indexer_metadata.go:33
↓ 3 callersMethodanimate
()
web/app/components/project/index.ts:37
↓ 3 callersFunctionanimateTransform
( sprite: Sprite, opts?: Partial<AnimateTransformOptions>, )
web/app/utils/ember-animated/animate-transform.ts:146
↓ 3 callersFunctiondasherizeStatus
(status string)
internal/email/email.go:284
↓ 3 callersMethoddisableAndRevertChanges
()
web/app/components/editable-field.ts:208
↓ 3 callersMethoddisableEditing
()
web/app/components/editable-field.ts:198
↓ 3 callersFunctionexecuteJiraRequest
(url string, srv server.Server)
internal/api/v2/jira_issue.go:203
↓ 3 callersMethodgetAssociations
getAssociations gets associations.
pkg/models/document_review.go:152
↓ 3 callersMethodgetAssociations
getAssociations gets associations.
pkg/models/document_group_review.go:145
↓ 3 callersFunctiongetModelAttr
( store: StoreService, positional: GetModelAttrArgs, named?: { fallback?: string; }, )
web/app/utils/get-model-attr.ts:10
↓ 3 callersMethodhandleQuery
()
web/app/components/related-resources/add.ts:494
↓ 3 callersFunctionhighlightElement
(target: Element)
web/app/utils/ember-animated/highlight-element.ts:10
↓ 3 callersFunctionopenModal
()
web/tests/integration/components/related-resources-test.ts:385
↓ 3 callersFunctionparseDocumentsURLPath
parseDocumentsURLPath parses the document ID and subcollection request type from a documents/drafts API URL path.
internal/api/documents.go:905
↓ 3 callersFunctionparseDocumentsURLPath
parseDocumentsURLPath parses the document ID and subcollection request type from a documents/drafts API URL path.
internal/api/v2/documents.go:1141
↓ 3 callersFunctionparseResourceIDFromURL
parseResourceIDFromURL parses a URL path with the format "/api/v2/{apiPath}/{resourceID}" and returns the resource ID.
internal/api/v2/helpers.go:73
↓ 3 callersFunctionrerenderTile
()
web/tests/integration/components/project/tile-test.ts:134
↓ 3 callersFunctionscrollIntoViewIfNeeded
( element: Element, options?: ScrollIntoViewOptions, )
web/app/utils/scroll-into-view-if-needed.ts:8
↓ 3 callersMethodshowFlashSuccess
(title: string, message: string)
web/app/components/document/sidebar.ts:618
↓ 3 callersMethodtoggleApproverVisibility
()
web/app/components/document/sidebar.ts:766
↓ 3 callersMethodupdateHeight
()
web/app/modifiers/auto-height-textarea.ts:47
↓ 3 callersMethodupdateState
(state: TooltipState)
web/app/modifiers/tooltip.ts:234
↓ 3 callersMethodvalidate
* Validates the form and updates the `formErrors` property.
web/app/components/new/doc-form.ts:109
↓ 2 callersFunctionConfigHandler
ConfigHandler returns runtime configuration for the Hermes frontend.
web/web.go:77
↓ 2 callersMethodCreateShortcut
CreateShortcut creates a Google Drive shortcut.
pkg/googleworkspace/drive_helpers.go:65
↓ 2 callersFunctionDeleteDocumentRedirectDetails
DeleteDocumentRedirectDetails deletes document redirect details from Algolia.
pkg/links/data.go:11
↓ 2 callersMethodFlags
()
internal/cmd/commands/indexer/indexer.go:40
↓ 2 callersMethodFlags
()
internal/cmd/commands/operator/migrate_algolia_to_postgresql.go:57
↓ 2 callersMethodFlags
()
internal/cmd/commands/server/server.go:63
↓ 2 callersMethodGet
(db *gorm.DB)
pkg/models/document_file_revision.go:86
↓ 2 callersMethodGetDocType
()
pkg/hashicorpdocs/common.go:28
↓ 2 callersMethodGetFiles
GetFiles returns all files in a Google Drive folder.
pkg/googleworkspace/drive_helpers.go:134
↓ 2 callersMethodGetFolders
GetDocs returns all folders in a Google Drive folder.
pkg/googleworkspace/drive_helpers.go:143
↓ 2 callersMethodGetProduct
()
pkg/hashicorpdocs/common.go:33
↓ 2 callersMethodGetRelatedResources
GetRelatedResources returns typed related resources for project p.
pkg/models/project.go:132
↓ 2 callersMethodGetUpdatedDocsBetween
GetUpdatedDocsBetween returns all docs in a Google Drive folder that have been modified after a provided timestamp string (in RFC 3339 date-time) "aft
pkg/googleworkspace/drive_helpers.go:209
↓ 2 callersMethodHandle
(pattern string, handler http.Handler)
internal/cmd/commands/server/server.go:329
↓ 2 callersFunctionModelsToAutoMigrate
()
pkg/models/gorm.go:3
↓ 2 callersFunctionNewCommand
NewCommand returns a new instance of a base.Command type.
internal/cmd/base/base.go:39
↓ 2 callersFunctionNewConfig
New creates an instance of Datadog configuration.
internal/datadog/datadog.go:26
↓ 2 callersFunctionSendNewOwnerEmail
( data NewOwnerEmailData, to []string, from string, svc *gw.Service, )
internal/email/email.go:138
↓ 2 callersFunctionSendSubscriberDocumentPublishedEmail
( d SubscriberDocumentPublishedEmailData, to []string, from string, s *gw.Service, )
internal/email/email.go:240
↓ 2 callersMethodShareFileWithDomain
ShareFileWithDomain shares a Google Drive file with a domain.
pkg/googleworkspace/drive_helpers.go:381
↓ 2 callersMethodUpdate
Update updates the document review in database db.
pkg/models/document_review.go:139
↓ 2 callersMethodUpsert
Upsert updates or inserts the receiver into database db.
pkg/models/document_type.go:79
↓ 2 callersMethodWaitForInterrupt
WaitForInterrupt waits for an interrupt signal and runs a provided shutdown function. While the graceful shutdown is in progress, another interrupt ca
internal/cmd/base/base.go:74
↓ 2 callersMethod_select
()
web/app/modifiers/select-on-focus.ts:29
↓ 2 callersMethodaddRelatedExternalLink
(resource?: RelatedExternalLink)
web/app/components/related-resources/add.ts:397
↓ 2 callersMethodaddResource
(resource: RelatedResource)
web/app/components/project/index.ts:234
↓ 2 callersMethodanimate
()
web/app/utils/ember-animated/animate-transform.ts:44
↓ 2 callersFunctionassertDocumentInfo
(doc: HermesDocument | RelatedHermesDocument)
web/tests/integration/components/doc/tile-medium-test.ts:77
↓ 2 callersMethodassertResourceIsDocument
* A method that asserts that a given resource is a Hermes Document. * Called in Hermes Document–specific getters to confirm we're working * with
web/app/components/document/sidebar/related-resources/list-item/resource.ts:75
↓ 2 callersMethodassignMenuItemIDs
(items: NodeListOf<Element>)
web/app/components/x/dropdown-list/index.ts:278
↓ 2 callersFunctionauthorizeDocumentPatchRequest
authorizeDocumentPatchRequest authorizes a PATCH request to a document.
internal/api/v2/documents.go:1199
↓ 2 callersFunctionblinkElement
(element?: Element | null)
web/app/utils/blink-element.ts:10
↓ 2 callersMethodbuildFacetFilters
* Returns an array of facet filters based on the current parameters, * and whether the owner is looking at their own docs.
web/app/services/algolia.ts:238
↓ 2 callersFunctionbuildLabelAndValueString
buildLabelAndValueString builds a string containing a label and value from a Google Doc paragraph containing text in the form of `Label: Value`.
pkg/hashicorpdocs/rfc.go:435
↓ 2 callersFunctioncaptureItems
()
web/tests/acceptance/authenticated/projects/project-test.ts:467
← previousnext →101–200 of 1,102, ranked by callers