If there were a reflexive write of task transaction metadata to some project specific storage, (even some form of non-db log), this would be very useful, and much more elegant and smaller than having to query millions of Facts for the same information.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
All Stories
Jun 25 2015
Maybe I'm still just not understanding what you need. You can get all the data you want today like this, right?
@joshuaspence is hitting this reliably. I think this is the root cause:
Can you walk me through how the data is useless? The data is not in a queryable form, but it is complete: it fully captures the state change -- and we use that fact to render strings like "added project x" and "removed project y". To find adds and removes, you perform set differences on the "old value" and "new value". PHIDs only present in one of the two values were added or removed.
They're cached: when you update a Postprocessor without touching CSS, that doesn't dirty the caches, so this server still has a cached version of my old colors. It'll fix itself eventually, but I can look at making it smarter.
In T5578#66993, @GertJan_Schouten wrote:Thanks for the response! I hope this task will help increase the demand for this. I think manual QA will always be a part of software development, as you can't automate everything.
But I do not understand the reasoning for having such arcane and basically useless metadata for maniphest transactions.
I think that promoting Facts to address this problem is a red herring. I agree that Facts offers many advantages for offline processing of transactions. But I do not understand the reasoning for having such arcane and basically useless metadata for maniphest transactions. If you are trying to discourage the direct usage of transaction queries for performance reasons, this is also sensible. However, we need more descriptive data about task history that can only be provided with transaction metadata. Why not fix the problem where it exists? If you are reluctant to add more logic into TaskEditController, I understand that as well. This is a class that is desperate for refactoring.
This change isn't useful for the upstream, and isn't the direction we intend to pursue. See discussion here:
You can "Edit Revision" and remove the user as a reviewer to override their block (you can move them to CC at the same time to avoid kicking them off the revision entirely). This is a strong action, but overriding their rejection is also strong.
Looks like this has happened on this install a few times as well:
I think we also need a field on a lease to indicate that it's not a permanent lease, or it's a caching lease or something of that nature. Basically the host lease that the working copy has for it's cache shouldn't prevent the host resource from being closed if shouldCloseUnleasedResource returns true.
As part of this task, rPc6add6ae7329efc5f16d278f2c9df66662285205 has been done (a while ago).
php -r '$content = file_get_contents("/tmp/diff"); $content = iconv("UTF-8", "UTF-8//IGNORE", $content); echo $content;' | python -c 'import json,sys; print json.dumps(sys.stdin.read())'Yeah, the diff contains invalid UTF8:
Well, I think we're in a bad position, because this code:
to line 27 of AphrontJSONResponse (right after it constructs the JSON), shows:
to line 147 of PhabricatorConduitAPIController shows that the diff content does pass through this line at least once.
Adding file_put_contents('/tmp/diff3', $result); on line 92 of PhabricatorConduitAPIController.php shows that the result is still correctly stored at this point.
at line 136 of DiffusionQueryConduitAPIMethod on the storage tier results in the file having the diff content, so the issue must be further on than this.
When I change line 119 of DiffusionQueryConduitAPIMethod.php to:
I'm like 95% sure this has something to do with the content of the actual diff returned, like UTF-8 encoding or something like that...
Something is totally whack with the cluster configuration in the latest HEAD. For some reason, the storage tier is now constructing a Conduit client to code.pageuppeople.com, even though it should just run the command locally. Even worse, the $is_cluster_request variable is set to true, yet it still constructs a new Conduit client.
For some reason, the storage tier is attempting to forward the request on to another machine inside the cluster (presumably itself?) and is then recursing. This makes no sense given that the code in src/applications/diffusion/conduit/DiffusionQueryConduitAPIMethod.php at line 123 is designed to prevent recursion.
I ran the query directly against the Conduit API on the storage machine, from my local machine, and it returns an empty response (so it's got nothing to do with the requesting machine):
I modified diffusion.rawdiffquery to do the following before returning the result:
@epriestley, the high contrast boxes here are purple, but are not in my sandbox. Can't figure a reason why.
Jun 24 2015
There is a URI artifact type, so if you're writing your own custom build step in PHP, you can create a URI artifact that points to the CircleCI plan:
Thanks. If this workaround doesn't work for anyone, let me know.
Yep, that resolved it for me, @epriestley.
I just hit this again and am not sure what's causing it.
I think that patch fixes this, can someone who has a repro verify that it works for them? You can apply it with arc patch D13417 in libphutil/.
It looks like this has been reported to the cURL upstream in slightly different form already:
I ran into this and dug in a bit. It looked like the data was getting truncated, so I turned on CURLOPT_VERBOSE in HTTPSFuture.php. I noticed that the Content-Length header was getting set to the same value (39, for me) every time curl did an outbound request - even though strlen of the JSON body was something around 200.
Yeah, they're functionally identical.
I think this relates to T8644, which relates to the discussion starting T7804#107408.
Sure. Is there a task tracking this work so I know what to expect?
See also T7449.
Workboards would be a lot more useful if we could do this.
Seems like the core is in at least roughly in a good place, now.
IMPORTANT: This feature is new, experimental, and not supported. Use it at your own risk.
Avivey. The image can be seen in differential, that means there is no problem in server storage.
Another option is to add the following to .gitattributes:
Remove unrelated changes
After you add the phutil_tag for the "View More" link, add a class to it, phui-calendar-month-get-more. Then go to the css file specified on line 63 and add that class to the bottom of that file, with position absolute, height of 18px, padding to line up with the text of the events, and a color of {$lightgreytext}.
The Calendar application has several different builtin queries that provide different views of Calendar events:
- Month view
- Day view
- Upcoming view