Michael Muré
8818d091e8
move bug.Status in entities/common for reuse
2022-08-20 10:52:11 +02:00
Michael Muré
5511c230b6
move {bug,identity} to /entities, move input to /commands
2022-08-18 23:44:06 +02:00
Michael Muré
45f5f852b7
core: generalized resolvers to resolve any entity time when unmarshalling an operation
2022-08-18 15:55:48 +02:00
Michael Muré
d179b8b7ec
bug: fix an issue where Id would be used, then changed due to metadata
2022-07-31 14:38:32 +02:00
Michael Muré
3d454d9dc8
entity/dag: proper base operation for simplified implementation
...
- reduce boilerplace necessary to implement an operation
- consolidate what an operation is in the core, which in turn pave the way for a generic cache layer mechanism
- avoid the previously complex unmarshalling process
- support operation metadata from the core
- simplified testing
2022-07-25 13:27:17 +02:00
Steve Moyer
fd248de1eb
Merge branch 'master' into refactor/guarantee-test-cleanup
2022-06-22 11:08:20 -04:00
Michael Muré
b694052c46
Merge pull request #807 from MichaelMure/default-repo-name
...
cache: ensure that the default repo has a non-empty name to make js/apollo happy
2022-06-18 22:44:28 +02:00
Steve Moyer
1d4667c825
refactor(809): eliminate need to defer CleanupTestRepos()
2022-06-16 09:02:52 -04:00
Steve Moyer
eda312f9b1
fix(778): remove extra mutex lock when resolving bug prefix
2022-05-31 21:25:23 -04:00
Michael Muré
295da9c70f
cache: ensure that the default repo has a non-empty name to make js/apollo happy
2022-05-31 21:47:57 +02:00
Michael Muré
b11679bc80
Fix a bunch of comments and documentations
2022-03-10 16:30:27 +01:00
Michael Muré
7edb6a2c57
cache: fix empty actors/participants in the index
2021-04-22 15:00:27 +02:00
Michael Muré
51a2c85954
make sure every text input is safe and validated
...
fix #630
2021-04-17 17:40:11 +02:00
Michael Muré
5549925235
cache: many fixes following the dag entity migration
2021-04-08 16:18:31 +02:00
Michael Muré
fc04af34f5
Merge pull request #532 from MichaelMure/dag-entity
...
Work towards a reusable entity datastructure + commit signature
2021-04-04 15:49:16 +02:00
Michael Muré
f7dec7e96c
cache: fix no-label filter not properly wired
2021-03-29 11:13:40 +02:00
Michael Muré
aa0449a3ea
Merge remote-tracking branch 'origin/master' into dag-entity
2021-03-29 11:02:08 +02:00
Michael Muré
e985653701
cache: test for FTS bub with long description
2021-03-29 10:08:57 +02:00
Michael Muré
32958b5ca1
cache: only FTS index token < 100 characters
2021-03-28 23:26:58 +02:00
Miklos Vajna
cb61245078
Add ability to search by arbitrary metadata
...
Example:
~/git/git-bug/git-bug ls --metadata github-url=https://github.com/author/myproject/issues/42
or
~/git/git-bug/git-bug ls metadata:github-url:\"https://github.com/author/myproject/issues/42 \"
Fixes the cmdline part of <https://github.com/MichaelMure/git-bug/issues/567 >.
2021-02-21 14:15:50 +01:00
Michael Muré
45e540c178
bug: wrap dag.Entity into a full Bug in MergeAll
2021-02-14 12:38:09 +01:00
Michael Muré
3f6ef50883
bug: migrate to the DAG entity structure!
2021-02-14 12:19:50 +01:00
Michael Muré
fe4237df3c
entity: readAll and more testing
2021-02-14 12:19:01 +01:00
Michael Muré
dc5059bc33
entity: more progress on merging and signing
2021-02-14 12:19:00 +01:00
Michael Muré
db7074301b
entity: generalize the combined Ids, use 64 length
2021-02-14 12:17:49 +01:00
vince
d96284da64
Change the comment ID to use both bug and comment ID references.
...
Add comment edit command
This commit adds the comment edit command, which provides a CLI tool that allows a user to edit a comment.
2021-02-14 12:17:48 +01:00
Michael Muré
ab57d74a31
deal with the previous changes
2021-02-14 12:17:47 +01:00
Michael Muré
c884d557bf
repo: move bleve there
2020-12-08 14:42:13 +01:00
Michael Muré
4ef2c11040
repo: finish RepoStorage move
2020-12-08 13:07:51 +01:00
Michael Muré
b494e06804
query: english specialized indexing
2020-11-17 08:09:52 -05:00
Michael Muré
9bea84e232
ls: fix query quotation
2020-11-17 08:09:51 -05:00
Mike Goldin
ef0727860a
Add full-text search support in the ls command
2020-11-17 08:09:51 -05:00
Mike Goldin
0a827af60a
Create a search cache index when git-bug starts up if none exists
2020-11-17 08:09:51 -05:00
Michael Muré
499dbc0a03
identity: remove support for legacy identity
2020-10-04 20:50:15 +02:00
Michael Muré
ca720f165c
cache,bug,identity: structural change
...
- bug doesn't commit identities anymore, only make sure they are commit
- cache use an IdentityResolver to load bugs with identities from the cache (deps injection)
- IdentityCache now are identity.Interface
2020-10-04 20:39:10 +02:00
Michael Muré
1a0c86a12d
repo: use go-git in more places, fix push
2020-10-04 19:56:16 +02:00
Michael Muré
71b7eb1401
repo: implement local/global/any config everywhere
2020-09-29 20:42:21 +02:00
Michael Muré
3ecbf8db28
bridge: store credentials in the Keyring instead of the git config
2020-09-29 20:42:21 +02:00
Vincent Tiu
8a4e4a1290
Update cache/lru_id_cache.go
...
Co-authored-by: Michael Muré <batolettre@gmail.com>
2020-08-27 20:10:10 +08:00
vince
2440a208f6
Fix bugs and cleanup code
2020-08-26 09:27:31 +08:00
Michael Muré
4d678f3e05
cache: simplify cache eviction
2020-08-25 15:26:23 +02:00
vince
4b065029af
Implement cache eviction and testing
2020-08-25 11:08:53 +08:00
vince
6efada43e7
Implement the LRU Cache
2020-08-20 14:06:18 +08:00
vince
0fd09aa6b5
Fix concurrency error
2020-08-18 20:22:04 +08:00
vince
c215861e6f
Remove pointer and unnecessary code
2020-08-13 20:26:41 +08:00
vince
e9a7725ca4
Add mutex to bugCache
...
This adds a mutex to the bugCache to deal with locking.
2020-08-13 20:17:38 +08:00
Michael Muré
92a59eceee
cache: fix BugExcerpt's timestamp not properly stored
...
fix #426
2020-07-28 20:39:07 +02:00
Michael Muré
a62ce78c4f
bug: code cleanup for the rm feature
2020-07-28 14:30:07 +02:00
vince
18ddc77590
Fix bug tests
2020-07-28 14:30:07 +02:00
vince
6e315ea131
Update docs
2020-07-28 14:30:07 +02:00