Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/sagemath/sage_trac_plugin

Trac plugin used to support Sage development at trac.sagemath.org
https://github.com/sagemath/sage_trac_plugin

move imports around

7639efe376bba4da4cabb95a8e7c61708b7479e1 authored over 2 years ago by Frédéric Chapoton <[email protected]>
fix typo and rst error

69cf563b51292845f4a23253e9eea0259a56487d authored over 2 years ago by Frédéric Chapoton <[email protected]>
Merge pull request #25 from fchapoton/flake8_cleanup

almost complete flake8 cleanup

1d644a16ea89f9ed8232c92de6302d0622ec466d authored over 3 years ago by E. M. Bray <[email protected]>
fix typos

1b3ae251612e1c9cc867e325b6428460136394fe authored over 3 years ago by Frédéric Chapoton <[email protected]>
almost complete flake8 cleanup

57e6259ab4c5e915295faf5a245d9022e1f9c03e authored over 3 years ago by Frédéric Chapoton <[email protected]>
completing v1.3.1 release

ec1ccecdcc4a096b93741576a71a59e16850a327 authored almost 4 years ago by Erik M. Bray <[email protected]>
preparing to release v1.3.1

653507d42b3e88e919a69a13aee5726562195b28 authored almost 4 years ago by Erik M. Bray <[email protected]>
Fix a handful of bugs that were found after deploying v1.3.0.

1ff66702f0f1a10a2cca50e9a728493d6ced791e authored almost 4 years ago by Erik M. Bray <[email protected]>
completing v1.3.0 release

239997b73ad9e93888c35cfc6e376b68da049e65 authored almost 4 years ago by Erik M. Bray <[email protected]>
preparing to release v1.3.0

752f834aa04089fe732c60a5378bafc2ae4ec9ab authored almost 4 years ago by Erik M. Bray <[email protected]>
Merge pull request #24 from sagemath/status-badges

Add new [sage_trac:status_badges] config

9b2d017d2604040f99fc60820610f3ccbda4f7e1 authored almost 4 years ago by E. M. Bray <[email protected]>
Moved status badges to their own section on the ticket (with room now to grow).

Added options for setting margins around each badge--this is a quick and
easy way to support gro...

b6daca80afab18904d48e700fd926627164e8121 authored almost 4 years ago by Erik M. Bray <[email protected]>
Changelog entry

08c8b489136e0583008a023faf0f941108136060 authored almost 4 years ago by Erik M. Bray <[email protected]>
Slight HTML improvements

all status badges are grouped into a single div with flex display used to vertically
center the ...

e22bc7a79fb23020cde73cb9956e927a7f19bd17 authored almost 4 years ago by Erik M. Bray <[email protected]>
Add new [sage_trac:status_badges] config so we can easily add/modify these through

the config file.

The current implement meets all the needs of the existing patchbot status badge...

6d4ce9e968a0f1131e13c55af76169a52e322c11 authored almost 4 years ago by Erik M. Bray <[email protected]>
Based on #23 but with some minor changes

e.g. added options for github and gitlab repo URLs, and also
use other configurable values rathe...

f19f3bad524832949c9da3b114a5af8d7ddff842 authored almost 4 years ago by Erik M. Bray <[email protected]>
Disable buildbot_hook component completely since it's been broken for some time

and probably won't get fixed.

Bump next release version to 1.3.0.

88f71ff9b3a92387789730c3dee55a9141516153 authored almost 4 years ago by Erik M. Bray <[email protected]>
Merge pull request #19 from fchapoton/pyflakes

pyflakes cleanup

23cb907b6ea870cf055045adb12e5c71b7bb951b authored over 5 years ago by E. M. Bray <[email protected]>
pyflakes cleanup

51230f36f6c93b21b090a1e3cdad61dd5eaefa83 authored over 5 years ago by Frédéric Chapoton <[email protected]>
completing v1.2.2 release

a8da9eb58234fce998c28cb03f576f1bbcdf0f37 authored over 6 years ago by Erik M. Bray <[email protected]>
preparing to release v1.2.2

f6d7ffb2deba6f9a9c6876680e0cb189d08e31c3 authored over 6 years ago by Erik M. Bray <[email protected]>
enable e-mail notifications of ticket creation/changes

triggered by the gitlab hook

not fully tested yet as I would need to set up a dummy SMTP server,...

a881b10667cb742e44be66d7a2c47c6fdd3fb85e authored over 6 years ago by Erik M. Bray <[email protected]>
set the ticket 'author' field from the GitLab user's display name

147b017ff204ca907cd006c333e880e75ee1fc2f authored over 6 years ago by Erik M. Bray <[email protected]>
added documentation of gitlab_default_ticket_status

1937e12ac984b3421310bdef89cd6078e9dab00d authored over 6 years ago by Erik M. Bray <[email protected]>
add the ability to set the initial status of tickets created from MRs

by default it actually uses 'new', but it can be set to someting
else in the workflow like needs...

9cb4c08b083d898c8afd40e32a506ade368ba7e1 authored over 6 years ago by Erik M. Bray <[email protected]>
removed user icon image from the ticket description

The formatting was ultimately kind of ugly and distracting I think

b881cd1657831752efc851a7ad288c2d25e85430 authored over 6 years ago by Erik M. Bray <[email protected]>
completing v1.2.1 release

87c84cce85a39dd38ccc9c87d3b98c6187212363 authored over 6 years ago by Erik M. Bray <[email protected]>
preparing to release v1.2.1

2544129c2fee2945df6cbfd0103a157293f82385 authored over 6 years ago by Erik M. Bray <[email protected]>
fix typo

no idea how that happened; AFAIK the same code was running on the test server

a2e0957aea3d3deeadcbe21cb6d20f13ca8784c5 authored over 6 years ago by Erik M. Bray <[email protected]>
Added instructions for configuring the gitlab hook, as it's not completely obvious

48c0dae707ba3087d96c5c92f3ba9a7e234d7a17 authored over 6 years ago by Erik M. Bray <[email protected]>
completing v1.2.0 release

4fd7d2aa2421b3061b63ef62c9aca0120627ca6d authored over 6 years ago by Erik M. Bray <[email protected]>
preparing to release v1.2.0

b4ecefa737db398333c8683de9133edb23d1d459 authored over 6 years ago by Erik M. Bray <[email protected]>
on that last note: do not sync branches/tickets for closed merge requests

86353334fd7532b2adaf7a862b5653685b1d2b76 authored over 6 years ago by Erik M. Bray <[email protected]>
close merge requests when their associated ticket is closed.

I deliberately did not implement the other direction, as we may wish to close
a merge request bu...

8983b2e1a8b83dcfebd2dc5def1d1ecab99493f5 authored over 6 years ago by Erik M. Bray <[email protected]>
Added the GitLab merge request sync bot.

It takes merge requests from a project configured with the Trac server as a web
hook and creates...

69aee69c6ac8b0ae67ac483a5085e3e71145bb1c authored over 6 years ago by Erik M. Bray <[email protected]>
Added a new "markdown" wiki processor.

It's mostly compatible with GitHub and GitLab style markdown, modulo a few
corner cases.

b82420585c4bececc5d4e9305ffc29367125287f authored over 6 years ago by Erik M. Bray <[email protected]>
completing v1.1.0 release

f751f6d18dc0157ec8ec6b5231b29974db15714d authored over 6 years ago by Erik M. Bray <[email protected]>
preparing to release v1.1.0

772c395b709991370c099df212b286717bb45f90 authored over 6 years ago by Erik M. Bray <[email protected]>
initial version of the JSON Web Tokens plugin

49f401060846eda5b0d85626f78932dc9932357b authored over 6 years ago by Erik M. Bray <[email protected]>
fix rst syntax

001fb6313f86bac10283a6768ef57f8fca90d6dd authored over 6 years ago by Erik M. Bray <[email protected]>
finishing v1.0.4 release

3384d3be59a642f7a26b613dec458bc56e7602cf authored over 6 years ago by Erik M. Bray <[email protected]>
preparing to release v1.0.4

cf66a4a73f7ad428ed30b4432e82ee1be850b359 authored over 6 years ago by Erik M. Bray <[email protected]>
Fix crash when a ticket has a branch that is up-to-date with the current develop branch

c019424b2017c56e1bd93b69d85d9fab1d55915b authored over 6 years ago by Erik M. Bray <[email protected]>
completing v1.0.3 release

06af21ba2a308653835fe2e333bdb531dd71efb7 authored over 6 years ago by Erik M. Bray <[email protected]>
preparing to release v1.0.3

748b1f3896a63aacf818223b0c356c72511225c6 authored over 6 years ago by Erik M. Bray <[email protected]>
Fix bug with output of merge commit preview for tickets with merged branches.

Some additional code cleanup.

1b58a1793cc349b553f5336df884e1a31b5c0b41 authored over 6 years ago by Erik M. Bray <[email protected]>
completing v1.0.2 release

7e750ef6cc5a5f72a3c0dedc9cdced5282ad2438 authored over 6 years ago by Erik M. Bray <[email protected]>
preparing to release v1.0.2

28db0de9bbe528df790deebbdcafbda8ed2b3052 authored over 6 years ago by Erik M. Bray <[email protected]>
Changelog entry

fcd6c15deb83467dd0878ed25dcae07f7a1955bb authored over 6 years ago by Erik M. Bray <[email protected]>
fix up handling of commit log urls

217d1a5e6d7a4115f4f6ca6f5cd498a2afe0104f authored over 6 years ago by Erik M. Bray <[email protected]>
completing v1.0.1 release

43397e358a8c94aff565ccb6fb8361e2e81afd37 authored over 6 years ago by Erik M. Bray <[email protected]>
preparing to release v1.0.1

99492368839404c92f5a57124eaa058116ff1b89 authored over 6 years ago by Erik M. Bray <[email protected]>
Turns out the order of these columns is reversed in the live database, and the migration did not switch them. Easier just to switch them back the right way around...

05224a1f6adaa7846bc4cd109ccbcbb1de9067a3 authored over 6 years ago by Erik M. Bray <[email protected]>
it seems a subtlety of postgre's isolation levels is such that I can't simply delete and insert on the same key in the same transaction

4233e8ae16c9f83e91b0c3b36afb4b1793f03a21 authored over 6 years ago by Erik M. Bray <[email protected]>
completing v1.0.0 release

d914a5a51e3a47f06451e23e588cdbeba89696f5 authored over 6 years ago by Erik M. Bray <[email protected]>
preparing to release v1.0.0

a9f32ae1ddbba236fe27943cf2a5e24c5f0d83f8 authored over 6 years ago by Erik M. Bray <[email protected]>
More fixes to this query--obviously it should ignore SSH keys already added by the current user

57543de10fba058d24e1f35774d6692097c4379b authored over 6 years ago by Erik M. Bray <[email protected]>
fix typo in this query

d57be9985d4b760e56e9b454878305cd207e6fbf authored over 6 years ago by Erik M. Bray <[email protected]>
This template is no longer used since we instead apply updates to the ticket box template directly through a stream filter

0fef48f42cede544dbea89ad98059d2c4f74cae0 authored almost 7 years ago by Erik M. Bray <[email protected]>
Unfortunately using the key column as part of the primary key constraint breaks on postgres because there is a size limitation on the data allowed.

In theory we could instead use a contraint just based on the md5 hash of the key or something,
b...

60dec0d8d9c5ffc06a9cff12f57ffae04d874cf5 authored almost 7 years ago by Erik M. Bray <[email protected]>
Prevent users from uploading duplicate keys, particularly to different accounts.

7c80a20d12b4fc5124f238f1bb8b84790e3a94be authored almost 7 years ago by Erik M. Bray <[email protected]>
Improved handling the case where an old merge commit has been purged

from the repository, and a ticket's diff can no longer be viewed / has
to be regenerated by addin...

5cec7c597883847df6246f23807f50f1d445cb18 authored almost 7 years ago by Erik M. Bray <[email protected]>
fixed crashes that could occur in the unlikely case that the configured master branch for the repository does not actually exist in the repository

07f7ffc5248f417200183f21ba84e6ac9b33da66 authored almost 7 years ago by Erik M. Bray <[email protected]>
Some versions of pygit2 raise a ValueError if a branch name is passed to Repository.get

