project

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package project provides the implementation of the ProjectService interface, which includes methods for managing projects, issues, and teams.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseQuery

func ParseQuery(query string) []warnly.Filter

ParseQuery parses the query string into filters.

Types

type ProjectService

type ProjectService struct {
	// contains filtered or unexported fields
}

ProjectService implements warnly.ProjectService interface.

func NewProjectService

func NewProjectService(
	projectStore warnly.ProjectStore,
	assingmentStore warnly.AssingmentStore,
	teamStore warnly.TeamStore,
	issueStore warnly.IssueStore,
	messageStore warnly.MessageStore,
	mentionStore warnly.MentionStore,
	analyticsStore warnly.AnalyticsStore,
	uw uow.StartUnitOfWork,
	policy *bluemonday.Policy,
	baseURL string,
	scheme string,
	publicBaseURL string,
	publicScheme string,
	now func() time.Time,
	logger *slog.Logger,
) *ProjectService

NewProjectService is a constructor of project service.

func (*ProjectService) AssignIssue

func (s *ProjectService) AssignIssue(ctx context.Context, req *warnly.AssignIssueRequest) error

AssignIssue assigns an issue to a user.

func (*ProjectService) CreateMessage

func (s *ProjectService) CreateMessage(
	ctx context.Context,
	req *warnly.CreateMessageRequest,
) (*warnly.Discussion, error)

CreateMessage creates a new message in the issue discussion.

func (*ProjectService) CreateProject

func (s *ProjectService) CreateProject(
	ctx context.Context,
	req *warnly.CreateProjectRequest,
	user *warnly.User,
) (*warnly.ProjectInfo, error)

CreateProject creates a new project.

func (*ProjectService) DeleteAssignment

func (s *ProjectService) DeleteAssignment(ctx context.Context, req *warnly.UnassignIssueRequest) error

DeleteAssignment unassigns an issue from a user.

func (*ProjectService) DeleteMessage

func (s *ProjectService) DeleteMessage(
	ctx context.Context,
	req *warnly.DeleteMessageRequest,
) (*warnly.Discussion, error)

DeleteMessage deletes a user message from the issue discussion.

func (*ProjectService) DeleteProject

func (s *ProjectService) DeleteProject(ctx context.Context, projectID int, user *warnly.User) error

DeleteProject deletes a project by unique identifier.

func (*ProjectService) GetDiscussion

GetDiscussion returns issue discussions.

func (*ProjectService) GetIssue

GetIssue returns detailed information about a specific issue.

func (*ProjectService) GetProject

func (s *ProjectService) GetProject(ctx context.Context, projectID int, user *warnly.User) (*warnly.Project, error)

GetProject returns a project by unique identifier.

func (*ProjectService) GetProjectDetails

func (s *ProjectService) GetProjectDetails(
	ctx context.Context,
	req *warnly.ProjectDetailsRequest,
	user *warnly.User,
) (*warnly.ProjectDetails, error)

GetProjectDetails returns the project details.

func (*ProjectService) ListEvents

ListEvents handles "All Errors" page showing all error events per issue.

func (*ProjectService) ListFields

ListFields returns a list of fields related to an issue. e.g. how many times a field like "browser" or "os" was seen in events.

func (*ProjectService) ListIssues

ListIssues lists issues for the projects the user has access to.

func (*ProjectService) ListPopularTags

func (s *ProjectService) ListPopularTags(ctx context.Context, req *warnly.ListPopularTagsRequest) ([]warnly.TagCount, error)

ListPopularTags lists popular tag keys for search suggestions.

func (*ProjectService) ListProjects

func (s *ProjectService) ListProjects(
	ctx context.Context,
	criteria *warnly.ListProjectsCriteria,
	user *warnly.User,
) (*warnly.ListProjectsResult, error)

ListProjects returns a list of projects along with high-level event analytics.

func (*ProjectService) ListTagValues

ListTagValues lists popular values for a given tag.

func (*ProjectService) ListTeammates

func (s *ProjectService) ListTeammates(
	ctx context.Context,
	req *warnly.ListTeammatesRequest,
) ([]warnly.Teammate, error)

ListTeammates returns a list of teammates associated with the user.

func (*ProjectService) ListTeams

func (s *ProjectService) ListTeams(ctx context.Context, user *warnly.User) ([]warnly.Team, error)

ListTeams returns a list of teams associated with user.

func (*ProjectService) SearchProject

func (s *ProjectService) SearchProject(ctx context.Context, name string, user *warnly.User) (*warnly.Project, error)

SearchProject searches for a project by name within the user's teams.

type QueryToken

type QueryToken struct {
	Key       string
	Operator  string
	Value     string
	IsRawText bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL