Michael Muré
47b1255561
Merge pull request #425 from karlicoss/ls-org-mode
...
ls --format org-mode enhancements
2020-07-14 19:16:27 +02:00
Michael Muré
5c823a7024
ls: minor code improvements
2020-07-14 19:13:46 +02:00
Yuri D'Elia
9c3d25e776
Set the Fg color of the status bar to White
...
Always set the Fg color when Bg is set. This fixes poor contrast on
terminals with non-standard foreground colors.
2020-07-13 13:30:46 +02:00
Yuri D'Elia
54d4307a2e
Trim titles in list views
2020-07-13 13:14:47 +02:00
Dima Gerasimov
efe6ea3371
ls --format org-mode enhancements
...
- fix and align OPEN/CLOSED states
- fix org-mode links format
- santize tags (org-mode only allows _ and @ as special characters)
- format datetimes as org-mode
2020-07-12 17:58:15 +01:00
Vincent Tiu
f3304bdc1c
Add functionality to remove bugs from a local repository. ( #423 )
...
Add functionality to remove bugs from a local repository.
This adds a function to remove git references in the repo and another one to remove bugs.
2020-07-09 14:40:44 +02:00
Michael Muré
de062a78ec
Merge pull request #422 from MichaelMure/code-analysis
...
fix github action
2020-07-07 21:39:12 +02:00
Michael Muré
87a2638cd0
fix github action
2020-07-07 21:37:22 +02:00
Michael Muré
1dfe1fc713
Merge pull request #421 from MichaelMure/code-analysis
...
code analysis
2020-07-07 21:30:50 +02:00
Michael Muré
3594a6d944
code analysis
2020-07-07 21:28:00 +02:00
Michael Muré
71989045c9
commands: fix segfault with badly loaded backend
2020-07-07 20:15:22 +02:00
Michael Muré
44096b785f
repo: fix test chocking on randomized element in repo.ListRefs()
2020-07-03 19:05:05 +02:00
Michael Muré
8a38af24d4
cache: split into multiple files for readability
2020-07-03 18:58:58 +02:00
Michael Muré
3cf31fc404
repository: merge git.Hash in for one less /util package
2020-07-01 19:39:02 +02:00
Michael Muré
33d510ac39
Merge pull request #414 from MichaelMure/cmd-rework
...
commands: refactor to avoid globals
2020-06-28 19:24:32 +02:00
Michael Muré
536c290dfb
commands: open and close the backend in a single place, simplify commands
2020-06-28 19:09:32 +02:00
Michael Muré
26bd1dd110
commands: refactor to avoid globals
2020-06-28 18:26:29 +02:00
Michael Muré
c0dbc149d5
Merge pull request #407 from lukegb/fix-402
...
Add support for read-only mode for web UI.
2020-06-27 23:09:22 +02:00
Michael Muré
3aaf775857
webui: pack
2020-06-27 23:04:47 +02:00
Michael Muré
07d6c6aa32
webui: render component's children as a function to avoid uncecessary rendering
...
Co-authored-by: Quentin Gliech <quentingliech@gmail.com>
2020-06-27 23:03:06 +02:00
Michael Muré
2ab6381a94
Reorganize the webUI and API code
...
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
2020-06-27 23:03:05 +02:00
Luke Granger-Brown
5f72b04ef8
Use ErrNotAuthenticated
2020-06-27 23:01:10 +02:00
Luke Granger-Brown
e5a316e40c
Pull out context-stuff from identity into graphqlidentity package
2020-06-27 23:01:09 +02:00
Luke Granger-Brown
766aff2b2f
Change graphql Go handlers to pluck identity out of context instead.
2020-06-27 22:58:22 +02:00
Luke Granger-Brown
8a38897f79
Add context.go to identity, used for attaching identities to and retrieving them from a context.Context
2020-06-27 22:58:22 +02:00
Luke Granger-Brown
cf67c78823
Refactor webui changes.
...
Don't use contexts, just raw Apollo, since it's cached anyway.
Change "ReadonlyHidden" to "IfLoggedIn".
2020-06-27 22:58:21 +02:00
Luke Granger-Brown
dfdb5e090b
Verify that we have an identity only in read-write mode
2020-06-27 22:56:11 +02:00
Luke Granger-Brown
43c78da02e
Don't permit file uploads in read-only mode
2020-06-27 22:56:11 +02:00
Luke Granger-Brown
4a28f25347
Add support for read-only mode for web UI.
...
Fixes #402 .
2020-06-27 22:56:10 +02:00
Michael Muré
23228101a2
Merge pull request #413 from MichaelMure/repo-more-tests
...
repo: more tests
2020-06-27 22:05:45 +02:00
Michael Muré
939bcd57b9
repo: more tests
2020-06-27 22:00:15 +02:00
Michael Muré
1e3dd82fd6
Merge pull request #411 from MichaelMure/repo-rework
...
Repository rework
2020-06-26 19:20:36 +02:00
Michael Muré
88ad7e606f
repository: remove tie to Bug, improved and reusable testing
...
- 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.
2020-06-26 19:14:22 +02:00
Michael Muré
2dd0dbb134
Merge pull request #410 from MichaelMure/output-formatting-2
...
Add formatting options to the 'show' and 'user ls' commands
2020-06-26 01:02:27 +02:00
Michael Muré
c326007d01
fix cache not rebuilding properly
2020-06-26 00:58:38 +02:00
Michael Muré
aab3a04d0c
bug: harmonize how time are used, fix some issues in command special formats
...
This assume that the convertion from time.Time <--> Unix timestamp is lossless which seems to be.
2020-06-25 23:18:17 +02:00
Michael Muré
1d06244c82
cmds: cleanup and re-generate files
2020-06-24 15:10:57 +02:00
vince
ebd1030cde
Fix bugs
...
This fixes some bugs experienced when using the new formatting options:
- org-mode indents not working properly
- print statements missing contents
2020-06-24 14:34:36 +08:00
vince
8eb004b405
Clean up code and fix suggestions
2020-06-24 10:22:32 +08:00
vince
fc3f6540b8
Add org-mode formatting option
...
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.
2020-06-23 17:51:42 +08:00
vince
cd8352edde
Add output formatting support to the 'show' and 'user ls' commands
...
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
2020-06-21 13:51:48 +08:00
Vincent Tiu
f790083fb2
Merge pull request #403 from MichaelMure/ls-dump
...
[ls] add support for different output formats
2020-06-18 20:37:00 +08:00
vince
87eeba413d
Print JSON as a well-formed object
...
This prints all the bugs in a JSON array instead of one by one.
2020-06-18 20:12:26 +08:00
Michael Muré
7aed987040
Merge pull request #405 from 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
2020-06-17 17:39:17 +02:00
Michael Muré
36b45c7e42
Merge pull request #404 from tbm/typos
...
doc: fix typos
2020-06-17 17:30:04 +02:00
dependabot-preview[bot]
c536b8e85e
build(deps): bump golang.org/x/text from 0.3.2 to 0.3.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>
2020-06-17 04:59:13 +00:00
Martin Michlmayr
ff0ff86336
doc: fix typos
2020-06-16 21:32:03 +08:00
vince
de5565b5f9
ls: Add support to ls dump bug information in specific formats
...
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'.
2020-06-16 15:05:48 +02:00
Michael Muré
6352d6aa23
generate docs and completion concurrently for a faster "make"
2020-06-14 22:26:47 +02:00
Michael Muré
78f39c4077
CLI: enable Fish completion
2020-06-14 19:46:24 +02:00