9cbb9f7a28a23d587cc73718458634357b4ac31c authored almost 7 years ago by Erik M. Bray <[email protected]>
Fix silly little bug with the default patchbot_url

258f2091f032c191fd90af4824003cdb66d42c16 authored almost 7 years ago by Erik M. Bray <[email protected]>
fix display of annoyingly long branch names (in particular this should make copying easier too)

d141a2df3f00f39354ed2616383c838cb561b5aa authored about 7 years ago by Erik M. Bray <[email protected]>
Remove Windows newlines from this file

7c89417bee5668b8fa5a227967571b6d0900f1ad authored about 7 years ago by Erik M. Bray <[email protected]>
Add some changelog entries for v1.0.0

4f2496d88017e87788bfa83c15f44214bb2cc732 authored about 7 years ago by Erik M. Bray <[email protected]>
Calling the next version 1.0.0 since it has quite a few backwards-incompatable changes and some large database overhauls.

2e692225961b34793b31f8addedf938cae8bacfb authored about 7 years ago by Erik M. Bray <[email protected]>
Enhance the TicketBox module to add modifications to the ticket page that were previously provided by a custom version of the ticket_box.html template

f32df7f6259e7560b79c55e522b4090e29eb821e authored about 7 years ago by Erik M. Bray <[email protected]>
remove now superfluous add_stylesheet

6cd25ac11f2022c5630ffc7dd0ae644b290cf3e5 authored about 7 years ago by Erik M. Bray <[email protected]>
Make sure to include our stylesheet even when branch is not set

