summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/tickets
Commit message (Collapse)AuthorAgeFilesLines
* Update some outdated, and sometimes wrong, logger format stringsFlorian Zschocke2023-10-246-62/+49
|
* Reindex tickets on server start if no index existsFlorian Zschocke2017-03-056-16/+53
| | | | | | | | | | | | | | Check if tickets need to be reindexed when the server starts. This is the case if no ticket index exists. In that case the ticket index is built. This is done during the start of the `ITicketService`. For this the interface of `ITicketService` needed to change. The `start` method was defined abstract and the specific ticket services had to implement it. None does any real starting stuff in it. The `start` method is now final. It calls a new abstract method `onStart` which the specific ticket services need to implement. In the existing implementations I just changed `start` to `onStart`.
* Introduce an index version for the ticket indexFlorian Zschocke2017-03-051-9/+9
| | | | | | | | | | | | | | | | | In order to be able to update the index definition, the ticket index is assigned a version number, 2. This way the definiton can be updated and compatability with existing index files can be checked. The actual index is stored in a directory of name `indexVersion_codecVersion`. This wayit is veriy easy to check if an index of a certain version exists on the filesystem. It allows to have multiple indexes of different versions present, so that a downgrade of the software is possible without having to reindex again. Of coure, this is only possible if no new tickets were created since these would be missing in the old index. A new class `LuceneIndexStore` is introduced, which abstracts away the versioned index directory. The idea is, that this provides one place to keep the Lucene codec version and to allow to code compatibility rules into this class, so that older indices can still be used if they are compatible.
* Add DocValues to support sorting of ticket index fields.Florian Zschocke2017-03-051-0/+7
| | | | | | | | | | | | | In order to support sorting, Lucene 5 needs DocValue fields in an index. So in order to make the ticket index work, i.e. show any tickets on the tickets page, the ticket index needs to be changed, adding a DocValues field. The DocValuesFields are implemented for the current index, which does not use multiple values for a field. Should at any time in the future an existing numeric field get multiple values stored in a document, then the index needs to know that and use SortedNumeric DocValues and SortFields instead.
* Replace deprecated BooleanQuery constructor with builder.Florian Zschocke2017-03-051-10/+8
| | | | | Also replace deprecated `search` method with the one without a filter argument, since the filter isn't used anyhow.
* Remove obsolete Lucene version constants.Florian Zschocke2017-03-051-3/+0
|
* Bump to Lucene 5.5.2Luca Milanesio2017-03-051-15/+15
|
* Fix user mention regular expression and group replacement.merged--fixMentionsInTickets-985Florian Zschocke2016-12-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | The regular expression used for user mentions used to work only inside sentences. Also, since it tested for whitespace, the whitespace would get replaced, too, which would join lines together. Instead the new regex uses boundary matchers to match against word boundaires. As these are not capturing only the actual user mention can be captured and is then replaced. Also, this way the regex can ignore punctuation like in "@jim, look at this." Since Gibtlit now requires Java 7 we can use named capture groups. This makes the use of a centrally defined regular expression much safer. The (admittedly only) group to capture the user name is named "user" and can be referenced by this name. By using the name instead of a group number, the regex could be changed without the code using it breaking because the group number changed. A simple test is added for user mentions, which unfortunately has to deal with the full markdown replacement, too. Fixes #985
* Use REGEX_TICKET_MENTION instead of hardcoded regular expressionGlenn Matthys2016-12-101-1/+1
|
* Ticket Reference handling #1048Paul Martin2016-04-272-21/+95
| | | | | | | | | | | | | | | + Supports referencing: + Tickets from other tickets via comments + Tickets from commits on any branch + Common TicketLink class used for both commits and tickets + TicketLink is temporary and persisted to ticket as a Reference + Support deletion of ticket references + Rebasing patchsets/branches will generate new references + Deleting old patchsets/branches will remove the relevant references + Substantial testing of use cases + With and without patchsets, deleting, amending + BranchTicketService used during testing to allow end-to-end ref testing + Relocated common git helper functions to JGitUtils
* Fix for #962 - Delete patchset abilityPaul Martin2016-04-061-0/+25
|
* Document edit capability via ProseMirror submodule #974Paul Martin2016-03-271-102/+7
| | | | | | | | | | | | + New docEdit page with links from docPage and docList + Bespoke menu system with full screen edit mode + npm required for building client side scripts + Ant script added for BuildUI which performs npm commands + Update font-awesome to 4.5.0 + Factor out to JGitUtils common code in BranchTicketService for EditFilePage + getTreeEntries + commitIndex + Merge capability for document editing
* Revert "Merge pull request #915 from lucamilanesio/lucene-5.2.1"James Moger2015-09-181-15/+15
| | | | | This reverts commit 55c385e96e6594ec1ac3b5cd41ccd2df6048b696, reversing changes made to 61bb29d492ca9c34471ec0a119d1445ccde086e9.
* Bump to Lucene 5.2.1Luca Milanesio2015-09-091-15/+15
|
* Bump to JGit 4.0.0Luca Milanesio2015-06-121-7/+7
| | | | | JGit 4.0.0 fixes a memory leak but introduces a non-compatible change for closing the RevWalk: before it was release() but now is close()
* Fix exception in FileTicketService when deleting a repositoryJames Moger2014-10-311-0/+4
|
* Tickets - Priority, Severity optionsPaul Martin2014-10-202-1/+12
| | | | | | | | | + Severity indicated via new character indicator and color of ticket icon on ticket list + Priority indicated via new priority icon and color on ticket list + Indexed as integers to provide sorting and maintain language neutral index + Colours and indicator text controlled through CSS classes priority-<x> & severity-<x> + UITicketTest created to generate tickets of all types to ease debugging
* Support email View Ticket go-to-actionJames Moger2014-09-252-1/+20
|
* Merge branch 'ticket/183' into developJames Moger2014-09-171-1/+5
|\
| * Fix bug in migrating to BranchTicketServiceJames Moger2014-09-171-1/+5
| |
* | Merge branch 'ticket/153' into developJames Moger2014-09-041-2/+4
|\|
| * Quote all Lucene query args that have non-alphanumeric charactersJames Moger2014-09-041-2/+4
| |
* | Merge branch 'ticket/152' into developJames Moger2014-09-041-6/+12
|\|
| * Fix NPEs when handling referenced milestones that do not existJames Moger2014-09-041-6/+12
| |
* | Extract ticket service into an injectable object with a custom providerJames Moger2014-07-035-13/+19
| |
* | Use Guice annotations, not javax.inject annotationsJames Moger2014-07-034-8/+8
| |
* | Replace Dagger with Guice 4.0 beta and update Guava to 16.0.1James Moger2014-07-034-0/+20
|/
* Escape Lucene query values with hyphensJames Moger2014-06-271-1/+1
|
* DocumentationJames Moger2014-06-161-1/+1
|
* Add "email me on my ticket changes" preferenceJames Moger2014-06-051-2/+9
|
* Prohibit ticket updates for empty repositoriesJames Moger2014-05-151-0/+1
|
* Implementation of a ticket mgration toolJames Moger2014-05-025-28/+232
|
* Overdue labeling, notify changed tickets controlJames Moger2014-05-012-10/+38
|
* Allow milestone deletion within the edit milestone pageJames Moger2014-05-012-1/+18
|
* Create and update milestone pages with rename supportJames Moger2014-05-013-7/+35
|
* [findbugs] Null check on closing a repository in TicketNotifierJames Moger2014-04-171-1/+3
|
* [findbugs] Null checks on closing a repository in ITicketServiceJames Moger2014-04-171-8/+24
|
* [findbugs] Null check on closing a treewalk in BranchTicketServiceJames Moger2014-04-171-1/+3
|
* Update javadocJames Moger2014-04-171-4/+76
|
* fix NullPointerException in ITicketService and add TestCaseKevin Walter2014-04-151-17/+20
|
* Add TicketHook extensionJames Moger2014-04-125-0/+40
|
* Fix failure of RedisTicketService to determine hasTicketJames Moger2014-04-081-1/+1
|
* Fix possible NPE when deleting a repository and cleaning-up branch-based ticketsJames Moger2014-04-071-1/+3
|
* Fix NPE in FileTicketService on finding all journalsJames Moger2014-03-171-2/+6
|
* Clarify ticket fetch instructionsJames Moger2014-03-101-2/+2
|
* Repository owners were not CCd on ticket emailsJames Moger2014-03-101-1/+13
|
* Fixed incorrect ticket fetch instructions in email notificationsJames Moger2014-03-092-2/+3
|
* DocumentationJames Moger2014-03-081-3/+3
|
* Prevent Lucene queries from starting with a conjunctionJames Moger2014-03-081-0/+6
|
* Move Gitblit branches to refs/meta/gitblitJames Moger2014-03-081-2/+26
|