aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Reorganize the webUI and API codeMichael Muré2020-06-2754-309/+472
| | | | | | | | | | Included in the changes: - create a new /api root package to hold all API code, migrate /graphql in there - git API handlers all use the cache instead of the repo directly - git API handlers are now tested - git API handlers now require a "repo" mux parameter - lots of untangling of API/handlers/middleware - less code in commands/webui.go
* Use ErrNotAuthenticatedLuke Granger-Brown2020-06-275-25/+15
|
* Pull out context-stuff from identity into graphqlidentity packageLuke Granger-Brown2020-06-276-62/+91
|
* Change graphql Go handlers to pluck identity out of context instead.Luke Granger-Brown2020-06-277-81/+98
|
* Add context.go to identity, used for attaching identities to and retrieving ↵Luke Granger-Brown2020-06-271-0/+26
| | | | them from a context.Context
* Refactor webui changes.Luke Granger-Brown2020-06-277-54/+31
| | | | | | Don't use contexts, just raw Apollo, since it's cached anyway. Change "ReadonlyHidden" to "IfLoggedIn".
* Verify that we have an identity only in read-write modeLuke Granger-Brown2020-06-271-1/+9
|
* Don't permit file uploads in read-only modeLuke Granger-Brown2020-06-271-1/+3
|
* Add support for read-only mode for web UI.Luke Granger-Brown2020-06-2718-35/+130
| | | | Fixes #402.
* Merge pull request #413 from MichaelMure/repo-more-testsMichael Muré2020-06-277-27/+180
|\ | | | | repo: more tests
| * repo: more testsMichael Muré2020-06-277-27/+180
|/
* Merge pull request #411 from MichaelMure/repo-reworkMichael Muré2020-06-2639-511/+563
|\ | | | | Repository rework
| * repository: remove tie to Bug, improved and reusable testingMichael Muré2020-06-2639-511/+563
|/ | | | | | | | | - allow the creation of arbitrary Lamport clocks, freeing the way to new entities and removing Bug specific (upper layer) code. - generalize the memory-only and persisted Lamport clocks behind a common interface - rework the tests to provide reusable testing code for a Repo, a Clock, a Config, opening a path to add a new Repo implementation more easily - test previously untested components with those new tests Note: one problem found during this endeavor is that `identity.Version` also need to store one time + Lamport time for each other Entity (Bug, config, PR ...). This could possibly done without breaking change but it would be much easier to wait for https://github.com/MichaelMure/git-bug-migration to happen.
* Merge pull request #410 from MichaelMure/output-formatting-2Michael Muré2020-06-2625-147/+457
|\ | | | | Add formatting options to the 'show' and 'user ls' commands
| * fix cache not rebuilding properlyMichael Muré2020-06-261-20/+3
| |
| * bug: harmonize how time are used, fix some issues in command special formatsMichael Muré2020-06-2516-128/+142
| | | | | | | | This assume that the convertion from time.Time <--> Unix timestamp is lossless which seems to be.
| * cmds: cleanup and re-generate filesMichael Muré2020-06-2412-236/+104
| |
| * Fix bugsvince2020-06-242-9/+11
| | | | | | | | | | | | This fixes some bugs experienced when using the new formatting options: - org-mode indents not working properly - print statements missing contents
| * Clean up code and fix suggestionsvince2020-06-243-83/+110
| |
| * Add org-mode formatting optionvince2020-06-233-8/+187
| | | | | | | | This adds an option to the formatting flag on the ls, show and user ls commands that allows the user to specify the format of the output in org-mode. This will be useful for emacs users to read it in the editor.
| * Add output formatting support to the 'show' and 'user ls' commandsvince2020-06-213-27/+264
|/ | | | | | This adds options to specify an output format for the commands in question. Supported formats are currently: - 'plain': plaintext, stripped of all colors - 'json': prints output as a json object
* Merge pull request #403 from MichaelMure/ls-dumpVincent Tiu2020-06-186-6/+136
|\ | | | | [ls] add support for different output formats
| * Print JSON as a well-formed objectvince2020-06-181-4/+6
| | | | | | | | This prints all the bugs in a JSON array instead of one by one.
| * ls: Add support to ls dump bug information in specific formatsvince2020-06-166-6/+134
| | | | | | | | This adds an optional flag to the ls command that allows users to specify the format they wish to dump the output as. Currently, supported parameters are 'default', 'plain' and 'json'.
* | Merge pull request #405 from ↵Michael Muré2020-06-172-1/+3
|\ \ | | | | | | | | | | | | MichaelMure/dependabot/go_modules/golang.org/x/text-0.3.3 build(deps): bump golang.org/x/text from 0.3.2 to 0.3.3
| * | build(deps): bump golang.org/x/text from 0.3.2 to 0.3.3dependabot-preview[bot]2020-06-172-1/+3
| |/ | | | | | | | | | | | | Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.2 to 0.3.3. - [Release notes](https://github.com/golang/text/releases) - [Commits](https://github.com/golang/text/compare/v0.3.2...v0.3.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* | Merge pull request #404 from tbm/typosMichael Muré2020-06-177-18/+18
|\ \ | |/ |/| doc: fix typos
| * doc: fix typosMartin Michlmayr2020-06-167-18/+18
|/
* generate docs and completion concurrently for a faster "make"Michael Muré2020-06-149-184/+146
|
* CLI: enable Fish completionMichael Muré2020-06-144-0/+164
|
* update cobraMichael Muré2020-06-143-1/+69
|
* Merge pull request #401 from ↵Michael Muré2020-06-141-86/+11
|\ | | | | | | | | MichaelMure/dependabot/npm_and_yarn/webui/minimist-1.2.5 build(deps): [security] bump minimist from 1.2.0 to 1.2.5 in /webui
| * build(deps): [security] bump minimist from 1.2.0 to 1.2.5 in /webuidependabot-preview[bot]2020-06-141-86/+11
|/ | | | | | | Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.5. **This update includes security fixes.** - [Release notes](https://github.com/substack/minimist/releases) - [Commits](https://github.com/substack/minimist/compare/1.2.0...1.2.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* webui: update some depsMichael Muré2020-06-142-3446/+6445
|
* Merge pull request #398 from ↵Michael Muré2020-06-142-1/+3
|\ | | | | | | | | MichaelMure/dependabot/go_modules/github.com/go-errors/errors-1.1.1 build(deps): bump github.com/go-errors/errors from 1.0.2 to 1.1.1
| * build(deps): bump github.com/go-errors/errors from 1.0.2 to 1.1.1dependabot-preview[bot]2020-06-142-1/+3
|/ | | | | | | Bumps [github.com/go-errors/errors](https://github.com/go-errors/errors) from 1.0.2 to 1.1.1. - [Release notes](https://github.com/go-errors/errors/releases) - [Commits](https://github.com/go-errors/errors/compare/v1.0.2...v1.1.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Merge pull request #400 from ↵Michael Muré2020-06-142-1/+6
|\ | | | | | | | | MichaelMure/dependabot/go_modules/github.com/stretchr/testify-1.6.1 build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.6.1
| * build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.6.1dependabot-preview[bot]2020-06-082-1/+6
| | | | | | | | | | | | | | Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.5.1 to 1.6.1. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.5.1...v1.6.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* | bug: make sure to disable label color escape when not on a terminalMichael Muré2020-06-141-44/+50
|/
* Merge pull request #388 from bsdlcook/freebsd-portMichael Muré2020-05-151-0/+14
|\ | | | | Include FreeBSD package section.
| * Fix intendation for FreeBSD package/port section.Lewis Cook2020-05-151-1/+1
| |
| * Add FreeBSD package/port section.Lewis Cook2020-05-151-0/+14
|/
* Merge pull request #382 from westurner/patch-2Michael Muré2020-05-011-1/+1
|\ | | | | DOC: README.md: is/are
| * DOC: README.md: is/areWes Turner2020-04-301-1/+1
| |
* | Merge pull request #375 from ↵Michael Muré2020-05-012-1/+3
|\ \ | | | | | | | | | | | | MichaelMure/dependabot/go_modules/github.com/go-errors/errors-1.0.2 build(deps): bump github.com/go-errors/errors from 1.0.1 to 1.0.2
| * | build(deps): bump github.com/go-errors/errors from 1.0.1 to 1.0.2dependabot-preview[bot]2020-04-142-1/+3
| | | | | | | | | | | | | | | | | | | | | Bumps [github.com/go-errors/errors](https://github.com/go-errors/errors) from 1.0.1 to 1.0.2. - [Release notes](https://github.com/go-errors/errors/releases) - [Commits](https://github.com/go-errors/errors/compare/v1.0.1...v1.0.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* | | Merge branch 'patch-1'Michael Muré2020-05-013-3/+3
|\ \ \
| * | | DOC: commands/root.go: syntaxWes Turner2020-05-013-3/+3
| | |/ | |/|
* / | identity: actually test the mutatorMichael Muré2020-05-012-6/+19
|/ /
* | Merge pull request #380 from ogirginc/masterMichael Muré2020-04-241-0/+9
|\ \ | | | | | | Update README.md