1038124867adfe142f8e23a732125875ee678da0 authored about 7 years ago by Erik M. Bray <[email protected]>
Rename the TicketBranch component (and the module it's in) from TicketBranch to TicketBox, since this will contain further customizations to the ticket box.

ae483bfcba12f1fa793c02d6ac23a09a1f0fb090 authored about 7 years ago by Erik M. Bray <[email protected]>
Adds config settings and defaults to use for the username/e-mail to commit to git with, since git can't always figure it out automatically

cd25c40f553328a904f401216053b77f6e1c958b authored about 7 years ago by Erik M. Bray <[email protected]>
Some fixes to chdir handling for running commands in the gitolite_admin repository. This was very wrong, and unfortunately didn't change directories at all when necessary.

c2e19d9e9230e638a14553549602d3f5b70540fc authored about 7 years ago by Erik M. Bray <[email protected]>
Turns out 'user' is a terrible column name in psql, where it's a reserved word, and failing to quote it will destroy your data.

Make sure to quote it in the DB upgrade method, and use 'username' instead for the new schema.

...

928022a7e880ab51d739d4c2fd29551087017602 authored about 8 years ago by Erik M. Bray <[email protected]>
Relying on DISTINCT from the database alone was not enough, due to presence of values with trailing whitespace.

7ba7ac91c5002b925baa901392db4be5928b3b29 authored about 8 years ago by Erik M. Bray <[email protected]>
The new ssh_keys table has a stricter unique constraint, so make sure to only select distinct user/key pairs.

39bbb337221be08940c35d652a0456c65a7eb725 authored about 8 years ago by Erik M. Bray <[email protected]>
Don't run _init_gitolite_admin if we're running trac-admin as this almost always fails.

There are probably other cases where we don't want this either. Ideally we should check if we'r...

d8325e498b4a932b34c59c442d7ad26da65e765d authored about 8 years ago by Erik M. Bray <[email protected]>
Initial support for an optional base branch to generate merge previews against. If not specified,

the configured master branch is assumed. But otherwise branches can now be compared against each...

a4e98b838cb8421d23ae54b9dcc3391de07eba43 authored about 8 years ago by Erik M. Bray <[email protected]>
Initial support for /git-merger URLs that redirect to the merge preview (if it

merges cleanly) or back to the ticket otherwise.

Update all links in the ticket for the merge pr...

8aa4888bde222f9b6f394c8fe7c0b4d3ae563c01 authored about 8 years ago by Erik M. Bray <[email protected]>
Move find_merge_and_base to the GitMerger base class, and use it

to implement get_merge_url, which contains the logic for generating URLs
to merge results and com...

6405eb14747f904e886bd1484e1bfa3adc3e8581 authored about 8 years ago by Erik M. Bray <[email protected]>
Minor styling improvement--ensure that the styles from neither link in the 'Branch' property bleeds into the space between the links.

fefce6dbf23c02f21a6029c3564b732e3dd8f7c0 authored about 8 years ago by Erik M. Bray <[email protected]>
Add the sage specific stylesheet for tickets as part of the plugin (rather than a file that needs to be manually installed in the environment's htdocs directory).

Unclear yet if there are any other pages where this stylesheet ought to be included.

2564244261b175cf4f3c03e09eb84fbdfa16db97 authored about 8 years ago by Erik M. Bray <[email protected]>
Fix bug in merge_store insertions

4cda8dcc108fb509ff906495357492c1824fbcfe authored about 8 years ago by Erik M. Bray <[email protected]>
keyword arguments after *args are not allowed on Python 2

f2e523dcc3816d80fb50756197c9db9048ef9b40 authored about 8 years ago by Erik M. Bray <[email protected]>
As base-classes for other components that don't provide any functionality on their own, the GenericTableProvider and GitBase components should be marked 'abstract'.

ebc8a39b498677d7af48594ed90a0669c8e75c0f authored about 8 years ago by Erik M. Bray <[email protected]>
Factor out the _git method from the SshKeys component to a run_git function that can

be used by other components (including the GitMerger plugin).

Handle errors in cloning the git r...

f8ba9b6b97a5d7ea23511c5fef5b4525e9dc1275 authored about 8 years ago by Erik M. Bray <[email protected]>
Initial cleanup to the GitMerger component.

Switched it over to use GenericTableProvider for its table--this
requires a small DB upgrade (ju...

0f57d4eaa5443a1b6ff717d8bf6ad841fbf75168 authored over 8 years ago by Erik M. Bray <[email protected]>
Deprecate the UserDataStore component entirely. Transition the SshKeys component to be a GenericTableProvider, and add a new schema for SSH keys that anticipates (hopeful) future enhancements.

This also provides an upgrade path which copies the user_data_store table into the new sage_trac...

ba0e683d1dab2248eb9ed0693add135742b22e7c authored over 8 years ago by Erik M. Bray <[email protected]>
It may be useful to run upgrade_schema even when creating new tables (for example to copy data from some old table into the newly created table(s). To that end, also do everything within the same DB transaction.

b56bb3377f149bbf1083fe375c0286fafb05bede authored over 8 years ago by Erik M. Bray <[email protected]>
Don't break if _upgrade_schema is not implemented by a subclass.

b0d0cb2fe3a867f02b2f298ea55aba7b7d4908ce authored over 8 years ago by Erik M. Bray <[email protected]>
Add missing self-lookups.

1b56cff590c66619dd3090ddf323c9f8577af23a authored over 8 years ago by Erik M. Bray <[email protected]>
Add missing imports

407150b7344305a8f63dd31eca663d9b8168552a authored over 8 years ago by Erik M. Bray <[email protected]>
Initial version of the GenericTableProvider mix-in component

c28eff6b8adc41697aa6c5bae5302861bdecde91 authored over 8 years ago by Erik M. Bray <[email protected]>
Make Component __init__s into good super citizens (not also that the __init__ of Component subclasses is not expected to take any arguments)

4329b046628d5592eee0d8c9d732419f193a2e5d authored over 8 years ago by Erik M. Bray <[email protected]>
Adding a bit of thread-specific instrumentation too

e27ff09b66e38172e24d34e18e93ed6cfd4319e1 authored over 8 years ago by Erik M. Bray <[email protected]>
Instrumented with a bunch more logging, and also a bit more robustness in the _git method.

c6fd18b68bb08f42cf29aa56201bd59d5b888b54 authored over 8 years ago by Erik M. Bray <[email protected]>
Separate clean and update steps. This is a first step in fixing an issue where running trac-admin fails here, during Environment initialization, when running as a user who does not have credentials for the gitolite-admin repo

ed6010e942b7506c34962152544d98f29449e68b authored over 8 years ago by Erik M. Bray <[email protected]>
Fix minor syntax error

5bc25a47c42da0acc11ea1bae47ed0c1ee6a23ed authored over 8 years ago by Erik M. Bray <[email protected]>