Commit Graph

17091 Commits

Author SHA1 Message Date
d026dfa72b Fix rendering of arrays 2023-01-27 15:34:41 +01:00
3dab3e6ffb Disable remarkup cache and handle meme files properly 2023-01-25 15:41:36 +01:00
f9d454431a More correct handling of files with missing transform
Use the original file URI if the transform is not available.

The preview generation is done on-demand when one visits a URL,
which is not easy to do from a baker.
2023-01-25 09:40:59 +01:00
d1037ee999 Disable links to commit in the task's "Revisions and Commits" 2023-01-23 11:05:52 +01:00
2ae41b71ce Allow linking diffs from another revisions 2023-01-23 10:21:28 +01:00
ee2cdc66a3 Correct link to the diff id 2023-01-23 10:11:08 +01:00
8c725e1f30 Only open absolute links in the new window 2023-01-22 20:53:40 +01:00
af28ab583d Make links open in the new tab
This should allow opening links form inside baked
result shown from an iframe.
2023-01-22 17:26:02 +01:00
36c5a9da1e Correction for the previous commit 2023-01-22 15:46:58 +01:00
63443cef58 Correct links to the ghost comment navigation 2023-01-22 15:39:58 +01:00
4d0bbd65c2 Disable more links in various places 2023-01-22 10:43:29 +01:00
ab636281d4 Disable extra information link
It is not really easy to check it locally since some
real repo setup is needed. So, hope for the best.
2023-01-22 10:15:17 +01:00
ae771df2af Disable visibility of badges 2023-01-21 18:54:28 +01:00
e76e6e14c0 Remove Show Details link
It is not baked into.
2023-01-21 18:41:48 +01:00
b43fabc696 Disable links to people form comments 2023-01-21 18:33:27 +01:00
be6ca4dc7d Remove task creation crumbs 2023-01-21 18:21:24 +01:00
06ff69a03c Support rendering pages with crumbs 2023-01-21 18:18:29 +01:00
f28236b2cc Correct links to task
Also explicitly use index.html
2023-01-21 17:57:34 +01:00
895ebed023 Disable project workboard links 2023-01-21 17:47:59 +01:00
c06a59147c Implement maniphest baking 2023-01-21 17:38:01 +01:00
2d960622d3 Fix URL to the raw diff 2023-01-21 14:01:28 +01:00
d50ac79793 Tweaks to baker to use the final directory structure 2023-01-21 13:50:40 +01:00
f5633edf97 Order revisions from oldest to newest
Allows to more easily see the progress.
2023-01-17 12:49:47 +01:00
2ac637aa24 Allow git bundle to use conduit for file access
Some of the changes can not be accesses without this.

Also improved logging and skipped raw diffs if they
already exists.
2023-01-17 12:40:15 +01:00
092c2411d2 Disable buildable status
It contains not-trivial-to-find-links and it does not
bring much information because the CI/CD was never
integrated into the developer.b.o
2023-01-17 11:41:39 +01:00
b967dd64fa Print message about the initial query
Helps to see that the delay is actually expected.
2023-01-17 11:26:38 +01:00
affd4cfd0d Disable more links in the history and local commits 2023-01-17 11:21:54 +01:00
8a882018b9 Initial commit of differential baking changes
NOTE: This branch is not to be deployed as a website, but instead
to be used as a client of a cluster (to have access to the database)
and run the baking script in a unattended mode.

A lot of tweaks all over the place to make the generated HTML suitable
for use in a static HTML with remapped paths to be relative and so on.

NOTE: Because of those tweaks the file rendering and access will not
work as expected when viewed from the website: it will be 404 because
it has different means accessing files than the static HTML. It is not
possible to keep website rendering correct, but it makes it harder to
investigate what parts needs attention without running the baker.

The baking script is found in `scripts/bake/bake_differential.php`
and it receives a single argument which is a directory with the baked
files.

Covers the following aspects:
- File attachments
- Image previews
- Pastes

The user avatars are replaced with the default user avatar.
2023-01-17 10:19:43 +01:00
Anna Sirota
436e69f1d0 Fix alignment of custom badges
Reviewed By: Sergey Sharybin (sergey)
Differential Revision: https://developer.blender.org/D13741
2022-01-06 12:10:57 +01:00
5db4b6f01a Add custom icons for Blender ID badges
Reviewed By: Sergey Sharybin (sergey)
Differential Revision: https://developer.blender.org/D13535
2021-12-10 13:04:22 +01:00
5aabb434b1 Disable as Spam - admin-only option to handle spammers
This implements a convenient way to handle spam users, mimicking the steps the
admins already do manually:

