Documentation
¶
Overview ¶
Package project provides the implementation of the ProjectService interface, which includes methods for managing projects, issues, and teams.
Index ¶
- func ParseQuery(query string) []warnly.Filter
- type ProjectService
- func (s *ProjectService) AssignIssue(ctx context.Context, req *warnly.AssignIssueRequest) error
- func (s *ProjectService) CreateMessage(ctx context.Context, req *warnly.CreateMessageRequest) (*warnly.Discussion, error)
- func (s *ProjectService) CreateProject(ctx context.Context, req *warnly.CreateProjectRequest, user *warnly.User) (*warnly.ProjectInfo, error)
- func (s *ProjectService) DeleteAssignment(ctx context.Context, req *warnly.UnassignIssueRequest) error
- func (s *ProjectService) DeleteMessage(ctx context.Context, req *warnly.DeleteMessageRequest) (*warnly.Discussion, error)
- func (s *ProjectService) DeleteProject(ctx context.Context, projectID int, user *warnly.User) error
- func (s *ProjectService) GetDiscussion(ctx context.Context, req *warnly.GetDiscussionsRequest) (*warnly.Discussion, error)
- func (s *ProjectService) GetIssue(ctx context.Context, req *warnly.GetIssueRequest) (*warnly.IssueDetails, error)
- func (s *ProjectService) GetProject(ctx context.Context, projectID int, user *warnly.User) (*warnly.Project, error)
- func (s *ProjectService) GetProjectDetails(ctx context.Context, req *warnly.ProjectDetailsRequest, user *warnly.User) (*warnly.ProjectDetails, error)
- func (s *ProjectService) ListEvents(ctx context.Context, req *warnly.ListEventsRequest) (*warnly.ListEventsResult, error)
- func (s *ProjectService) ListFields(ctx context.Context, req *warnly.ListFieldsRequest) (*warnly.ListFieldsResult, error)
- func (s *ProjectService) ListIssues(ctx context.Context, req *warnly.ListIssuesRequest) (*warnly.ListIssuesResult, error)
- func (s *ProjectService) ListPopularTags(ctx context.Context, req *warnly.ListPopularTagsRequest) ([]warnly.TagCount, error)
- func (s *ProjectService) ListProjects(ctx context.Context, criteria *warnly.ListProjectsCriteria, user *warnly.User) (*warnly.ListProjectsResult, error)
- func (s *ProjectService) ListTagValues(ctx context.Context, req *warnly.ListTagValuesRequest) ([]warnly.TagValueCount, error)
- func (s *ProjectService) ListTeammates(ctx context.Context, req *warnly.ListTeammatesRequest) ([]warnly.Teammate, error)
- func (s *ProjectService) ListTeams(ctx context.Context, user *warnly.User) ([]warnly.Team, error)
- func (s *ProjectService) SearchProject(ctx context.Context, name string, user *warnly.User) (*warnly.Project, error)
- type QueryToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseQuery ¶
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 ¶
DeleteProject deletes a project by unique identifier.
func (*ProjectService) GetDiscussion ¶
func (s *ProjectService) GetDiscussion(ctx context.Context, req *warnly.GetDiscussionsRequest) (*warnly.Discussion, error)
GetDiscussion returns issue discussions.
func (*ProjectService) GetIssue ¶
func (s *ProjectService) GetIssue(ctx context.Context, req *warnly.GetIssueRequest) (*warnly.IssueDetails, error)
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 ¶
func (s *ProjectService) ListEvents(ctx context.Context, req *warnly.ListEventsRequest) (*warnly.ListEventsResult, error)
ListEvents handles "All Errors" page showing all error events per issue.
func (*ProjectService) ListFields ¶
func (s *ProjectService) ListFields(ctx context.Context, req *warnly.ListFieldsRequest) (*warnly.ListFieldsResult, error)
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 ¶
func (s *ProjectService) ListIssues(ctx context.Context, req *warnly.ListIssuesRequest) (*warnly.ListIssuesResult, error)
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 ¶
func (s *ProjectService) ListTagValues(ctx context.Context, req *warnly.ListTagValuesRequest) ([]warnly.TagValueCount, error)
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.