roadmap2

package
v2.17.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

roadmap2 represents a simplified set of data structures to represent a roadmap.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapInt32SliceStringToLines added in v2.16.0

func MapInt32SliceStringToLines(m map[int32][]string, keyPrefix, valPrefix string) []string

Types

type Cell

type Cell struct {
	ColumnName string
	RowName    string
	Items      Items
}

Cell represents a cell of Roadmap Items where defined by a `ColumnName` and `RowName` where the row name is the Roadmap stream name.

type Cells

type Cells []Cell

func (Cells) MaxCellItemsLength

func (c Cells) MaxCellItemsLength() int

type Item

type Item struct {
	Name        string
	Description string
	ReleaseTime time.Time
	StreamName  string
	Meta        map[string]string
}

Item represents a "roadmap item" or box on a roadmap slide.

func NewItem added in v2.16.0

func NewItem() Item

func (Item) ReleaseTimeQuarter added in v2.16.0

func (i Item) ReleaseTimeQuarter() int32

type Items

type Items []Item

func ItemsFromTable added in v2.16.0

func ItemsFromTable(t *table.Table, nameColIdx, timeColIdx uint, timeLayout string, metaColIdxs []uint) (Items, error)

func (Items) CountsByMetaAttribute added in v2.16.0

func (ii Items) CountsByMetaAttribute(attrName string, keyForMissing *string) map[string]int

func (Items) FilterByMeta added in v2.16.0

func (ii Items) FilterByMeta(metaFilterAnd map[string][]string) Items

func (Items) NamesByIntervals added in v2.16.0

func (ii Items) NamesByIntervals(intervals []string, sortAsc, inclNonExplicit bool, defaultInterval timeutil.Interval) (map[string][]string, error)

func (Items) NamesByQuarter added in v2.16.0

func (ii Items) NamesByQuarter(sortAsc bool) map[int32][]string

type Roadmap

type Roadmap struct {
	Name         string
	StreamNames  []string
	Columns      table.Columns // Includes Stream Title
	Items        []Item
	ItemCellFunc func(i Item) (colIdx int) // negative means don't use. colIdx is without Stream Title Column
}

Roadmap is a generic data structure to hold roadmap items.

func (*Roadmap) ItemsByStream

func (r *Roadmap) ItemsByStream(streamName string) []Item

func (*Roadmap) Streams

func (r *Roadmap) Streams(includeUnknown, includeUnassigned bool) ([]Stream, error)

Streams returns a slice of `Stream`.

func (*Roadmap) Table

func (r *Roadmap) Table(includeUnknown, includeUnassigned bool) (table.Table, error)

Table returns a `table` representing a roadmap slide. It can be used to generate CSV or XLSX files.

func (*Roadmap) UnknownStreams

func (r *Roadmap) UnknownStreams() []string

type Stream

type Stream struct {
	Name  string
	Cells Cells
}

Stream represents the horizontal swimlane on a roadmap chart.

Jump to

Keyboard shortcuts

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