Set textarea attribute with ckeditor

Hi,
First of all, thanks for your bundle which works good :)
However, I'd like to set defaults attributes of my ckeditor textarea like "label", "cols" and others wich set before on a basic textarea element symfony form.
I tried to : array('label'=>'MyLabel', 'attr'=>array('class' => 'myName', 'ligne'=>1,'colonne'=>2,'colspan'=>3, 'cols'=>50)))  in 'config' array or before the config definition but in vain.
What is the way for implement it please ?
Thanks by advance,
ISE.

Hum, are you saying that the following does not work?
$builder->add('my_field', 'ckeditor', array(
    'label' => 'label',
    'attr' => array(
        'class' => 'myName',
        'ligne' => 1,
        'colonne' => 2,
        'colspan' => 3,
        'cols' => 50,
    ),
));

@InternalServerError ping

@InternalServerError ping

Closing as I just test it and everything works as expected and there is no actvity from the reporter.


Use temporary directories for go-build* output

If you're running go-build* on windows, /dev/null doesn't exist so the hook fails.
With this change, a temporary directory is created for the output of go build.

I'm going to close this PR 1) due to lack of activity and 2) Googling suggests that MS is working in making /dev/null behave as expected in WSL, so we'll count on that coming along.
Thanks for taking the time to work on this and for your interest in my project in general.
-TW


Fix erroneous comparison of hosts during URI matching

Fixes #2 by comparing the URI parameter's host against the member URI's host.

Thanks a lot for noticing this! I plan to add unit tests soon which should cover mistakes like this!


Enable preserving-definedness atrribute for rules discovered during ceil analysis

Closes #424.
This is a fix for the ceil analysis introduced in #402. We successfully infer definedness, but don't currently mark the rules as preserving definedness correctly.

| Test                                    | sam-ceil-fix time  | master-6e29375 time | (sam-ceil-fix/master-6e29375) time
|-----------------------------------------|--------------------|---------------------|------------------------------------
| erc20/hkg/transfer-success-1-spec.k     | 59.57              | 62.84               | 0.9479630808402291
| mcd/flopper-cage-pass-spec.k            | 68.41              | 71.66               | 0.9546469439017583
| erc20/hkg/transfer-success-2-spec.k     | 57.34              | 60.02               | 0.955348217260913
| erc20/ds/transferFrom-success-2-spec.k  | 90.8               | 94.99               | 0.9558900936940731
| erc20/ds/transferFrom-success-1-spec.k  | 101.81             | 106.08              | 0.9597473604826546
| examples/storage-spec.md                | 198.25             | 205.23              | 0.965989377771281
| examples/erc20-spec.md                  | 247.03             | 237.31              | 1.0409590830559183
| erc20/hkg/transferFrom-success-1-spec.k | 80.61              | 76.14               | 1.0587076438140268
| erc20/hkg/transferFrom-success-2-spec.k | 74.26              | 70.09               | 1.0594949350834642
| erc20/hkg/approve-spec.k                | 61.46              | 55.92               | 1.0990701001430614
| erc20/ds/approve-success-spec.k         | 76.35              | 68.62               | 1.112649373360536
| TOTAL                                   | 1115.8899999999999 | 1108.9              | 1.0063035440526646

This seems like something we should have a testing harness (and test) for? Especially since a bug was found in it.


no such file or directory

npm run start
backend:
Error: ENOENT: no such file or directory, stat '/Users/c/go/src/github.com/decentraland/kernel/static/index.js'
Error: ENOENT: no such file or directory, stat '/Users/c/go/src/github.com/decentraland/kernel/static/index.js'
frontend:
rollbar.min.js:1 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of RefFindNode which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node

Hi @wade-liwei that issue happens when you don't have the kernel server running. To know how to do it you can check this link


Profile_card - {Shailendra Singh}

Please merge my pull request.
Thank you

Hey @Shailendra1703 !
Thank you for your valuable contribution. As I found, they(Hacktoberfest) are verifying the code in the PR so I recommend that you add your code to a "code folder" as well to avoid any consequences (your code should be in a folder named after you). Sincerely apologize for the inconvenience.

Okay I'll add it.


fix merge conflicts in CCBR/main

Changes
This just merges the CCBR main branch and fixes merge conflicts, so the other PR can proceed.
Issues
https://github.com/CCBR/CARLISLE/pull/132
PR Checklist
(~Strikethrough~ any points that are not applicable.)

[x] This comment contains a description of changes with justifications, with any relevant issues linked.
~[ ] Update docs if there are any API changes.~
~[ ] Update CHANGELOG.md with a short description of any user-facing changes and reference the PR number. Guidelines: https://keepachangelog.com/en/1.1.0/~

@epehrsson your tests might not work until this gets merged -- it contains a bug fix for singularity bind paths.


is it possible for vault.on(…) event to listen to the hidden folders?

Currently, changes in hidden folders (including .obsidian folder) do not trigger an event to vault.on. Is there any way to keep track of the changes in hidden folders?

Vault events ignore hidden folders on purpose. However you can listen to the global vault "raw" event that is fired for every file event including hidden files and folders. You need to be extra careful in your event handler to keep it performant and exit early.
Also, please ask in the discord server first - I'm sure a few other plugin authors are aware of how to achieve this. The GitHub issues here should only be used for confirmed deficiencies and improvements to the API surface, rather than a help channel. Thanks.


Running mongo-connector in production

First, my setup:
Elasticsearch: set up through Bonsai on Heroku
Mongo: set up through mLab as a replica set
mongo-connector: set up in a Heroku app and initialized via Procfile
Using this setup I am able to get mongo-connector up and running in production. It currently has about 8 million documents (about 4 million of which are mongodb_meta items). However I notice that even though I see a large amount of sync activity going on (and this has been going on over several days) the majority of the connector's activity seems to be creating a lot of PUT requests for items that are already in elasticsearch. At this time it's about a third of the way done but it is proceeding much slower than it did when the sync first started.
Before setting this up in production I ran a local test with a smaller set of data (about 10 percent) and was able to perform the sync and verify the results. I wonder if there could be an issue related to running the connector on Heroku (where I don't have total control over the oplog.timestamp). I have a ticket open on their end but wanted to find out what the word is here. Thanks.

Unfortunately, I'm not familiar with Heroku. Do you happen to know if mongo-connector is getting restarted? Can you post log files? If the oplog.timestamp file does not exist when mongo-connector (re)starts, it will dump all the specified collections and start tailing the oplog.
Is the MongoDB data being updated? The elastic-doc-managers reindex the entire document to replicate updates from MongoDB. That may be one reason why you're seeing many PUT request on the same ids. What is the update/insert activity in MongoDB?
Also, can you calculate how fast mongo-connector is syncing data? Either during the collection dump, or when tailing the oplog.

@ShaneHarvey I've just heard back from Heroku, and as I expected the filesystem is clean every time they do a build or restart. You do have access to the FS while your dyno is running, which means mongo-connector can make the oplog.timestamp file, it just won't persist.
To answer your questions:

I believe MC is not getting restarted but I need to run it logging to stdout to see it from heroku. I'll need to put this on hold till I have time to monitor it.
Mongo is not being updated very often. It is working against an app in staging that is under moderate use, and has a number of worker processes running at all hours, but these mostly gather metrics.
There are about 7 queries per second to mongo, and less than one update and less than one insert per second.
mongo-connector is running and firing PUT requests but no data is being synced at the moment. The usual practice over these several days has been that approx 100,000 docs are imported per day, but for several hours during the day you will see no increase in elasticsearch docs at all. Instead I see an increased total count the following morning. I have seen a constant stream of PUT requests any time I look at the ES activity log on Bonsai but I have seen no increase in total ES items in about two days.

Thank you for following up with me. I'll drop a note here when I have more data.

Hi @leonidez
Did you have any success using mongo-connector running on a Heroku dyno?
I'm planning to do the same, please do share.
Thanks


⚠ SolarOscp has degraded performance

In 42e8761, SolarOscp ($SOLAROSCP_URL) experienced degraded performance:

HTTP code: 200
Response time: 394 ms

Resolved: SolarOscp performance has improved in 422f146.


Subaru: Forester Hybrid 2020 dashcam

Original work thanks to @martinl!
All Subarus have the ES_DashStatus message which is sent by the camera and contains the cruise state signals we need, however there's another higher frequency message sent by the car CruiseControl (20 vs 10 Hz) so we currently use that instead. On the Forester Hybrid though, we only have ES_DashStatus from the camera.
The plan:

[ ] Doesn't make sense CruiseControl would be missing, there should be a readback from the car somewhere, try to see if it just moved addresses.
[ ] If not, try to find another common message and signal that all cars can use, and as a fallback, just use the lower-frequency ES_DashStatus so no safety params are needed.

Need:

[ ] Test route
[ ] Car info

@sshane applied your suggestions from the crosstrek pr. I'll add a route tomorrow. Can you review this? (cant request a review because it's your PR)


gittuf <-> Git command compatibility

To improve gittuf's UX (#4), the CLI must provide some command compatibility with Git itself. This would allow users to use gittuf as a drop-in replacement for Git in common workflows such as syncing with remote repositories.
This is complementary to #158, where gittuf installs the right hooks to perform gittuf-specific actions for a repository. There, the user has gittuf installed but does not invoke it directly most of the time.

After playing around with gittuf for a day now and having a think about the required verbs, I am not convinced someone would actually need gittuf to be a drop-in replacement for git. The usual day of a software engineer should only interface with gittuf when pushing, i.e. add an rsl record, right? The usual workflow of feature branch -> commit -> push, really only needs the one RSL operation we covered using the git hook. This would even hold true if the repository was freshly cloned, as the hook syncs the RSL before making the change.
On the other hand, all verification (primarily) happens in the CI system...?
Have you thought about creating something like user stories and personas to describe how different folks would use git and gittuf in a perfect world? We could even codify them as end 2 end tests (as the features become available in gittuf), so we can guarantee a feature does not break.
Do we have concrete usecases that are cumbersome today?

So in my view, gittuf verification is more likely to happen on the developer machines and eventually at the repository.  CI system, etc. verification is useful, but isn't the primary place most issues are detected.
Alice, who uses gittuf, does a pull and her client notices Bob, who does not use gittuf, has violated policy by pushing directly to master.  Alice's gittuf client remediates this issue and pushes a revised RSL entry.
We're really worried about Alice's workflow here.  An older design had Alice switching between git and gittuf commands as she does her daily operations.  The plan here is to have Alice be able to use / alias to gittuf and just use her normal workflow.  The only different commands she needs to type than Bob is when Alice needs to add a policy or do something gittuf specific.  Then since Bob doesn't even have a command of that type, of course Alice needs to type something Bob doesn't...

+1, I think CI verification obviously makes a lot of sense, but there's a lot of value IMO in increasing the number of verifiers by having all gittuf users in a repo verify automatically.

I would like to help with gittuf pull.

I don't know enough about gittuf yet to be certain that it is conceptually viable, but ux-wise I'd imagine something like aiming for simply adding a git tuf sub-command to the cli experience.
All operations (e. g. fetching) that can be handled transparently for the user should be and for something like adding rules there is the contained addition of a single new sub-command.
This would be especially helpful for supporting gits wide range of flags/functionality in the tuf-specific commands and at the same time improving maintainability by having most functions handled by 'upstream' (git).
I noticed the need for this when trying to do gittuf -C path/to/repo verify-commit ....

That's a good point. We've discussed supporting some operations as a custom git subcommand, but there's an open question there about RSL entry creation. I suppose a combination of subcommand for policy specific ops + hooks for the RSL entries might work but I'm wary of how brittle that may turn out to be.

Here's what I propose for the implementing command compatibility.
We make internal/cmd the package for the explicitly gittuf commands, those that manipulate policies, the RSL and so on, and have a separate internal/frontend or so package that is a lightweight wrapper around Git. This package, (like the transport in #411 does) would wrap around a Git subprocess, passing on almost everything to Git itself, but interposing specific commands like clone, push, pull, etc. to add gittuf specific actions. Installing the gittuf package (we'd have to work with packaging maintainers here) would install the internal/cmd gittuf binary, the internal/frontend gittuf-git binary, and the internal/transport git-remote-gittuf binary. We do not want to call the frontend binary git; there'll still be an explicit one-time opt in by a user to use the front end.

I think if we go this route, we'd want something a lot less opininated than cobra when it comes to expected flags etc. So internal/frontend would be extremely lightweight; we'd only parse the arguments / flags to separate out the gittuf specific ones but otherwise just send everything else to the git subprocess.


restore tutorial

@patflynn @kmccormick I still don't understand what happened to these docs but luckily I found what looks like an up to date version on my laptop.

@elharo I may have accidentally deleted the gh-pages branch when cleaning up our branches. Sorry about that. I would suggest to make that branch protected but I guess its not needed now that github allows it on the master branch.
lgtm


download times out but still saves

The Issue
Looks like a datablob timeout but the file does continue to save/write to disk. @akinwale ran into something similar.
2019-05-18 11:51:37,067 INFO     lbrynet.stream.stream_manager:388: starting download for lbry://ching-chang-chong-2#1050fbf7a422e2b08714896ab6db209c1cf2fb82
2019-05-18 11:51:37,068 INFO     lbrynet.stream.managed_stream:270: start downloader for stream (sd hash: f7bd08071c1a740c45fae6d3b554d2f63785a1c0c5370cdd516c26338119b4b13b39dd8704a1fc0b96e81d2ccb02d0af)
2019-05-18 11:51:37,069 INFO     lbrynet.stream.downloader:92: searching for peers for stream f7bd08071c1a740c45fae6d3b554d2f63785a1c0c5370cdd516c26338119b4b13b39dd8704a1fc0b96e81d2ccb02d0af
2019-05-18 11:51:39,419 INFO     lbrynet.blob_exchange.client:137: downloaded f7bd0807 from <IP_ADDRESS>:5567
2019-05-18 11:51:39,419 INFO     lbrynet.stream.downloader:71: downloaded sd blob f7bd08071c1a740c45fae6d3b554d2f63785a1c0c5370cdd516c26338119b4b13b39dd8704a1fc0b96e81d2ccb02d0af
2019-05-18 11:51:39,420 INFO     lbrynet.stream.downloader:80: loaded stream manifest f7bd08071c1a740c45fae6d3b554d2f63785a1c0c5370cdd516c26338119b4b13b39dd8704a1fc0b96e81d2ccb02d0af
2019-05-18 11:51:39,420 INFO     lbrynet.stream.downloader:99: added head blob to peer search for stream f7bd08071c1a740c45fae6d3b554d2f63785a1c0c5370cdd516c26338119b4b13b39dd8704a1fc0b96e81d2ccb02d0af
2019-05-18 11:51:40,075 INFO     lbrynet.stream.managed_stream:350: save file for lbry://ching-chang-chong-2#1050fbf7a422e2b08714896ab6db209c1cf2fb82 (sd hash f7bd08...) -> /home/matheus/Downloads/lbryDowloads/ching-chang-chong-2.mp4
2019-05-18 11:51:56,822 INFO     torba.client.baseledger:133: lbc_mainnet: added BlockHeightEvent(height=569625, change=1) header blocks, final height 569625
2019-05-18 11:51:57,280 INFO     torba.client.baseledger:118: (lbc_mainnet) on_transaction: address=bZ3hcjHpCAmdaZXfTSiMTdC5xEHoBZie6q, height=569625, is_verified=True, tx.id=31905ccd165d6b78eacb33b9312683c009e3a39d2f69d0b8d2d9b689f995ae43
2019-05-18 11:51:57,397 INFO     torba.client.baseledger:118: (lbc_mainnet) on_transaction: address=bFQBgLjuC3QBSeQWViZyTNGjmaKbZTZmo2, height=569625, is_verified=True, tx.id=31905ccd165d6b78eacb33b9312683c009e3a39d2f69d0b8d2d9b689f995ae43
2019-05-18 11:52:03,636 INFO     torba.client.baseledger:133: lbc_mainnet: added BlockHeightEvent(height=569626, change=1) header blocks, final height 569626
2019-05-18 11:52:07,071 WARNING  lbrynet.extras.daemon.Daemon:914: Error downloading lbry://ching-chang-chong-2#1050fbf7a422e2b08714896ab6db209c1cf2fb82: Failed to download data blobs for sd hash f7bd08071c1a740c45fae6d3b554d2f63785a1c0c5370cdd516c26338119b4b13b39dd8704a1fc0b96e81d2ccb02d0af within timeout
2019-05-18 11:52:18,801 INFO     lbrynet.dht.blob_announcer:43: 1 blobs to announce
2019-05-18 11:52:36,754 INFO     lbrynet.dht.node:92: Stored f7bd0807 to 8 of 8 attempted peers
2019-05-18 11:52:36,766 INFO     lbrynet.dht.blob_announcer:51: announced 1 blobs
2019-05-18 11:53:03,664 INFO     torba.client.baseledger:133: lbc_mainnet: added BlockHeightEvent(height=569627, change=1) header blocks, final height 569627
2019-05-18 11:53:11,094 INFO     lbrynet.blob_exchange.client:137: downloaded 9ae7986a from <IP_ADDRESS>:5567
2019-05-18 11:53:11,106 INFO     lbrynet.stream.managed_stream:358: write blob 1/20
2019-05-18 11:53:30,159 INFO     lbrynet.blob_exchange.client:137: downloaded 432b0daf from <IP_ADDRESS>:5567
2019-05-18 11:53:30,165 INFO     lbrynet.stream.managed_stream:358: write blob 2/20
2019-05-18 11:53:36,769 INFO     lbrynet.dht.blob_announcer:43: 1 blobs to announce
2019-05-18 11:53:54,897 INFO     lbrynet.dht.node:92: Stored 9ae7986a to 8 of 8 attempted peers
2019-05-18 11:53:54,906 INFO     lbrynet.dht.blob_announcer:51: announced 1 blobs
2019-05-18 11:54:39,944 INFO     lbrynet.stream.stream_manager:351: already have stream for lbry://ching-chang-chong-2#1050fbf7a422e2b08714896ab6db209c1cf2fb82
2019-05-18 11:54:45,096 INFO     lbrynet.blob_exchange.client:137: downloaded bde7ee0e from <IP_ADDRESS>:5567
2019-05-18 11:54:45,102 INFO     lbrynet.stream.managed_stream:358: write blob 3/20
2019-05-18 11:54:57,312 INFO     lbrynet.blob_exchange.client:137: downloaded 83a90c78 from <IP_ADDRESS>:5567
2019-05-18 11:54:57,316 INFO     lbrynet.stream.managed_stream:358: write blob 4/20
2019-05-18 11:55:11,295 INFO     lbrynet.blob_exchange.client:137: downloaded 3feb05ea from <IP_ADDRESS>:5567
2019-05-18 11:55:11,298 INFO     lbrynet.stream.managed_stream:358: write blob 5/20
2019-05-18 11:55:13,797 INFO     torba.client.baseledger:133: lbc_mainnet: added BlockHeightEvent(height=569628, change=1) header blocks, final height 569628
2019-05-18 11:55:30,332 INFO     lbrynet.blob_exchange.client:137: downloaded 8fed88dd from <IP_ADDRESS>:5567
2019-05-18 11:55:30,337 INFO     lbrynet.stream.managed_stream:358: write blob 6/20
2019-05-18 11:55:46,214 INFO     lbrynet.blob_exchange.client:137: downloaded 94562d06 from <IP_ADDRESS>:5567
2019-05-18 11:55:46,220 INFO     lbrynet.stream.managed_stream:358: write blob 7/20
2019-05-18 11:56:00,063 INFO     lbrynet.blob_exchange.client:137: downloaded 3d37337c from <IP_ADDRESS>:5567
2019-05-18 11:56:00,068 INFO     lbrynet.stream.managed_stream:358: write blob 8/20
2019-05-18 11:56:11,543 INFO     lbrynet.blob_exchange.client:137: downloaded 6fcdfa5f from <IP_ADDRESS>:5567
2019-05-18 11:56:11,546 INFO     lbrynet.stream.managed_stream:358: write blob 9/20
2019-05-18 11:56:22,789 INFO     lbrynet.blob_exchange.client:137: downloaded a58377ed from <IP_ADDRESS>:5567
2019-05-18 11:56:22,799 INFO     lbrynet.stream.managed_stream:358: write blob 10/20
2019-05-18 11:56:34,146 INFO     lbrynet.blob_exchange.client:137: downloaded 23d55492 from <IP_ADDRESS>:5567
2019-05-18 11:56:34,150 INFO     lbrynet.stream.managed_stream:358: write blob 11/20
2019-05-18 11:56:44,621 INFO     lbrynet.blob_exchange.client:137: downloaded 813781eb from <IP_ADDRESS>:5567
2019-05-18 11:56:44,625 INFO     lbrynet.stream.managed_stream:358: write blob 12/20
2019-05-18 11:56:55,070 INFO     lbrynet.blob_exchange.client:137: downloaded 4676dc13 from <IP_ADDRESS>:5567
2019-05-18 11:56:55,076 INFO     lbrynet.stream.managed_stream:358: write blob 13/20
2019-05-18 11:57:07,156 INFO     lbrynet.blob_exchange.client:137: downloaded 9d08046b from <IP_ADDRESS>:5567
2019-05-18 11:57:07,163 INFO     lbrynet.stream.managed_stream:358: write blob 14/20
2019-05-18 11:57:16,085 INFO     lbrynet.blob_exchange.client:137: downloaded 7c5c47be from <IP_ADDRESS>:5567
2019-05-18 11:57:16,088 INFO     lbrynet.stream.managed_stream:358: write blob 15/20
2019-05-18 11:57:31,697 INFO     lbrynet.blob_exchange.client:137: downloaded d4800c02 from <IP_ADDRESS>:5567
2019-05-18 11:57:31,701 INFO     lbrynet.stream.managed_stream:358: write blob 16/20
2019-05-18 11:57:43,507 INFO     lbrynet.blob_exchange.client:137: downloaded e9cbeeb8 from <IP_ADDRESS>:5567
2019-05-18 11:57:43,511 INFO     lbrynet.stream.managed_stream:358: write blob 17/20
2019-05-18 11:57:58,081 INFO     lbrynet.blob_exchange.client:137: downloaded 855b8130 from <IP_ADDRESS>:5567
2019-05-18 11:57:58,088 INFO     lbrynet.stream.managed_stream:358: write blob 18/20
2019-05-18 11:58:17,379 INFO     lbrynet.blob_exchange.client:137: downloaded e1bd224a from <IP_ADDRESS>:5567
2019-05-18 11:58:17,382 INFO     lbrynet.stream.managed_stream:358: write blob 19/20
2019-05-18 11:58:20,240 INFO     lbrynet.blob_exchange.client:137: downloaded 86deb4bb from <IP_ADDRESS>:5567
2019-05-18 11:58:20,243 INFO     lbrynet.stream.managed_stream:358: write blob 20/20
2019-05-18 11:58:20,260 INFO     lbrynet.stream.managed_stream:370: finished saving file for lbry://ching-chang-chong-2#1050fbf7a422e2b08714896ab6db209c1cf2fb82 (sd hash f7bd08...) -> /home/matheus/Downloads/lbryDowloads/ching-chang-chong-2.mp4
2019-05-18 11:58:22,254 INFO     lbrynet.stream.managed_stream:483: stopping inactive download for lbry://ching-chang-chong-2#1050fbf7a422e2b08714896ab6db209c1cf2fb82 (f7bd08...)

System Configuration

LBRY Daemon version:
LBRY App version:
LBRY Installation ID:
Operating system:

Anything Else

Screenshots

Internal Use
Acceptance Criteria

Definition of Done

[ ]  Tested against acceptance criteria
[ ] Tested against the assumptions of user story
[ ] The project builds without errors
[ ] Unit tests are written and passing
[ ] Tests on devices/browsers listed in the issue have passed
[ ] QA performed & issues resolved
[ ] Refactoring completed
[ ] Any configuration or build changes documented
[ ] Documentation updated
[ ] Peer Code Review performed

Just happened again to me. This is probably causing our failure rate to be higher when the content actually downloads - but it's still a problem that it takes over 30 seconds to start.
2019-07-18 14:14:33,787 INFO     lbry.stream.stream_manager:417: starting download for lbry://top-5-under-50-wireless-earbuds#50195c17f0f22abaa796e2098303ce073d6f3caa
2019-07-18 14:14:33,787 INFO     lbry.stream.managed_stream:274: start downloader for stream (sd hash: c0627477f6ac8fe641f37e858cc9f122d527f6071ebf2fc2068115a32a254082032c14925c21f2b23c5f100f0b8a1cd0)
2019-07-18 14:14:33,799 INFO     lbry.stream.downloader:102: searching for peers for stream c0627477f6ac8fe641f37e858cc9f122d527f6071ebf2fc2068115a32a254082032c14925c21f2b23c5f100f0b8a1cd0
2019-07-18 14:14:55,710 INFO     lbry.blob_exchange.client:155: downloaded c0627477 from <IP_ADDRESS>:3333
2019-07-18 14:14:55,711 INFO     lbry.stream.downloader:81: downloaded sd blob c0627477f6ac8fe641f37e858cc9f122d527f6071ebf2fc2068115a32a254082032c14925c21f2b23c5f100f0b8a1cd0
2019-07-18 14:14:55,715 INFO     lbry.stream.downloader:90: loaded stream manifest c0627477f6ac8fe641f37e858cc9f122d527f6071ebf2fc2068115a32a254082032c14925c21f2b23c5f100f0b8a1cd0
2019-07-18 14:14:55,715 INFO     lbry.stream.downloader:109: added head blob to peer search for stream c0627477f6ac8fe641f37e858cc9f122d527f6071ebf2fc2068115a32a254082032c14925c21f2b23c5f100f0b8a1cd0
2019-07-18 14:14:55,763 INFO     lbry.stream.managed_stream:364: save file for lbry://top-5-under-50-wireless-earbuds#50195c17f0f22abaa796e2098303ce073d6f3caa (sd hash c06274...) -> C:\Users\tom\Documents\top-5-under-50-wireless.mp4
2019-07-18 14:15:03,793 WARNING  lbry.extras.daemon.Daemon:953: Error downloading lbry://top-5-under-50-wireless-earbuds#50195c17f0f22abaa796e2098303ce073d6f3caa: Failed to download data blobs for sd hash c0627477f6ac8fe641f37e858cc9f122d527f6071ebf2fc2068115a32a254082032c14925c21f2b23c5f100f0b8a1cd0 within timeout
2019-07-18 14:15:10,465 INFO     lbry.extras.daemon.Daemon:830: Get version info: {"processor": "AMD64 Family 23 Model 8 Stepping 2, AuthenticAMD", "python_version": "3.7.4", "platform": "Windows-10-10.0.16299-SP0", "os_release": "10", "os_system": "Windows", "lbrynet_version": "0.38.1", "torba_version": "0.5.7", "build": "qa"}
2019-07-18 14:15:18,373 INFO     lbry.blob_exchange.client:155: downloaded a29002d0 from <IP_ADDRESS>:5567
2019-07-18 14:15:18,381 INFO     lbry.stream.managed_stream:372: write blob 1/131
2019-07-18 14:15:18,649 INFO     lbry.blob_exchange.client:155: downloaded e7666696 from <IP_ADDRESS>:5567
2019-07-18 14:15:18,657 INFO     lbry.stream.managed_stream:372: write blob 2/131
2019-07-18 14:15:18,942 INFO     lbry.blob_exchange.client:155: downloaded 670497a2 from <IP_ADDRESS>:5567
2019-07-18 14:15:18,960 INFO     lbry.stream.managed_stream:372: write blob 3/131
2019-07-18 14:15:19,285 INFO     lbry.blob_exchange.client:155: downloaded 40169243 from <IP_ADDRESS>:5567
2019-07-18 14:15:19,294 INFO     lbry.stream.managed_stream:372: write blob 4/131
2019-07-18 14:15:19,942 INFO     lbry.blob_exchange.client:155: downloaded 867db7bd from <IP_ADDRESS>:5567
2019-07-18 14:15:19,952 INFO     lbry.stream.managed_stream:372: write blob 5/131
2019-07-18 14:15:20,486 INFO     lbry.blob_exchange.client:155: downloaded 21a38adb from <IP_ADDRESS>:5567```


Change comparison on addresses to also check ports (See issue #269)

Change comparison on addresses to also check ports (See issue #269)
Also added replace option to server write tool (so can test PUT operations), so was able to test above issue more easily

retest AWS CI (erbium)


RuntimeError: Pin memory thread exited unexpectedly

2021-10-04 15:14:24,792 - mmcls - INFO - workflow: [('train', 1)], max: 200 epochs
2021-10-04 15:14:33,806 - mmcls - INFO - Epoch [1][100/391]	lr: 1.000e-01, eta: 1:57:16, time: 0.090, data_time: 0.022, memory: 76, loss: 2.0658
2021-10-04 15:14:39,876 - mmcls - INFO - Epoch [1][200/391]	lr: 1.000e-01, eta: 1:38:01, time: 0.061, data_time: 0.000, memory: 76, loss: 1.8056
2021-10-04 15:14:45,923 - mmcls - INFO - Epoch [1][300/391]	lr: 1.000e-01, eta: 1:31:25, time: 0.060, data_time: 0.000, memory: 76, loss: 1.6816
2021-10-04 15:14:51,428 - mmcls - INFO - Saving checkpoint at 1 epochs
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 10000/10000, 7696.3 task/s, elapsed: 1s, ETA:     0s2021-10-04 15:14:52,802 - mmcls - INFO - Epoch(val) [1][79]	accuracy_top-1: 32.6600, accuracy_top-5: 84.0200
Exception in thread Thread-2:
Traceback (most recent call last):
File "/home/songyuan/anaconda3/envs/pytorch1.7.1/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/songyuan/anaconda3/envs/pytorch1.7.1/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/songyuan/anaconda3/envs/pytorch1.7.1/lib/python3.7/site-packages/torch/utils/data/_utils/pin_memory.py", line 28, in _pin_memory_loop
idx, data = r
ValueError: not enough values to unpack (expected 2, got 0)
Traceback (most recent call last):
File "tools/train.py", line 157, in
main()
File "tools/train.py", line 153, in main
meta=meta)
File "/home/songyuan/yty/mmclassification-0.15.0/mmcls/apis/train.py", line 160, in train_model
runner.run(data_loaders, cfg.workflow)
File "/home/songyuan/anaconda3/envs/pytorch1.7.1/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 127, in run
epoch_runner(data_loaders[i], **kwargs)
File "/home/songyuan/anaconda3/envs/pytorch1.7.1/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 47, in train
for i, data_batch in enumerate(self.data_loader):
File "/home/songyuan/anaconda3/envs/pytorch1.7.1/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 349, in iter
self._iterator._reset(self)
File "/home/songyuan/anaconda3/envs/pytorch1.7.1/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 852, in _reset
data = self._get_data()
File "/home/songyuan/anaconda3/envs/pytorch1.7.1/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1029, in _get_data
raise RuntimeError('Pin memory thread exited unexpectedly')
RuntimeError: Pin memory thread exited unexpectedly
我用mmclassification-0.15.0在3090上跑的，pytorch版本为1.7，mmcv为1.3.14，然后训了一个epoch并完成验证后，就出现了这个问题。请问这是什么原因?

refer to https://github.com/open-mmlab/mmclassification/issues/392


Fix for not-edited-here Edit this Page link

Using path instead of url will actually get us the matching we want.

Fixes bad "Edit this Page" links per discussion in #5177


Prevent custom-header from rendering, if header slot is used

Bug/issue #, if applicable: 82736354
Summary
Stops the <custom-header> element from being rendered, if the header slot is used. This prevents the UI from rendering two header elements at once.
This may happen, when you have a theme that extends swift-docc-render with it's own header, and are previewing a doc bundle, that has a custom header.html file.
Dependencies
NA
Testing
Steps:

Create a Vue app that extends this branch of swift-docc-render as a theme.
Define a custom header that is rendered via the header slot of docc-render/App.vue
Run npm run build on your theme.
Using swift-docc, preview a bundle, that has a custom header.html file, while pointing to the just-built docc-render theme - DOCC_HTML_DIR=/path/to/theme/dist docc preview
Assert that the browser renders only your theme's header, and not the custom-header element from the docc bundle.

Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.

[x] Added tests
[x] Ran npm test, and it succeeded
[x] Updated documentation if necessary

@swift-ci test


collapsible=True / expandable=True for pn.Column

pn.Columns(*items, collapsible=True)
Or maybe a new class
pn.Expand()?
Similar to:
https://github.com/pydata/xarray/pull/3425

Adding it to Columns is unlikely and adding a collapsible layout is covered by https://github.com/pyviz/panel/issues/561


tensorflow-rocm dependences on not existing version of tensorflow-intel

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
binary
TensorFlow version
2.14
Custom code
No
OS platform and distribution
Linux Mint 21.3 Virginia
Mobile device
No response
Python version
3.11
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
If I install the tensorflow-rocm ~2.14 package with poetry, I get an error message:
Because no versions of tensorflow-rocm match >=2.14,<<IP_ADDRESS>0 || ><IP_ADDRESS>0,<2.15
 and tensorflow-rocm (<IP_ADDRESS>0) depends on tensorflow-intel (<IP_ADDRESS>0), tensorflow-rocm (>=2.14,<2.15) requires tensorflow-intel (<IP_ADDRESS>0).

I took a look at PyPi for the Release History of tensorflow-intel and there is only a 2.14.0 and a 2.14.1, but no <IP_ADDRESS>0.
So there seems to be a dependency with the wrong version number in tensorflow-rocm.  The exact same version as the package itself have not to exist at tensorflow-intel :exclamation: A more vague version number (e.g., ~2.14) should be used.
Standalone code to reproduce the issue
Installation issue, so no python code to reproduce the issue.

Relevant log output
No response

Hi @BaumiCoder, I was not able to reproduce your error. I noticed that you are using Linux Mint 21.3 Virginia, which may cause issues as it is not a part of our support operating system. Do you mind trying again with our docker images?

Linux Mint 21.3 Virginia is based on Ubuntu Jammy, so it should also work. The cause of the error is even visible in the whl file.

Download whl file for python 3.11 from PyPi
Extract the file from the whl file
Open the file tensorflow_rocm-<IP_ADDRESS>0.dist-info/METADATA with a text editor
Take a look at line 54:

Requires-Dist: tensorflow-intel (==<IP_ADDRESS>0) ; platform_system == "Windows"

I have no idea why this line takes effect on my machine, but not at yours. However, this line reference an exact version of tensorflow-intel that does not exist.
I executed my experiments for a research project (bachelor thesis) in another way, so I have no need for executing with one of the docker images.

Hi @BaumiCoder, that does appear to be a bug. Is there a specific reason you are using ROCm 6.0? I ask because, following the release of ROCm 6.1, the wheels are no longer hosted on pypi.org and can now be found at repo.radeon.com. For instance, you can access them at https://repo.radeon.com/rocm/manylinux/rocm-rel-6.2/. Would you mind trying the newer wheel file?

Hi @BaumiCoder,
Thank you for bringing your concerns about the mismatched version numbers to our attention. The mismatch happened because we previously used the format <TensorFlowVersion>.<ROCmVersion>, but starting with version 6.1, the wheel version format has been simplified to just the TensorFlow version. From my understanding, the version number for tensorflow-intel is also aligned with TensorFlow, so mismatches are unlikely to occur.
For detailed information on wheel releases and the ROCm TensorFlow installation guide, please refer to our official documentation. You can find all ROCm-related documentation on the same website.
It appears that the bug has already been addressed in the latest releases. Is there anything else I can assist you with before we close this issue?

Thank you, for the clarification.


fix: Support AccessToken nullable fields

AccessToken requires only accessToken, applicationId and userId. See: https://github.com/facebook/facebook-android-sdk/blob/master/facebook-core/src/main/java/com/facebook/AccessToken.java#L111-L121. Other fields are nullable.
Fixes https://github.com/facebookarchive/react-native-fbsdk/issues/456.

Code looks good to me! Thanks for contributing @superandrew213

Hi,
my app is running on the actually latest version of this package (4.2.0).
Some of my users still experience this error. Unfortunately i cannot reproduce this error on my side.
But i can attach the stacktrace from Sentry

This bug is affecting near to 1k users.  😩

Hi @mikehardy , thanks for the reply. I haven't replied with a repro because i cannot reproduce the error (it works on my machine 😆).
After some digging in the native code i notice that accessToken is an optional field, the native SDK (if i have understood correctly) would self resolve it.
After a week without any errors in our A/B test i would say that the bug in my code is resolved.
I've read erroneously the documentation from facebook.


off_t should be signed

Hi there,
The Rust type off_t, which is defined as u64 in sgx_trts/src/libc.rs and sgx_tstd/src/os/raw.rs, are meant to represent the C definition of off_t defined in libc, right? But, in libc, off_t is actually signed. The reason that off_t has to be signed is that you want to be able to lseek backward relative to the current position (SEEK_CUR), in which case the offset value is negative. So, the Rust type off_t should be i64; so is off64_t.
Best,
Tate

@tatetian
Fixed in 4d999470c8c12a6e6f70d302c09114957114bb05 Thanks again for your contribution!

Thanks. The fix seems good to me :thumbsup:


LSP is down after upgrading to Spyder-5.1.0 even when downgrading back to 5.0.5

I upgraded to 5.1.0 on MacOs (direct download). It said that there was an error in opening Spyder due to the Spyder-kernels (asked me to download 2.1.0). I couldn't download that version (only 2.0.5), so I restored spyder-5.0.5 (either from the Time Machine and as clean download from the website), but since then the LPS is failing and I get the following message:

Spyder version: 5.0.5
Python version: 3.7.10 (conda env)
Qt version: 5.12.10
PyQt version: 5.12.3
Operating System name/version: MacOS BigSur 11.5.1

Dependencies
# Mandatory:
applaunchservices >=0.1.7     :  0.2.1 (OK)
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  1.6.0 (OK)
cookiecutter >=1.6.0          :  1.7.3 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.6.0               :  7.24.1 (OK)
jedi =0.17.2                  :  0.17.2 (OK)
jsonschema >=3.2.0            :  3.2.0 (OK)
keyring >=17.0.0              :  23.0.1 (OK)
nbconvert >=4.0               :  6.1.0 (OK)
numpydoc >=0.6.0              :  1.1.0 (OK)
parso =0.7.0                  :  0.7.0 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.9.0 (OK)
pylint >=1.0                  :  2.8.3 (OK)
pyls >=0.36.2;<1.0.0          :  0.36.2 (OK)
pyls_black >=0.4.6            :  0.4.7 (OK)
pyls_spyder >=0.3.2;<0.4.0    :  0.3.2 (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.2.0 (OK)
qtawesome >=1.0.2             :  1.0.3 (OK)
qtconsole >=5.1.0             :  5.1.0 (OK)
qtpy >=1.5.0                  :  1.9.0 (OK)
rtree >=0.9.7                 :  0.9.7 (OK)
setuptools >=39.0.0           :  57.0.0 (OK)
sphinx >=0.6.6                :  4.0.2 (OK)
spyder_kernels >=2.0.4;<2.1.0 :  2.0.4 (OK)
textdistance >=4.2.0          :  4.2.1 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3             :  2.1.2 (OK)
zmq >=17                      :  22.1.0 (OK)

# Optional:
cython >=0.21                 :  0.29.23 (OK)
matplotlib >=2.0.0            :  3.4.2 (OK)
numpy >=1.7                   :  1.21.0 (OK)
pandas >=1.1.1                :  1.2.5 (OK)
scipy >=0.17.0                :  1.7.0 (OK)
sympy >=0.7.3                 :  1.8 (OK)

Probably this is due to that spyder-5.1.0 has switched from python-language-server, to python-lsp-server. After the upgrade your spyder configuration is likely trying to start pylsp instead of pyls. You can try installing python-lsp-server if it is not already installed. Or use the reverse workaround from Comment 13 on this Bug: https://bugs.gentoo.org/783615#c13

Hey @yaront, thanks for reporting. I have two questions for you:

How did you update to Spyder 5.1.0, since it's not available in Anaconda nor conda-forge?
Did you update Spyder in a separate conda environment or in you base one?

Hi @ccordoba12 !

How did you update to Spyder 5.1.0, since it's not available in Anaconda nor conda-forge?

Downloaded it directly from the website.

Did you update Spyder in a separate conda environment or in you base one?

Again, it is a standalone installation, not through conda. But the interpreter is pointed to the separated environment (with Python 3.7), not base.
When I ran the 5.1.0 I got an error message, saying I should upgrade Spyder-kernels to 2.1.0. Not sure why, but I was not managed to do that (neither through conda nor through pip)...
According to @AndrewAmmerlaan comment, after downgrading back to 5.0.5, the "Module for the Python language server" was still set to pylsp instead of pyls (probably due to the former installation of 5.1.0). Setting it back to pyls solved the problem.

Ok, I see. Thanks for your answers. Probably this error is related to issue #16117, so it could be fixed in our 5.1.1 version, which I hope to release in some hours.

I'll reopen this so we don't forget to do a followup with you @yaront.

@yaront, the LSP should start working again if you first delete your ./.spyder-py3 directory (or rename it), then startup Spyder 5.0.5. If you have a number of preferences set and you renamed the directory instead of removing it, you should be able to restore them manually from the preference files in the old configuration directory.

@yaront, alternatively, you can open ~/.spyder-py3/config/spyder.ini and find the line that starts with provider_configuration = and replace all occurrences of 'pylsp' with 'pyls'.

following @mrclary tip, deleted .spyder-py3 and am up again on 5.0.5. 5.1 crashed for me as for a few others, siting lacking kernals package (same error as with initial 5.0 release?) awaiting standalone 5.1.1 :-)

Hey everyone, I just released 5.1.1 an hour ago. Please try it and let us know if it works for you.

I'm going to close this one since @mrclary confirmed all issues with our Mac installer were solved in 5.1.1


[Docs] Readme: Move Meshery Adapter for App Mesh to beta status

Current State
In this repo's readme, the Meshery Adapter for AWS App Mesh is listed under Alpha status.
Desired State
This adapter is ready for Beta and its entry should bumped up.

Contributor Guides and Resources

🛠 Meshery Build & Release Strategy
📚 Instructions for contributing to documentation

Meshery documentation site and source

🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

@buzzsurfr


Add google code formatter along with goal

Add google code formatter dependency so that the code is formatted throughout independent of the environment.
Maven Link: Google Formatter

mvn com.spotify.fmt:fmt-maven-plugin:format```


TileSet grid Snap Options with Steps of size 0 leads to crashes or unusable editor

Godot version:
3.2.3.stable
Issue description:
In the TileSet editor it's possible to set the grid to size 0, leading to crashes or rendering the TileSet editor seemingly unusable.
It is expected the editor doesn't crash and the editor configuration to not reach an unusable state.
Simple solution, require Snap Options Step x and Step y being greater than 0.
As a new user I found myself locked out of grid configuration in the TileSet editor and it required a few hours to figure the problem. I tried many things without success, tried using other projects and noticed the TileSet editor worked fine, tried finding configuration in files leading to why it wasn't working. Ended up copying tileset from another project and selecting a tile, leading to figuring out the issue, then working backwards to find steps to reproduce.
Steps to reproduce:

Open the TileSet editor for existing TileSet or create new one.
Select an existing Texture or add one and select.
Select an existing tile or create a new one.
Enable snap and show grid.
In the Inspector, in Snap Options, set Step x and y to 0.
Notice the grid is no longer visible even though it is enabled.

After this, the editor is in a state that can lead to problems with grid of size 0.
First case, crash:

Create a new TileSet.
Add a Texture.
Select use New Autotile.
Enable snap and show grid.
Notice the grid is not visible.
Drag over the image.
Editor hangs and crashes.

Second case, can't reconfigure the grid:

Create a new TileSet.
Add a Texture.
Select use New Single Tile.
Enable snap and show grid.
Notice the grid is not visible.
Notice it has become impossible to add tiles in the texture because there is no grid
Notice the Inspector doesn't show grid Snap options.
Notice it's not possible to reconfigure the grid.

To recover from this state, if there are tiles to be selected:

Open the TileSet editor for existing TileSet.
Select an existing Texture.
Select an existing tile.
Enable snap and show grid.
In the Inspector, in Snap Options, set Step x and y to values higher than 0.

To recover from this state, if there are no tiles to be selected:

Open the TileSet editor for existing TileSet or create new one.
Select an existing Texture or add one and select.
New Single Tile.
Disable snap and show grid.
Create a free-form tile.
Select tile.
Enable snap and show grid.
In the Inspector, in Snap Options, set Step x and y to values higher than 0.

Minimal reproduction project:
Any project, even new, with a new TileSet, load any texture.

This issue is not even 1 day old and it's already fixed, I am impressed ❤


The Default impl for Command has unnecessary bounds

The Default impl on the Command struct has the following bounds, autogenerated by derivative:
impl<U, E> Default for Command<U, E>
where U: Default,
      E: Default

However, U and E don't actually need to have a Default implementation, since none of the fields in Command require construction of either to have a Default impl, and there isn't any reason why they ever would in the future - user data isn't stored in Command and E is only returned as the Err variant of Result, where constructing the Ok variant is always possible to get a default value. It would also be silly in most cases for the error to have a Default impl, and most error types don't, making this impl useless for nearly all cases.
My usecase for this is to have a command for which the subcommands are determined from a const variable in a different module - something like this:
// lib.rs
pub const ADMIN_COMMANDS: &[fn() -> poise::Command<Data, Error>] = &[
    log::log,
    remind::reminders_adm,
];

// admin.rs
use poise::Command;

pub fn admin() -> Command<Data, Error> {
    Command {
       name: "admin",
       subcommands: ADMIN_COMMANDS
           .map(|f| f())
           .collect(),
       slash_action: Some(|_| Box::pin(async move { Ok(()) })),
       subcommand_required: true,
       ..Default::default()
    }
}

whereas now I have to do something like this:
use poise::{Command, Context};

pub fn admin() -> Command<Data, Error> {
   #[poise::command(slash_command, rename = "admin")
   fn inner(_: Context<'_, Data, Error>) -> Result<(), Error> { Ok(()) }
   Command {
     subcommands: ADMIN_COMMANDS
        .map(|f| f())
        .collect(),
       subcommand_required: true,
      ..inner()
   }
}

I suppose in this case this isn't that big of a deal though (though it might matter more in other cases).

Good point. I'm open for PRs


Add REST APL

Add RestAPL originally created by @krzysztofwolski here https://github.com/saleor/saleor-app-template/blob/draft-rest-apl/lib/RestAPL.ts

cc @mmiszy - this can be added to checkout, to connect with Saleor Cloud APL, for multi-tenancy. This client assumes "generic" crud operations, so we can add it to SDK


Extend RSACngAdapter model to handle ECDSA and X509Certs

Users that are targeting .Net Desktop use our 4.5.1 target.
CNG types are not available until 4.6.x.
While we need the 4.6.1 target, we need to extend the support for CNG for users that cannot immediately upgrade their code. It is possible that .Net framework has been upgraded and the support exists.
We should use the extend the adapter pattern solution in 5.2.3 that recognizes RSA keys.

https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/1020


Class 'GitList\Controller\TreeGraphController' not found

i getting the following error
Fatal error: Class 'GitList\Controller\TreeGraphController' not found in /var/www/html/boot.php on line 12

edit boot.php like:
$app->mount('', new GitList\Controller\TreeController());

Seems like class name has changed.

Thanks @ank91  solved  it by moving TreeController.php to other src/Controller directory

I suggest creating a symlink
cd <project_root>/srcln -s ../GitList/Controller/TreeGraphController.php TreeGraphController.php

I moved the file. I suspect it didn't get updated yet as to where to find this file and its classes. I dunno how that sort of thing works, but IME and TMK it just looks in various subdirs until it finds it. But then I see the error we get from this, and it makes me think my knowledge is faulty ;).

This issue can be closed. It was fixed by me in pull request #682 (already merged to master).
Stay awesome guys. :-)


Deleting a renderer sometimes causes crash

I cannot find a consistent way to reproduce this but sometimes when you delete a renderer, it tries to read a params object that has been already deleted and crashes.

can't reproduce


Error after access to admin dashboard

when i access to /admin to get dashboard page, i get this error :
Error retrieving credentials from the instance profile metadata service. (cURL error 7: Failed to connect to <IP_ADDRESS> port 80: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://<IP_ADDRESS>/latest/meta-data/iam/security-credentials/) (View: /var/www/html/vendor/area17/twill/views/layouts/dashboard.blade.php).
Any help plz

Hi @Bassem-mistu-digital, set your media and file library environment variables to use the local storage driver using:
MEDIA_LIBRARY_ENDPOINT_TYPE=local
FILE_LIBRARY_ENDPOINT_TYPE=local

By default Twill 2 is expecting S3 credentials. We are changing this to be local by default in Twill 3 to avoid this confusion.

@ifox thank you bro. you save my day


Deploy to Github Pages using Github Actions

Now that #1075 has landed, Github Pages is no longer being automatically deployed on green master builds. We need to fix our deployment to Github Pages.

This has been fixed


GPL-356 As Development team (LIMS) we want to automatically create samples and their metadata in Sequencescape for heron samples to automate this high throughput process

User story
As a development team when we receive a request from the csv parser to create a tube rack we want to create a tube rack, with the specified number of sample tubes and samples
Who the primary contacts are for this story
e.g. Eduardo
Acceptance criteria
To be considered successful the solution must allow:
1 - A tube rack will be created with the specified tube rack barcode that is sent in the request from csv parser
2 - The correct number of tubes will be created which will each have a sample, tube barcode and a position (rack location)
3 - Each sample created will have sample name, supplier sample name and the sample public name in sample metadata populated from the original tube barcode from the MLWH e.g. PHEC-nnnnnnnnnnnnn
4. - All of required sample metadata will be populated with default data as it is not available.

Tasks:

Create /api/v2/heron/tube_rack endpoint that will generate the tube rack by parsing the params (see comment) through a factory to build the rack (similar to how it was done in app/controllers/api/v2/aker/jobs_controller)

Create factories similar to how it was in app/aker/factories

Create TubeRack factory to create the Rack labware with the rack barcode provided and delegates the tube creation to the tube factory
Create Tube factory to create the SampleTube labware and put it inside the rack  with the barcode and location provided and delegates the Sample creation to the sample factory
Create Sample factory that will create the Sample with metadata where the public name will contain the original tube barcode
Create test for the request to check that the request effectively creates the rack with the contents provided

Proposal of message payload received by heron/tube_rack endpoint
{
   "tube_rack": {
      "barcode": "ABC1234",
      "study_uuid": "000000000",
      "project_uuid": "000000000",
      "tubes": [
        {
         "location": "A01",
         "barcode": "FR12345",
         "sample": {
            "public_name": "PHEC-nnnnnnn1"
         }
        },
        {
         "location": "B01",
         "barcode": "FR12346",
         "sample": {
            "public_name": "PHEC-nnnnnnn2",
            "supplier_sample_name": "PHEC-nnnnnnn2"
         }
        }
      ]
   }
}

Required headers:
X-Sequencescape-Client-Id: <API_KEY>
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json

About acceptance criteria 3: the sample name has to be unique. That means that we cannot have 2 samples with same supplier_sample_id. My proposal is to use sanger_sample_id instead

Yes that’s correct.
I think we can also stop populating the public name:
On 21/03/2020, 09:30, "David K. Jackson"<EMAIL_ADDRESS>wrote:
we may want to revisit the use of public_sample_name if downstream [of NPG] have the capability to accept this ID separately (that would allow us to propagate say an NPG id with the sequence data, provide the phx_sample_id separating - makes for far like confusing data fixes).
On 21/03/2020, 10:14, "David K. Jackson"<EMAIL_ADDRESS>wrote:
it's just I think downstream will have mechanism to import our supplier_sample_name rather than rely on us putting it in the CRAM header and renaming files to match.


fix: stop quotes reloading

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Currently the quotes refresh whenever you visit learn, including when you navigate from learn (i.e. you click on the nav).  Also, when the server cannot be reached, clicking anywhere on the page triggers a refresh - though I don't know why.  This ensures that they only change when the page is reloaded.
Closes #37341

I believe that's how it works because gatsby will re-render a component on navigation?
Anyway we need to not let the user see this.

@raisedadead that bit makes sense. What I don't get is why it was rendering Welcome when the SearchBar rendered.


Any plugin or script using bashcompinit & complete to define completion won't work after sourcing antigen

Description
The google-cloud-sdk adds the following snippet to the end of your .zshrc:
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/segevfiner/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/segevfiner/google-cloud-sdk/path.zsh.inc'; fi

# The next line enables shell command completion for gcloud.
if [ -f '/Users/segevfiner/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/segevfiner/google-cloud-sdk/completion.zsh.inc'; fi

Their completion script is using bashcompinit and complete to define completions. This translates to a bunch of compdef calls like this:
compdef '_bash_complete -o nospace -o default -F _python_argcomplete' gcloud

If this happens after antigen apply, the compdef is ignored: https://github.com/zsh-users/antigen/blob/64de2dcd95d6a8e879cd2244c763d99f0144e78e/bin/antigen.zsh#L1843
Which is weird...? Why?
Moving it between sourcing antigen and antigen apply causes antigen to defer the compdef call using: https://github.com/zsh-users/antigen/blob/64de2dcd95d6a8e879cd2244c763d99f0144e78e/bin/antigen.zsh#L64
Which causes it to save it as a single string inside the array, losing the quoting and the fact that it has multiple arguments, and then the subsequent compdef call here doesn't work:
https://github.com/zsh-users/antigen/blob/64de2dcd95d6a8e879cd2244c763d99f0144e78e/bin/antigen.zsh#L802
As it needs to call compdef with two arguments but calls it with one.
# Wrong (Caused by the code deferring compdef)
compdef '_bash_complete -o nospace -o default -F _python_argcomplete gcloud'

# Correct
compdef '_bash_complete -o nospace -o default -F _python_argcomplete' gcloud

In general, I think this might happen with any compdef call at all, as they all use more than one argument.
Also note that nvm generates the following:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

And its completion script calls compinit, which antigen isn't trying to defer/skip, which will then undo the effect of deferring compdef (nvm-sh/nvm/bash_completion:89-95) getting the completion to be defined correctly but hurting shell startup performance due to multiple compinit invocations. Making it not call compinit by commenting that out, causes the same kind of issue with its own defined completions not loading as happens with the google-cloud-sdk, although nvm has completion available in the Zsh default completion and an oh-my-zsh plugin with completions that will end up getting used instead.
You can load such completions before sourcing antigen, which will make it call compdef before antigen tries to defer it, which seems to work, but there might be a reason for this attempted deferral of compdef calls.
I'm not really sure how to resolve this as Zsh doesn't support nested arrays or something obvious to store an array of such multiple argument commands...
P.S. As antigen doesn't appear to be maintained, this is unlikely to be resolved, any recommendations for an alternative to antigen (With good oh-my-zsh plugins support, good performance, and being actually maintained), workaround, fix to apply locally, or anything else?
Steps to reproduce
Minimal steps to reproduce this behavior. Example:
1 - Use any `.zshrc` that calls `compdef` between sourcing antigen and `antigen apply`. (`antigen reset` if needed, not sure when antigen invalidates its cache)
2 - Check `$_comps[command]` (e.g. `$_comps[gcloud]`) to see if the completion is defined properly.

Expected behavior:
- Deferred `compdef` completion to be defined correctly.

Software version

antigen version
Antigen v2.2.3 (ff391b5)
Revision date: 2018-01-02 13:19:57 +0100
zsh --version zsh 5.8 (x86_64-apple-darwin21.0)
uname -a Darwin Segevs-MacBook-Pro.local 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64

Configuration
.zshrc
source /opt/homebrew/share/antigen/antigen.zsh

FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
LESS=-FR

antigen use oh-my-zsh

antigen bundle git
antigen bundle fzf
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-syntax-highlighting

eval "$(starship init zsh)"

export ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)

# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/segevfiner/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/segevfiner/google-cloud-sdk/path.zsh.inc'; fi

# The next line enables shell command completion for gcloud.
if [ -f '/Users/segevfiner/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/segevfiner/google-cloud-sdk/completion.zsh.inc'; fi

antigen apply

More information
 😢

So maybe using some Zsh specific magic:
$ A=("Foo Bar" Qux)
$ B=${(@qq)A}
$ printf "%s\n" ${(Q)${(z)B}}
Foo Bar
Qux

+1

Terraform completion is another one impacted by this bug.
~/.zshrc
[...]

autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C "$(which terraform)" terraform

complete above internally runs:
compdef '_bash_complete -o nospace -C /path/to/terraform' terraform

+1
I'm a shell noob, but here's how I would describe it:
Antigen causes complete command to not work in .zshrc file.
complete works when run in zsh, but not when I put it in my .zshrc file. There, it runs, gives a 0 exit status, but then autocompletion doesn't work. Examples: AWS CLI v2 autocomplete, Terraform autocomplete.
The interwebs suggested various problems with autoload, bashcompinit, etc, but none of those resolved my problem. In the end, it was simple: the AWS complete command works when I put it in my .bashrc. So then I went back to my .zshrc and kept removing things until AWS complete worked. It only worked after removing Antigen itself.


Add azure-monitor-query manually to work around outdated automation

Docs Build status updates of commit 2f004a6:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

ci-configs/packages-latest.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


🌱 expose path.Equal method for comparing equality with other paths

Summary

do not split a path with the system: prefix
expose path.Equal method for comparing equality with other paths (i.e. used by cmp pkg)

Related issue(s)
Fixes #

It feels like we shouldn't have to export the field to be compatible with DeepEqual. Looking at the go stdlib code in 1.19.x vs. the forked copy in kube, the stdlib code looks like it would support this (it handles strings explicitly). Maybe there's another way to do this?

It feels like we shouldn't have to export the field to be compatible with DeepEqual. Looking at the go stdlib code in 1.19.x vs. the forked copy in kube, the stdlib code looks like it would support this (it handles strings explicitly). Maybe there's another way to do this?

I think that another way would be to register a function in
https://github.com/kcp-dev/kubernetes/blob/2506af46bcfa668138693ab3fe0574581ffb4fed/staging/src/k8s.io/apimachinery/pkg/api/equality/semantic.go#L29

I'd rather not do that in our kube fork if we can avoid it.
Where are we calling Semantic.DeepEqual on a Path?

Where are we calling Semantic.DeepEqual on a Path?

In workspace admission, it (tenancyv1beta1.Workspace) will embed logicalcluster.Path, more specifically, it fails on:
// ValidateImmutableField validates the new value and the old value are deeply equal.
func ValidateImmutableField(newVal, oldVal interface{}, fldPath *field.Path) field.ErrorList {
	allErrs := field.ErrorList{}
	if !apiequality.Semantic.DeepEqual(oldVal, newVal) {
		allErrs = append(allErrs, field.Invalid(fldPath, newVal, FieldImmutableErrorMsg))
	}
	return allErrs
}

I was more worried about external users of this package. I'm sure we could change the admission so that it doesn't use the semantic library.
But what about users of this library? I think they might be confused to find that comparision doesn't work as expected.

reflect.DeepEqual works just fine. It's the forked DeepEqual in the kube code that's "broken"...

reflect.DeepEqual works just fine. It's the forked DeepEqual in the kube code that's "broken"...

yeah, even the == operator knows how to compare Path object for equality.
Are you saying that we shouldn't be worried about users of apiequality.Semantic.DeepEqual?

I would prefer that we don't export a field we don't want/need to be exported 😄 We can discuss possible options for apiequality.Semantic.DeepEqual separately. WDYT?

I would prefer that we don't export a field we don't want/need to be exported 😄 We can discuss possible options for apiequality.Semantic.DeepEqual separately. WDYT?

sure, sgtm, let me rework this PR - I'm going to add (p Path) Equal(other Path) bool method so that a Path object and objects that embed it can use the cmp.Equal method.

@ncdc i've updated the PR, although i'm not sure we should merge it, maybe we should not add types defined in this pkg to our APIs until we have a solution for apiequality.Semantic.DeepEqual

@p0lyn0mial we are already using logicalcluster v2 with an unexported field in Name... Is something different in v3 that is a concern?

@ncdc we would like to use Path in API types

@sttts ok, and for that, we need it to work with apiequality.Semantic.DeepEqual?

yes.

/lgtm
/approve


Allows parsing from a string using :$xml named parameter

I am not sure what you like to change; is it that you like to have an :xml named attribute added? Would perhaps be better to use multi BUILD's

Well, currently you have to load the XML from a file. This is a bit inefficient when all of your documents exist in memory, so the new logic is there to make writing out to a file optional, or unnecessary. If you would prefer multiple BUILDs, then that's OK. I can reformat the PR with another commit.

Ok, I'll accept the PR and rewrite it a bit and add some tests
Thanks for your work

P.s. I can't email to you (Xliff) directly, so I do it here... I've seen on your github account that you're working on an gtk implementation p6-GtkPlus but not yet published yet. I am also working on a series of packages Gnome::Gtk3, Gnome::Gdk3 etc. I get the feeling of a 'reinventing the wheel' here. There were already a few smaller packages but I thought I wanted to get it more complete.
So, I thought, is it much different?

@MARTIMM - Well, this started as a learning exercise for NativeCall, and has since become its own monstrocity. As far as 'reinventing the wheel', I am not adverse to having someone else out there working toward the same aim, especially if you are getting something out of your own work.
My p6-GtkPlus work is still a hobby for me, although I hope to turn it into something more.
For what its worth, I think the best way to answer your question is for you to grab P6-GtkPlus and take a look for yourself. It started with me wanting to create an addon for GTK::Simple, since it has numerous limitations. It's then grown to cover much of GLib (currently testing GIO), GDK and GTK, I've also created several apps with it.
If you would like to collaborate on it, I would be more than grateful for your input. Even so. One of the best things about being Perl is that TIMTOWTDI. If you are looking for a specific design ethic to your code, I encourage you to pave your own path and continue with your work. If you think you could improve my project (or... me improve yours) then lets discuss things further!

@Xliff
Yes - Just like you, I wanted to do more with native calls, with examples from GTK::Simple. It is growing big too. I thought not to do too much from GIO because Perl6 has a lot of tools to do IO. But Pango and Cairo is referenced quite a few times from GTK so that I need to implement. I skip those classes and subs which are deprecated in GTK. A few classes, like GtkMisc, I've kept because of the inheritance  tree which I wanted to keep.
I've already taken a peek at your software and have seen that the setup is different. I think its more compact. Also you already have so many classes defined that I grow a bit jaleous. But like you've said there are more ways to do things. I will look into it more carefully, I surely can learn a thing or two.
I've created a program which helps me generating a perl module from the gtk sources. it has documentation included from those sources. After generating I need to inspect the result, because not everything is correct. Sometimes the result need other classes which are not implemented yet and have to comment the subs out. Mostly Pango and Cairo.
All native subs are declared in classes where they belong and not in one large file like in GTK::Simple. Then I use the FALLBACK mechanism at the top which start search in the inheritance tree at the bottom to find the subs. The interface modules are queried in the same way but more like a side step. This way, it looks like the class has all methods in it whithout having to declare them.
Some of the subs are rewritten to return data in a list. This mecanism lets the user use the standard perl types instead of the native types which are needed to return data in the argument list. Also a few subs use variable argument lists. These needed a rewrite too.
All signal types will be supported in the next version. I recently found a mechanism to handle variable argument lists in the signal handlers. Now I am rewriting the modules I already have before continuing writing new ones.
Using a Glade generated XML, one can build a user interface with all bells and wistles without having the classes available. It helps me then to concentrate on the most useful ones and then later add the less used ones. Available classes can also be instantiated using an id from that generated XML by GtkBuilder.
All documentation is put on the github pages. I'm also trying to keep a test coverage on the software so that it will be visible how much is tested. Next to the document references I wanted to show a tutorial as well as examples on that site.
So a lot needs to be done yet and I'm curious where our projects will lead us.

I am as well. There may be one place where I can at least be a guide, and additionally a bit of a help! See my p6-Pango project for hints on how to get Pango working properly. Now, the one test I cannot seem to get working is [here][Xliff/p6-Pango/#2]. I haven't yet had much time to go over it, but I suspect there is a bug there.  For reference, the original C code is here.
If you have some time and can try your own hand at it, especially if you reach that point with your own Pango project, I'd be interested to know your thoughts!


Not Found Component removed

I use React, Redux, Redux Connect and Server side rendering. I declared a 404 component, when I run app without Server-side rendering, it shows Not found component normally. When I start a server-side rendering server it generates Not found component as expected. However, After seeing Not Found component for 1 second, then it disappears interestingly. What can be the reason for this issue?
Thanks.

This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux. Thanks!


#129-Testimonial page content-Chezlin

Naming Rules
Name your PR like this: ISSUENUMBER-TITLE-YOURNAME
Description
Content added to testimonial page.
Related to
Make sure you include the issue number with a hash sign # so Github can link this PR to the right issue, like this:
Fixes #129
📸: Screenshots
Kindly attach screenshots if available
Checklist:

[ * ] My code follows the style guidelines of this project
[ * ] I have carefully reviewed my own code
[ * ] I have commented my code
[ * ] I have updated any documentation

Can you also add a screenshot to assist other reviewers if possible


feat(#678): Use Lowercase For Opcode Names

In this PR I renamed all opcode names from Uppercase to Lowercase.
In other words now opcode names look like the following:
"LDC" -> "ldc",
"LOAD" -> "load",
"ADD" -> "add",
"SUB" -> "sub"

Closes: #678.
History:

feat(#678): use lowercase in opcode names
feat(#678): fix all the unit tests

PR-Codex overview
The PR focuses on standardizing and updating opcode names, attribute names, and method names to follow a consistent naming convention.
Detailed summary

Standardized attribute names to lowercase
Updated opcode names to lowercase
Renamed methods to lowercase
Added a new constant for unknown opcode name

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@rultor merge

@rultor merge

@volodya-lombrozo Done! FYI, the full log is here (took me 35min)

@volodya-lombrozo Hey there! 👋 Thanks for your contribution! You've earned +4 points, which is our base reward. Unfortunately, we had to deduct some points: -16 for no code review (it's crucial!) and -4 for only 2 comments (we aim for at least 6). But don't worry, we added +20 to keep you motivated. Remember, quality and speed are both important. Keep the contributions coming, and next time, try to get more reviews and comments to boost your points. Your current balance is +262. Looking forward to your next awesome contribution! 💻


Crash. Dependencies required?

Minecraft crashes before GUI loads, and has error messages referring to boleatte. If I install mod Datapack Portals by Kryptonaught, then it loads without crash. Error was something about boleatte referring to a method in datapack portals, which was not installed at first. I can go fetch an actual log if you'd like.
Boleatte 0.3.1
Minecraft 1.19.2
Fabric 0.14.14
MultiMC 0.7.0-3714
Java <IP_ADDRESS>
and to prevent the crash in my case:
Datapack Portals 1.2.2-1.19

The actual log would be helpful in this case, but you don't have to provide it as of right now as I think I may know how to fix this.

@VinceKezel once you get the chance, could you please provide the log? Thank you in advance

log with datapack portals disabled: https://pastebin.com/1FpsqFmY ... crashed on startup
log with the only thing changed is enabled datapack portals: https://pastebin.com/b0sjiNVb ... gets into game.

log with the only thing changed is enabled datapack portals: https://pastebin.com/b0sjiNVb ... gets into game.

The link provided goes to an expired pastebin, I think you may have forgotten to checkmark the 'never expire' (or whatever button it is) on this one. Thank you for trying to provide the log(s) though, I'll let you know if I can do anything shortly!

@VinceKezel Ah, now I see. Boleatte uses Custom Portal API, which allows for the mod to create custom portals to the dimension. This is most likely an issue of Custom Portal API or Boleatte requiring an external mod in order to create compatibility between the two. Does enabling the 'datapack portals' have any other issues in general? If not, then I suggest just enabling it and playing normally, as you would. Thank you, let me know if any issues persist or come up!


Please remove unreachable code (TS error)

in ng2-bootstrap/components/timepicker/timepicker.component.ts
remove
// Evaluate from template
    let hours = this.getHoursFromTemplate();
    let minutes = this.getMinutesFromTemplate();
    if (isDefined(hours) && isDefined(minutes)) {
      this.selected.setHours(hours);
      this.refresh();
    }

as TS complains of non reachable code
tx
Sean

please use ts 1.7.5 until 1.8 is supported by ng2
duplicate of #116

ok tx


ProgrammingError: SQLite objects created in a thread can only be used in that same thread

Found this in the error log:
ERROR:sqlalchemy.pool.NullPool:Exception closing connection <sqlite3.Connection object at 0x7f779924f110>
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.9.7-py2.6-linux-x86_64.egg/sqlalchemy/pool.py", line 250, in _close_connection
    self._dialect.do_close(connection)
  File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.9.7-py2.6-linux-x86_64.egg/sqlalchemy/engine/default.py", line 412, in do_close
    dbapi_connection.close()
ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id<PHONE_NUMBER>89376 and this is thread id<PHONE_NUMBER>79232

Per conversation, we're being pretty sloppy with managing sessions in general; we should just do the session setup/teardown in our global request handler wrapper, and make it available as a request local.

The other possibility here is just that hey, sqlite isn't actual thread safe (I'm pretty sure). We really need to make this work with postgres or mysql.


DO NOT MERGE: ci - added support for running quick tests

Trying again the idea on PR #6750.
This adds a custom action that detects if the PR changes a component and, if it does, then run a quick test of only the modified component.

We don't seem to have comment permission on this repo. I opened a ticket for that: https://issues.apache.org/jira/browse/INFRA-23027

Comment is not allowed, so I removed that part.

The PR needs to be recreated. Closing.


@aws-solutions-constructs/aws-s3-lambda throws an error when CDK synth

When run tests or do CDK synth an error is being thrown when I use an existing lambda and bucket
Reproduction Steps
This is how I use the construct:
`
new S3ToLambda(this, ${envNameUpperCase}S3ToLambda, {
        existingBucketObj: myBucket,

        existingLambdaObj: processor,

        s3EventSourceProps: <S3EventSourceProps>{

            events: [EventType.OBJECT_CREATED, EventType.OBJECT_REMOVED],

            filters: [

                <NotificationKeyFilter>{

                    prefix: 'path/in/bucket',

                }

            ]

        },

    });`

Error Log
`Test suite failed to run
TypeError: this.bucket.addEventNotification is not a function

  66 |
> 67 |         new S3ToLambda(this, `${envNameUpperCase}S3ToLambda`, <S3ToLambdaProps>{
     |         ^
  68 |             existingBucketObj: existBucket,
  69 |             existingLambdaObj: existLambda,
  70 |             s3EventSourceProps: <S3EventSourceProps>{

  at S3EventSource.bind (node_modules/@aws-cdk/aws-lambda-event-sources/lib/s3.ts:31:19)
  at Function.addEventSource (node_modules/@aws-cdk/aws-lambda/lib/function-base.ts:344:12)
  at new S3ToLambda (node_modules/@aws-solutions-constructs/aws-s3-lambda/lib/index.ts:89:25)
  at new Processor (lib/processor/processor.ts:67:9)
  at new BeStack (lib/be-stack.ts:98:9)
  at Object.<anonymous> (test/awscdk/lambda-vpc.test.ts:8:15)

`
the cdk synth command results in this
`
this.bucket.addEventNotification is not a function
Could not run version check - Directory (/Users/vitalii.dmytruk/.cdk/cache) is not writable.
Subprocess exited with error 1
Error: Subprocess exited with error 1
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/aws-cdk/lib/api/cxapp/exec.ts:122:23)

at ChildProcess.emit (events.js:315:20)

at ChildProcess.EventEmitter.emit (domain.js:482:12)

at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)

`
Environment

CDK CLI Version      : 1.77
CDK Framework Version: 1.77
AWS Solutions Constructs Version     : 1.77
OS                   : Mac
Language             :TS

Other

This is :bug: Bug Report

vzverv@ I could not replicate the issue you're facing, here's what I have, can you compare it with your code or share it here?
import * as s3 from '@aws-cdk/aws-s3';
import * as lambda from '@aws-cdk/aws-lambda';
import * as s3lambda from '@aws-solutions-constructs/aws-s3-lambda';
import * as cdk from '@aws-cdk/core';

export class CdkWorkshopStack extends cdk.Stack {
  constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    const lambdaFunctionProps: lambda.FunctionProps = {
      runtime: lambda.Runtime.NODEJS_12_X,
      handler: 'index.handler',
      code: lambda.Code.fromAsset(`${__dirname}/lambda`)
    };

    const processor = new lambda.Function(this, 'MyExistingFunction', lambdaFunctionProps);

    const myBucket = new s3.Bucket(this, 'my-bucket', {
      bucketName: 'my-bucket'
    });

    const constructProps: s3lambda.S3ToLambdaProps = {
      existingBucketObj: myBucket,
      existingLambdaObj: processor,
      s3EventSourceProps: {
        events: [s3.EventType.OBJECT_CREATED, s3.EventType.OBJECT_REMOVED],
        filters: [{
          prefix: 'path/in/bucket',
        }]
      }
    };

    new s3lambda.S3ToLambda(this, 'test-s3-lambda', constructProps);
  }
}

Both npm run build and cdk synth works successfully.

vzverv@ I could not replicate the issue you're facing, here's what I have, can you compare it with your code or share it here?
import * as s3 from '@aws-cdk/aws-s3';
import * as lambda from '@aws-cdk/aws-lambda';
import * as s3lambda from '@aws-solutions-constructs/aws-s3-lambda';
import * as cdk from '@aws-cdk/core';

export class CdkWorkshopStack extends cdk.Stack {
  constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    const lambdaFunctionProps: lambda.FunctionProps = {
      runtime: lambda.Runtime.NODEJS_12_X,
      handler: 'index.handler',
      code: lambda.Code.fromAsset(`${__dirname}/lambda`)
    };

    const processor = new lambda.Function(this, 'MyExistingFunction', lambdaFunctionProps);

    const myBucket = new s3.Bucket(this, 'my-bucket', {
      bucketName: 'my-bucket'
    });

    const constructProps: s3lambda.S3ToLambdaProps = {
      existingBucketObj: myBucket,
      existingLambdaObj: processor,
      s3EventSourceProps: {
        events: [s3.EventType.OBJECT_CREATED, s3.EventType.OBJECT_REMOVED],
        filters: [{
          prefix: 'path/in/bucket',
        }]
      }
    };

    new s3lambda.S3ToLambda(this, 'test-s3-lambda', constructProps);
  }
}

Both npm run build and cdk synth works successfully.

@hnishar thanks for looking into the issue.
The difference is that you create your bucket in the very same script and you pass the Bucket object. In my case I create a bucket from ARN, thus I have an IBucket object, which doesn't have some methods that the Bucket object does.
Off-topic:
I know about a similar issue when we try to add an existing bucket as a trigger to the lambda when we create the bucket from ARN. The same situation - Bucket vs IBucket. But for this case, I have a workaround, which I thought I could replace with the aws-solutions-construct.
here is a related issue
and the workaround
Please let me know if you have any more questions. Thanks again!

@hnishar thanks for looking into the issue.
The difference is that you create your bucket in the very same script and you pass the Bucket object. In my case I create a bucket from ARN, thus I have an IBucket object, which doesn't have some methods that the Bucket object does.
Off-topic:
I know about a similar issue when we try to add an existing bucket as a trigger to the lambda when we create the bucket from ARN. The same situation - Bucket vs IBucket. But for this case, I have a workaround, which I thought I could replace with the aws-solutions-construct.
here is a related issue
and the workaround
Please let me know if you have any more questions. Thanks again!

vzverv@ Thanks for the clarification. For the reasons noted in the referenced issue, the aws-s3-lambda construct is not designed to accept existingBucketObj of type IBucket, but instead requires type Bucket... that being said I'm curious how is it even allowing you to pass an instance of IBucket?
For instance, if I try to compile this:
    const myBucket = s3.Bucket.fromBucketName(this, "Bucket", "...");

    const constructProps: s3lambda.S3ToLambdaProps = {
      existingBucketObj: myBucket,
      existingLambdaObj: processor,
      s3EventSourceProps: {
        events: [s3.EventType.OBJECT_CREATED, s3.EventType.OBJECT_REMOVED],
        filters: [{
          prefix: 'path/in/bucket',
        }]
      }
    };

it throws the following error :
lib/cdk-workshop-stack.ts:25:7 - error TS2740: Type 'IBucket' is missing the following properties from type 'Bucket': autoCreatePolicy, lifecycleRules, notifications, metrics, and 34 more.

25       existingBucketObj: myBucket,
         ~~~~~~~~~~~~~~~~~

  node_modules/@aws-solutions-constructs/aws-s3-lambda/lib/index.d.ts:38:14
    38     readonly existingBucketObj?: s3.Bucket;
                    ~~~~~~~~~~~~~~~~~
    The expected type comes from property 'existingBucketObj' which is declared here on type 'S3ToLambdaProps'

Found 1 error.

vzverv@ Thanks for the clarification. For the reasons noted in the referenced issue, the aws-s3-lambda construct is not designed to accept existingBucketObj of type IBucket, but instead requires type Bucket... that being said I'm curious how is it even allowing you to pass an instance of IBucket?
For instance, if I try to compile this:
    const myBucket = s3.Bucket.fromBucketName(this, "Bucket", "...");

    const constructProps: s3lambda.S3ToLambdaProps = {
      existingBucketObj: myBucket,
      existingLambdaObj: processor,
      s3EventSourceProps: {
        events: [s3.EventType.OBJECT_CREATED, s3.EventType.OBJECT_REMOVED],
        filters: [{
          prefix: 'path/in/bucket',
        }]
      }
    };

it throws the following error :
lib/cdk-workshop-stack.ts:25:7 - error TS2740: Type 'IBucket' is missing the following properties from type 'Bucket': autoCreatePolicy, lifecycleRules, notifications, metrics, and 34 more.

25       existingBucketObj: myBucket,
         ~~~~~~~~~~~~~~~~~

  node_modules/@aws-solutions-constructs/aws-s3-lambda/lib/index.d.ts:38:14
    38     readonly existingBucketObj?: s3.Bucket;
                    ~~~~~~~~~~~~~~~~~
    The expected type comes from property 'existingBucketObj' which is declared here on type 'S3ToLambdaProps'

Found 1 error.

@hnishar It does as you can see from the logs in the initial message :) The interface of the function is pretty confusing, it says existingBucket, but in reality, it is about a freshly created bucket.
I see 2 ways of resolving this: wait for that related issue to be fixed or use the workaround I posted in my previous post

@hnishar It does as you can see from the logs in the initial message :) The interface of the function is pretty confusing, it says existingBucket, but in reality, it is about a freshly created bucket.
I see 2 ways of resolving this: wait for that related issue to be fixed or use the workaround I posted in my previous post

vzverv@ We will wait for the related issue to be fixed in CDK


Refactor storage interface and implement query filtering

#20  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @iuwqyir and the rest of your teammates on  Graphite


Error during install

Hello,
I'm following the procedures how to install abapGit from https://docs.abapgit.org/guide-install.html and https://help.sap.com/docs/btp/sap-business-technology-platform/install-and-set-up-abapgit.
I started SE38, created a new program, I followed the link https://raw.githubusercontent.com/abapGit/build/main/zabapgit_standalone.prog.abap and copied the code.
Attempt to activate returns an error: Line 36579: Type "CL_OO_SOURCE" is unknown.
I also found the closed issue: https://github.com/abapGit/abapGit/issues/5895
Where and how can I get code that contains the latest fixed version?
Thanks!

which version are you on? abapGit works from 702 and up

Hello,
It's 751: SAP_ABA	75I	0000	-		Cross-Application Component
Thanks.

I cannot find any static references to CL_OO_SOURCE, can you post a screenshot of the syntax error?

The code is from: https://raw.githubusercontent.com/abapGit/build/main/zabapgit_standalone.prog.abap (link from installation page)

it doesnt look like the source code from https://raw.githubusercontent.com/abapGit/build/main/zabapgit_standalone.prog.abap

Hello,
Mystery... the error is gone. Copied it again from https://raw.githubusercontent.com/abapGit/build/main/zabapgit_standalone.prog.abap
and it's a different code. Checked IE history - visited the same page yesterday...
Thanks!

cool, closing


chore: bdd-nh-1586364291 to 0.0.1

chore: Promote bdd-nh-1586364291 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Improve "Releases" so it's one version, one release

GH action should check if release already exists, and skip building
GH action not use Build ######## in release name, instead name reflect version and channel
bash script should take version from GitHub action via ENV var (instead of it looping on "LATESTa7.xxx") since action already knows the version

use matrix build with if:'s  to deal with "manually triggered version build" from workflow_dispatch


work as a set of plugin under drracket

As a plugin has its own benefit, but need to research how much can we do on this.

And rather than several independent plugins, a whole set might be better, to ensure we can rely on certain behavior.

started

started


Pre-TMPP changes

Add a page to edit hunt settings (name, description, etc.)
Add settings for leaderboard (Default, Speedrun, Hidden)

Default: Sort by score, solve count, and time of last solve
Speedrun: Sort by score, solve count, and time between team creation and last solve (Note: Set the hunt start time to the time that puzzles were made available so that solvers aren't penalized for creating teams early)
Hidden: Hide leaderboard except for organizers

Display correct guesses as the puzzle answer input in the backend

Note: This needs a migration to add a column for the leaderboard style settings


Set enumSource conditionally

Hi,
Here is my schema:

{
    "type" : "object",
    "properties" :
    {
        "Makes" :
        {
            "type" : "array",
            "enum" : [["Toyota","Honda","Ford"]],
            "options" : { "hidden" : true}
        },
        "Models" :
        {
            "type" : "array",
            "enum" : [["Camry", "Civic", "Focus"]],
            "options" : { "hidden" : true}
        },
        "Filter" :
        {
            "type" : "array",
            "items" :
            {
                "type" : "object",
                "id" : "options",
                "properties" :
                {
                    "Key" :
                    {
                        "type" : "string",
                        "enum" : ["Make","Model"]
                    },
                    "Value" :
                    {
                        "type" : "string",
                        "enumSource" : ["makes", "models"],
                        "enumValue" : "{{item}}",
                        "watch" :
                        {
                            "makes" : "root.Makes",
                            "models" : "root.Models"
                        }
                    }
                }
            }
        }
    }
}

My goal is that when Key is being selected, Value enumSource to be set to Makes and when Model is selected, enumSource of the value field to be set to Models.
Is it possible?
Thanks.

I think you are looking for oneOf? https://github.com/jdorn/json-editor/blob/master/examples/advanced.html

Thanks Lorenzbi,
oneOf would work but I was hoping to have a better UI generated, something like cascade drop downs.
I am not sure if that's possible though.

@rmeshksar Did you ever figure it out?


Add Nominating Info

Hi
This PR covers the following

Pre nominating info
When to use pools vs stake direct
How to stake direct on validator
How to join a nomination pools
Aimed at users that will stake AVL. So aimed for end users wishing to stake/delegate AVL.

Please assist to add to the menu, was unable to add to the menu. Tried editing _meta.json but didn't stick/work.
Outside of this pr I would recommend moving existing nomination pools to the validator section. The existing write up is how to create a pool, this should be done by validators or providers (wallets, exchanges) looking to pool stake together. Not end users
Hope this helps and contributes to Avail.
Thanks

Hey @staking4all thanks a lot for making this PR. I will go through this in detail and get back 2 u ASAP.

Hey @staking4all I have pushed a commit taking care of most of the comments. Can you pls take a look at the remaining ones?


PostgreSQL migrate/fresh with types

When creating migrations, I create new types, but when calling "migrate/fresh" all foreign keys, tables are deleted, but the types remain. I understand that this is a feature of PostgreSQL, but I think this is the expected behavior.
При создании миграций, я создаю новые типы, но при вызове "migrate/fresh" удаляются все внешние ключи, таблицы, но типы остаются. Я понимаю, что это особенность PostgreSQL, но мне кажется это ожидаемое поведение.
What steps will reproduce the problem?
in migration create new type
$this->execute("CREATE TYPE gender AS ENUM ('MALE', 'FEMALE');
clear migrations
php yii migrate/fresh
What is the expected result?
migration will pass without errors
What do you get instead?
exception type "gender" already exists
Additional info

Q
A

Yii version
2.0.15

PHP version
*

Operating system
*

i suggest to handle types and extension in postgresql NOT via Yii's Migration. Some Extension (e.g. ltree, ltree_gist) utilize data types too, if a Yii-Migration would purge all Datatypes, we would mess the Database's Extensions. A proper way to solve your issue would be to create and configure a postgres Database Template with all your desired Datatypes and Extensions.

@HenryVolkmer can I actually delete extension types?

It's an old issue,
dev_test=# CREATE TYPE gender AS ENUM ('MALE', 'FEMALE');
CREATE TYPE

dev_test=# drop type gender ;
DROP TYPE

DROP TYPE removes a user-defined data type. Only the owner of a type can remove it.
A potential workaround could be to use drop type if exist in safeUp() before executing create type
public function safeUp()
{
    $this->execute("DROP TYPE IF EXISTS gender;");
    $this->execute("CREATE TYPE gender AS ENUM ('MALE', 'FEMALE')");
}

can we close this?
I dont think its a good idea to purge the custom types for a Database on migrate/fresh.


pyenv: no such command `shell'

λ  ~  pyenv --version
pyenv 1.0.0-47-g5be82cb
λ  ~  pyenv shell
pyenv: no such command `shell'
λ  ~  eval "$(pyenv init -)"
λ  ~  pyenv shell 3.5.0
λ  ~  # win

I know you mention in the setup, that the necessary pyenv init - step however, perhaps the error message of no such command ... could be improved to say did you forget to run 'init'? I'd submit a PR if you think it's a good idea.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/37961509-pyenv-no-such-command-shell?utm_campaign=plugin&utm_content=tracker%2F282009&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282009&utm_medium=issues&utm_source=github).

It means that your shell isn't initialized with eval "$(pyenv init -)". Please review your shell configurations again.
https://github.com/yyuu/pyenv#basic-github-checkout

What I wanted to address with this issue is that the we should create a better error message for people that forget to eval "$(pyenv init -)". It's a little strange to have a missing command oh a CLI tool just because of that. No?

I agree it'd be helpful for  pyenv shell to provide some advice on what to do in order to enable the command to work correctly.


Featured images are only displaying as 88x88 thumbnails

I'm hoping you can help me troubleshoot this issue that appears with Autonomie (and, strangely, the Twenty Twenty theme as well).
I have assigned many of my posts featured images through the post editor. In other themes, these display without issue: the featured images appear in the blog feed with the posts, and on single post pages, the featured image displays as a full-width banner.

But when I switch to Autonomie, these featured images only display as 88x88 thumbnails, and are not featured at all in the header banner:

You can see this live on my blog.
This behavior persists even after I have disabled all plugins. I have no idea where the 88x88 dimensions are coming from; that is not a defined image size in my WordPress installation as far as I can tell.
I'm confused because notiz.blog, which also uses Autonomie, appears to have no problem using featured images.
I'd greatly appreciate any help troubleshooting this. I very much want to start using Autonomie so I can IndieWebify my blog--but this is standing in my way. Thanks!

Hmmm, this is weird. Have you added the featured image using Autonomie or with the theme you used before?

Can you tell me the name of the theme you used before?

The theme I used previously was Lovecraft, by Anders Norén. Before that was Pinboard.

Good news (I think?): a new post with a newly uploaded featured image does indeed work. I'll try rebuilding my post thumbnails with Autonomie active.

Rebuilding the post thumbnails did the trick, so it had nothing to do with Autonomie. Sorry to bother!

No problem! I am glad that it is not a problem of the theme 😊
Btw. There is also a checkbox, to display the image as hero header.

I noticed that! Is there any way to set that setting for several posts at once?

There is no bulk settings page in WordPress, but you can do it on DB level, if this is an option for you...

Late to the party but maybe this plugin can do the job to bulk edit several posts, if this hero header thing is done with custom fields.


[VC] update tenant master component to v1.16.x

Signed-off-by: zhuangqh<EMAIL_ADDRESS>

How do the image registries get updated?
I'm seeing both registry.cn-hangzhou.aliyuncs.com/virtualcluster/apiserver-v1.16.2 and virtualcluster/apiserver-v1.15.4.

How do the image registries get updated?
I'm seeing both registry.cn-hangzhou.aliyuncs.com/virtualcluster/... and virtualcluster/....

This, i also cannot access registry.cn-hangzhou.aliyuncs.com, it times out for me.

I wonder if we should have the same registry domain for all images that come from the virtualcluster project. I know for myself I usually build all the images and push them to my own registry then have to change all the paths manually, at least until we have #738 when we can use kustomize set image name=foobar.

I wonder if we should have the same registry domain for all images that come from the virtualcluster project. I know for myself I usually build all the images and push them to my own registry then have to change all the paths manually, at least until we have #738 when we can use kustomize set image name=foobar.

Yes, we should. @zhuangqh, we'd better change images to docker hub ones for loadbalancer type of clusterversion.

fixed. good catch @Fei-Guo @christopherhein

/lgtm
/approve