func (r *GormWorkItemLinkRevisionRepository) List(ctx context.Context, linkID uuid.UUID) ([]Revision, error) {
	log.Debug(nil, map[string]interface{}{}, "List all revisions for work item link with ID=%v", linkID.String())
	revisions := make([]Revision, 0)
	if err := r.db.Where("work_item_link_id = ?", linkID.String()).Order("revision_time asc").Find(&revisions).Error; err != nil {
		return nil, errors.NewInternalError(fmt.Sprintf("failed to retrieve work item link revisions: %s", err.Error()))
	}
	return revisions, nil
}
// List retrieves all revisions for a given work item link
List retrieves all revisions for a given work item link
// List retrieves all revisions for a given work item link
func (r *GormWorkItemLinkRevisionRepository) List(ctx context.Context, linkID uuid.UUID) ([]Revision, error) {
	log.Debug(nil, map[string]interface{}{}, "List all revisions for work item link with ID=%v", linkID.String())
	revisions := make([]Revision, 0)
	if err := r.db.Where("work_item_link_id = ?", linkID.String()).Order("revision_time asc").Find(&revisions).Error; err != nil {
		return nil, errors.NewInternalError(fmt.Sprintf("failed to retrieve work item link revisions: %s", err.Error()))
	}
	return revisions, nil
}
func ( r * GormWorkItemLinkRevisionRepository ) List ( ctx context . Context , linkID uuid . UUID ) ( [ ] Revision , error ) { log . Debug ( nil , map [ string ] interface { } { } , " " , linkID . String ( ) ) revisions := make ( [ ] Revision , 0 ) if err := r . db . Where ( " " , linkID . String ( ) ) . Order ( " " ) . Find ( & revisions ) . Error ; err != nil { return nil , errors . NewInternalError ( fmt . Sprintf ( " " , err . Error ( ) ) ) } return revisions , nil }
List retrieves all revisions for a given work item link
List retrieves all revisions for a given work item link