Performed tasks:
* Disable Account
* Real Name -> "spam"
* Title -> ""
* Icon → ""
* Blurb → ""
* Profile Picture → default

This is disabling the account using the same functionality as the "Disable User"
button. And on top of that it replaces the account real name with "spam" and
wipe the other personal information.

Note that this doesn't delete any posts from the user.

Reviewers: sergey

https://developer.blender.org/D11904
2021-07-14 16:22:10 +02:00
eced78a591 Phabricator: Extend CONDUIT API to support xaction transactions
Example of null transactions and their expected value:

* D9:transaction 44 - "abandon"
* D22:transaction 112 - "commit"
* D22:transaction 96 - "accept"
* D1123:transaction 22872 - "rethink"

Reviewers: sergey

https://developer.blender.org/D11568
2021-06-10 16:36:21 +02:00
fb3e6ba493 Fix duplicate system users added on every update
Was a mistake in the way how key de-duplication and non-phabricator-managed
commit access was dealt with.

For now simple fix: make sure user list is unique. Proper fix would require
something more sophisticated.
2021-03-05 12:05:49 +01:00
284204e6bb Detect duplicate keys form user configuration
Apparently there are some duplicates in the phabricator
configuration, even though the interface has a check against
this.
2020-11-05 12:50:00 +01:00
1df20d771c Initialize committers variable
Prevented the check for variable collision detection from
previous commit: first time the committers property was
null.
2020-11-05 12:45:23 +01:00
6fa976f749 Make sure committers variable is never overwritten
Solves possible issue when having repositories "foo-bar" and "boo_bar".
2020-11-05 10:15:13 +01:00
8808cf8e8c Fix repositories not being properly escaped
In gitolite configuration variable which controls commit access must
not include dash.
2020-11-04 19:00:21 +01:00
f72b9824f3 Do not overwrite files if they did not change
This causes an extra file read, but the benefit is that it is easier
to compare data on the file system, quickly see what did actually change
and what did not.
2020-11-04 11:39:40 +01:00
ac94643ac7 Correct for the previous system keys refactor 2020-11-03 17:11:18 +01:00
ce3c14919d Fix for previous commit
Syntax error.

That's what one gets by typing code on one machine and testing on another.
2020-11-03 17:09:39 +01:00
c9fb4c2945 More fixes for gitolite configuration script
More usages of undefined variable.
Corrected mistake in collection of system keys.
2020-11-03 17:08:00 +01:00
57099f29d1 Fixes for gitolite synchronization script
- Typo in the variable used, caused by bad refactoring skills.
- Explicitly do pull rebase semantic.
2020-11-03 17:04:03 +01:00
acfdc33789 Fix gitolite config incrementally adding more and more new lines 2020-11-03 16:24:29 +01:00
a5efb1e8cd Initial implementation of gitolite integration script
Is based on old gitosis/gitadmin script, but it is heavily refactored
in the process of migration.
2020-11-02 16:13:24 +01:00
e0bd65be95 Support custom policy for GIT access rules
Implements following rules:
- Users
- Users of any project
- Users of all projects
- Administrators
- Signers

The 'If No Rules Match' the access is implicitly considered to
be 'DENY'.

It is not possible to control access based on the Moon phase.
2020-09-17 13:26:33 +02:00
1bcc201b0a Support custom policy for SVN access rules
Implements following rules:
- Users
- Users of any project
- Users of all projects
- Administrators
- Signers

The 'If No Rules Match' the access is implicitly considered to
be 'DENY'.

It is not possible to control access based on the Moon phase.
2020-09-17 12:38:14 +02:00
b2d7879162 Cleanup: Make variable naming more clear
Match the generator name passed via the command line.
2020-09-17 11:39:19 +02:00
775a1c2eef Remove SVN authfile generation
It is no longer needed (replaced with the auth_provider).
2020-09-17 11:37:18 +02:00
bd07cea6a6 Remove access to htpassword custom field
It is retired and is no longer in use, replaced with the auth_provider.
2020-09-17 11:35:36 +02:00
6139ce1841 Canned responses for bug reports
This shows a 'reply' icon in the markup form header. The config to add more
canned responses is `maniphest.canned-responses`.

Note: There is no validation (other than json), so the config is expected to
match the required fields ('name' and 'message')

Note: This shows at all markups, so technically it can be used for patch
review and other places where canned reponses would fit.

Differential Revision: D8034
2020-06-17 15:42:46 +02:00