Simple-Search does not find products with a dash e.g. "foo-bar"

Simple-Search does not find products with a dash e.g. "foo-bar"
Issue Type

[X] Bug
[ ] Enhancement

Description
If a search term includes a dash "-" simple search does not show a matching product.
Example:  /simple_search?query=foo-bar
If there is a finding with that name, it is found.
If the issue is a bug, please also include the following:
Operating System
Ubuntu 16.04
Install

[ ] setup.bash
[ ] docker
[X] custom

DefectDojo Version
1.5.2
Steps to Reproduce

Create a product named "foo-bar"
Insert "foo-bar" into "simple search": /simple_search?query=foo-bar

I wanted to fix this issue, and then I saw the line that cleans the input before sending query to database.
This is not an error. It happens for security sake. if '-' is allowed in simple_search, It's going to be vulnerable to sql Injection

But I think hypen('-') should have never been allowed as a valid string for product name in the first place. This still posses some potential (less-likely) second order injection vulnerability

@aaronweaver can I implement stripping off '-' (or replacing '-' with '_' )before storing product name for the sake of avoiding this issue with simple_search.
'_' works just fine with product name

Hi @propersam, I'd rather figure out how to do it in the search. I'd look up Watson for python and figure out how to escape that. I'm pretty we can't be the only ones.
 products = watson.search(clean_query, models=(
                        Product.objects.filter(authorized_users__in=[
                            request.user]),))

Let me look into it and see what I can do

Could it be related to https://github.com/etianen/django-watson/issues/223 ?

I think this is indeed related to https://github.com/etianen/django-watson/issues/223. When I was investigating this issue, I created two products: dash-product and foo-bar, giving each one the description “For use with search”. Using the simple search to pull up these two products resulted in unexpected results; Typing foo-bar in the search bar failed to pull up the product foo-bar, but typing dash-product in the search bar successfully pulled the product dash-product. To further complicate things, typing in search in the search bar successfully pulled up both products (intended since both products had search in their description)

In #2861 I am working on some search improvements and am trying to make this work, but MySQL is really weird regarding hyphens, also see https://github.com/etianen/django-watson/issues/237
However, in the current WIP version of my PR I can finding products called eindhoven-airport for example. Basically foo-bar is the only example I can find that is not working 🤔


Add local Gnosis Relay to local dev setup

We'll need https://github.com/gnosis/safe-relay-service running as part of our dev spinup when developing the UI locally.

@petong once https://github.com/AugurProject/augur/pull/4259 is merged we need to populate the contract addresses when the relayer is run locally. Right now they are hard coded.
The initial cut of getting this working locally is done but the addresses are hard coded.

Exists in docker:all


Interface improvements on the Text Generator implementation

Warning: Notice that this PR is targeting #28, so make sure to merge both PRs in the right order!

Slightly reworked the text generation interface to move the platform-specific parameters to the concrete constructor.
Renamed the OpenAiTextGenerationService as OpenAiChatGenerationModel for better consistency with the other modules implemented and the use case implemented.
Rewritten the documentation for the new module accordingly to the changes.
Minor general tweaks and improvements

Merging this so we can have a single place (This is the base -> https://github.com/theam/eLLMental/pull/28) to review


Add a size parameter to send_file

add a size parameter with default value of None to send_file
in send_file, size is calculated based on the different files "structures".
But in some cases, like passing a mongodb fs (GridOut) file, the size is not calculated. There may be other cases like that where the caller can get the actual size of the file prior than calling send_file and pass the actual value.
This value could be used instead of calculating it if not None or simply as a default value to initialize the size variable.
This is the first step before asking for the same feature in Flask ;-)

Don't ask for it in Flask, it's implemented here.
If you know the size of the file, do the following:
response = send_file(...)
response.headers.set("Content-Length", size)
return response

Or just let it stream, there's nothing wrong with that either.
I don't plan to add more options to send_file at this point, it's already a very complex set of arguments.

Thanks. Much better!


question re: etcd proxies and recommended production cluster architecture

Seeking some minor clarification.
Is the recommended production cluster architecture documented here no longer necessary for the sake of performance with recent versions of etcd due to the fact that when using discovery, nodes > the number of nodes in the cluster automatically run etcd as a proxy?
https://coreos.com/os/docs/latest/cluster-architectures.html#production-cluster-with-central-services

After some experimentation, I think I can answer my own question now.  It seems that if a leader or follower dies, no proxy is ever promoted to fill the gap in the cluster.  I guess that would mean the architecture documented above is still recommended (but correct me if I am wrong) so that the actual etcd cluster running on a small, fixed number of nodes can be HA on its own, while the proxies that run elsewhere are purely for the convenience of other services and containers that need to connect to etcd.

The recommended production cluster architecture suggests that production cluster should use dedicated machines for etcd members to ensure its hardware resources to work well. This is critical to prevent etcd member down. Your understanding for this is correct.
The fall-back-to-proxy behavior simplifies the use case that lots of etcd process are bootstrapped using the same discovery token and users expect that they could send requests to all.
There is no automatic promotion or removal of etcd member. Users are expected to do it explicitly through etcdctl or HTTP API.


tvOS support?

Is it possible to compile Swifter for tvOS? In my short experience, apart from the UI libraries, it is very similar to the iOS library.

I've added new target for tvOS. Please have a look :)


Is the extension versioned

Is the extension versioned. So will i be able to get older achives of the extension. Say this version has support for some and next version has support for more and i need to access old version

hello @Praveengostu unfortunately no, the first few releases were chucked into 1 big json file, though as you mentioned we might be able to do that in the next releases. I'm happy and open for any ideas on how we can better manage the versioning. thank you

@Praveengostu closing this off. Suggestions are always welcome. closing this off. thanks

@Praveengostu thank you for asking this, apparently looking back at my commit logs I realised I was following the conventional-changelog convention, particularly the angular preset. I've regenerated all the CHANGELOG.md contents as well as the Github releases - so in saying that you should be able to pull older history, though not much really.
let me know. thanks

@rixrix Thankyou for the response. Apart from that I was also intrested in if the plugin/extension versioned. So vs code will allow me to install a older version of the the extension

re: older version

at the moment there's no official way based on from this ticket, https://github.com/Microsoft/vscode/issues/12764 there's a hack mentioned in the ticket - haven't tried it though.
However, if you want to do for the sake of debugging - you can do some symlinking trick, it was also asked here before see #30
thanks


Taking screenshots: build working but "undefined method `each' for nil:NilClass "

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description
The console prints undefined method `each' for nil:NilClass
Command executed
bundle exec fastlane ios screenshots --verbose
Complete output when running fastlane, including the stack trace and command used

ERROR [2021-01-06 20:29:10.47]: fastlane finished with errors
bundler: failed to load command: fastlane (/usr/local/bin/fastlane)
Traceback (most recent call last):
	44: from /usr/local/bin/bundle:23:in `'
	43: from /usr/local/bin/bundle:23:in `load'
	42: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/exe/bundle:37:in `'
	41: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
	40: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/exe/bundle:49:in `block in '
	39: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/cli.rb:24:in `start'
	38: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	37: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/cli.rb:30:in `dispatch'
	36: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	35: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	34: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	33: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/cli.rb:497:in `exec'
	32: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/cli/exec.rb:28:in `run'
	31: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/cli/exec.rb:63:in `kernel_load'
	30: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/cli/exec.rb:63:in `load'
	29: from /usr/local/bin/fastlane:23:in `'
	28: from /usr/local/bin/fastlane:23:in `load'
	27: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/bin/fastlane:5:in `'
	26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/cli_tools_distributor.rb:47:in `take_off'
	25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/commands_generator.rb:13:in `start'
	24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/commands_generator.rb:175:in `run'
	23: from /Library/Ruby/Gems/2.6.0/gems/commander-4.5.2/lib/commander/delegates.rb:15:in `run!'
	22: from /Library/Ruby/Gems/2.6.0/gems/fastlane_core-0.59.0/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
	21: from /Library/Ruby/Gems/2.6.0/gems/commander-4.5.2/lib/commander/runner.rb:452:in `run_active_command'
	20: from /Library/Ruby/Gems/2.6.0/gems/commander-4.5.2/lib/commander/command.rb:155:in `run'
	19: from /Library/Ruby/Gems/2.6.0/gems/commander-4.5.2/lib/commander/command.rb:184:in `call'
	18: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/commands_generator.rb:42:in `block (2 levels) in run'
	17: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/command_line_handler.rb:30:in `handle'
	16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
	15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:46:in `execute'
	14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:46:in `chdir'
	13: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:50:in `block in execute'
	12: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/lane.rb:33:in `call'
	11: from Fastfile:22:in `block (2 levels) in parsing_binding'
	10: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/fast_file.rb:140:in `method_missing'
	 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:109:in `trigger_action_by_name'
	 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:161:in `execute_action'
	 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:161:in `chdir'
	 6: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:162:in `block in execute_action'
	 5: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
	 4: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:177:in `block (2 levels) in execute_action'
	 3: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/actions/snapshot.rb:17:in `run'
	 2: from /Library/Ruby/Gems/2.6.0/gems/snapshot-1.16.4/lib/snapshot/runner.rb:60:in `work'
	 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane_core-0.59.0/lib/fastlane_core/ui/ui.rb:14:in `method_missing'
/Library/Ruby/Gems/2.6.0/gems/fastlane_core-0.59.0/lib/fastlane_core/ui/interface.rb:145:in `user_error!': undefined method `each' for nil:NilClass (FastlaneCore::Interface::FastlaneError)
	44: from /usr/local/bin/bundle:23:in `'
	43: from /usr/local/bin/bundle:23:in `load'
	42: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/exe/bundle:37:in `'
	41: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
	40: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/exe/bundle:49:in `block in '
	39: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/cli.rb:24:in `start'
	38: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	37: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/cli.rb:30:in `dispatch'
	36: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	35: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	34: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	33: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/cli.rb:497:in `exec'
	32: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/cli/exec.rb:28:in `run'
	31: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/cli/exec.rb:63:in `kernel_load'
	30: from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.3/lib/bundler/cli/exec.rb:63:in `load'
	29: from /usr/local/bin/fastlane:23:in `'
	28: from /usr/local/bin/fastlane:23:in `load'
	27: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/bin/fastlane:5:in `'
	26: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/cli_tools_distributor.rb:47:in `take_off'
	25: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/commands_generator.rb:13:in `start'
	24: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/commands_generator.rb:175:in `run'
	23: from /Library/Ruby/Gems/2.6.0/gems/commander-4.5.2/lib/commander/delegates.rb:15:in `run!'
	22: from /Library/Ruby/Gems/2.6.0/gems/fastlane_core-0.59.0/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
	21: from /Library/Ruby/Gems/2.6.0/gems/commander-4.5.2/lib/commander/runner.rb:452:in `run_active_command'
	20: from /Library/Ruby/Gems/2.6.0/gems/commander-4.5.2/lib/commander/command.rb:155:in `run'
	19: from /Library/Ruby/Gems/2.6.0/gems/commander-4.5.2/lib/commander/command.rb:184:in `call'
	18: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/commands_generator.rb:42:in `block (2 levels) in run'
	17: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/command_line_handler.rb:30:in `handle'
	16: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
	15: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:46:in `execute'
	14: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:46:in `chdir'
	13: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:50:in `block in execute'
	12: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/lane.rb:33:in `call'
	11: from Fastfile:22:in `block (2 levels) in parsing_binding'
	10: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/fast_file.rb:140:in `method_missing'
	 9: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:109:in `trigger_action_by_name'
	 8: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:161:in `execute_action'
	 7: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:161:in `chdir'
	 6: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:162:in `block in execute_action'
	 5: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
	 4: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/runner.rb:177:in `block (2 levels) in execute_action'
	 3: from /Library/Ruby/Gems/2.6.0/gems/fastlane-1.92.0/lib/fastlane/actions/snapshot.rb:17:in `run'
	 2: from /Library/Ruby/Gems/2.6.0/gems/snapshot-1.16.4/lib/snapshot/runner.rb:60:in `work'
	 1: from /Library/Ruby/Gems/2.6.0/gems/fastlane_core-0.59.0/lib/fastlane_core/ui/ui.rb:14:in `method_missing'
/Library/Ruby/Gems/2.6.0/gems/fastlane_core-0.59.0/lib/fastlane_core/ui/interface.rb:145:in `user_error!': [!] undefined method `each' for nil:NilClass (FastlaneCore::Interface::FastlaneError)

--
I pretty much followed the steps that the fastlane setup walks you through (told the prompt that I only want to capture screenshots, no App Store upload). I think I had to manually add the scheme to the Fastfile but eventually I got the first bit running. Had to fix 2 compiler errors in the SnapshotHelper.swift so building worked as well, Fastlane seems to recognize my project's files (I can see all the .swift files being compiled). However it stops at
--

[20:21:29]: ▸ All tests
[20:21:29]: ▸ Test Suite UITestScheme.xctest started
[20:21:29]: ▸ UITestScheme
[20:21:36]: ▸ ✓ testExample (7.028 seconds)
[20:21:56]: ▸ ✓ testLaunchPerformance (19.683 seconds)
[20:21:56]: ▸ 	 Executed 2 tests, with 0 failures (0 unexpected) in 26.712 (26.714) seconds
[20:21:56]: ▸
[20:21:56]: ▸ 2021-01-06 20:21:56.311 xcodebuild[00000:1234567] [MT] IDETestOperationsObserverDebug: 42.384 elapsed -- Testing started completed.
[20:21:56]: ▸ 2021-01-06 20:21:56.311 xcodebuild[00000:1234567] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
[20:21:56]: ▸ 2021-01-06 20:21:56.311 xcodebuild[00000:1234567] [MT] IDETestOperationsObserverDebug: 42.384 sec, +42.384 sec -- end
[20:21:56]: ▸ Test Succeeded
[20:22:02]: Collecting screenshots...
[20:22:02]: undefined method `each' for nil:NilClass
+-----------+---------+
|  snapshot results   |
+-----------+---------+
| Device    | en-US   |
+-----------+---------+
| iPhone 12 |  ❌      |
+-----------+---------+
[20:22:02]: Variable Dump:
[20:22:02]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios screenshots"}
[20:22:02]: undefined method `each' for nil:NilClass

Environment
🚫 fastlane environment 🚫
Stack

Key
Value

OS
10.15.7

Ruby
2.6.3

Bundler?
false

Git
git version 2.30.0

Installation Source
/usr/local/bin/fastlane

Host
Mac OS X 10.15.7 (19H2)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib

OpenSSL Version
LibreSSL 2.8.3

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
12.1

System Locale

Error

No Locale with UTF8 found 🚫

fastlane files:
`./fastlane/Fastfile`
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

platform :ios do
  desc "Generate new localized screenshots"
  lane :screenshots do
    #capture_screenshots(scheme: "UITestScheme")
    snapshot
  end
end

`./fastlane/Appfile`
app_identifie00000000000000000ndle identifier of your app
# apple_id("[[APPLE_ID]]") # Your Apple email address

# For more information about the Appfile, see:
#     https://docs.fastlane.tools/advanced/#appfile

fastlane gems

Gem
Version
Update-Status

fastlane
2.171.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.3.0

slack-notifier
2.3.2

atomos
0.1.3

claide
1.0.3

colored2
3.1.2

nanaimo
0.3.0

xcodeproj
1.19.0

rouge
2.0.7

xcpretty
0.3.0

terminal-notifier
2.0.0

public_suffix
4.0.6

addressable
2.7.0

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.8.1

tty-cursor
0.7.1

tty-spinner
0.9.3

babosa
1.0.4

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

excon
0.78.1

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20190701

http-cookie
1.0.3

faraday-cookie_jar
0.0.7

faraday-net_http
1.0.0

ruby2_keywords
0.0.2

faraday
1.3.0

faraday_middleware
1.0.0

fastimage
2.2.1

gh_inspector
1.1.3

mini_magick
4.11.0

rubyzip
2.3.0

security
0.1.3

xcpretty-travis-formatter
1.0.1

dotenv
2.7.6

bundler
2.2.3

naturally
2.2.0

simctl
1.6.8

jwt
2.2.2

declarative
0.0.20

declarative-option
0.1.0

representable
3.0.4

mini_mime
1.0.2

multi_json
1.15.0

signet
0.14.0

memoist
0.16.2

os
1.1.1

googleauth
0.14.0

httpclient
2.8.3

google-api-client
0.38.0

google-cloud-env
1.4.0

google-cloud-errors
1.0.1

google-cloud-core
1.5.0

rake
12.3.2

digest-crc
0.6.3

google-cloud-storage
1.29.2

emoji_regex
3.2.1

jmespath
1.4.0

000000000000000000000000

CFPropertyList
3.0.3

unicode-display_width
1.7.0

terminal-table
1.8.0

plist
3.6.0

json
2.1.0

uber
0.1.0

retriable
3.1.2

forwardable
1.2.0

logger
1.3.0

000000000000000000000000

date
2.0.0

stringio
0.0.2

zlib
1.0.0

ipaddr
1.2.2

openssl
2.1.2

ostruct
0.1.0

strscan
1.0.0

fileutils
1.1.0

etc
1.0.1

io-console
0.4.7

libxml-ruby
3.1.0

rexml
3.1.9

psych
3.1.0

mutex_m
0.1.0

generated on: 2021-01-06

I have the same problem. I did some digging and the problem occurs here.
The plist file does not contain TestableSummaries, causing the loop to fail. From the logs:
INFO [2021-01-27 16:07:43.76]: ▸ Test Succeeded
INFO [2021-01-27 16:07:49.84]: Collecting screenshots...
DEBUG [2021-01-27 16:07:49.84]: Loading up '/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxx/Logs/Test/LogStoreManifest.plist'...

 I have no idea why it doesn't work. I am using it in a React Native project (0.63.4).
@Reiszecke Can you share your test file?

I have the same problem. I did some digging and the problem occurs here.
The plist file does not contain TestableSummaries, causing the loop to fail. From the logs:
INFO [2021-01-27 16:07:43.76]: ▸ Test Succeeded
INFO [2021-01-27 16:07:49.84]: Collecting screenshots...
DEBUG [2021-01-27 16:07:49.84]: Loading up '/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxx/Logs/Test/LogStoreManifest.plist'...

 I have no idea why it doesn't work. I am using it in a React Native project (0.63.4).
@Reiszecke Can you share your test file?

I was able to solve this problem by first removing all instances of Fastlane (brew uninstall fastlane) and removing my local gems in ~/.gem. I use rbenv but for some reason it didn't work correctly. I made sure to have the following at the end of my ~/zshrc :
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/bin:$PATH"

Restart your terminal or run source ~/.zshrc. Next, I installed Ruby version 2.7.2:
rbenv install 2.7.2
rbenv global 2.7.2

Make sure gem env home has the following output:
/Users/xxx/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0

The last step was just gem install fastlane and everything started working. Please note that the documentation recommends adding a Gemfile to your project.

I was able to solve this problem by first removing all instances of Fastlane (brew uninstall fastlane) and removing my local gems in ~/.gem. I use rbenv but for some reason it didn't work correctly. I made sure to have the following at the end of my ~/zshrc :
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/bin:$PATH"

Restart your terminal or run source ~/.zshrc. Next, I installed Ruby version 2.7.2:
rbenv install 2.7.2
rbenv global 2.7.2

Make sure gem env home has the following output:
/Users/xxx/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0

The last step was just gem install fastlane and everything started working. Please note that the documentation recommends adding a Gemfile to your project.


fix: removing submit action rights from fap-chair and fap-secretary role

Description
Only user officers should be able to submit final meeting decisions in meeting components section of the FAP software

Motivation and Context

How Has This Been Tested

Fixes
https://github.com/UserOfficeProject/issue-tracker/issues/1051

Changes

Depends on

Tests included/Docs Updated?

[ ] I have added tests to cover my changes.
[ ] All relevant doc has been updated

This would need to be checked on the backend as well


⚠ Slack has degraded performance

In ab5ff84, Slack (https://status.slack.com/api/v2.0.0/current) experienced degraded performance:

HTTP code: 200
Response time: 320 ms

Resolved: Slack performance has improved in 6ea4857 after 11 hours, 48 minutes.


Add changes to WithRouterProps

You're adding an internal API to the docs. Never import from dist.

Thanks for the check, spotting the error and giving feedback.
Before upgrading to version 9 I would access WithRouterProps from 'next/router', but that doesn't work anymore. I tried to add how to do it in v9 to the migration guide, but obviously wrong. What is the correct way now?


--version doesn't list the plugin's version

Describe the feature/change you'd like.
please also add the function that mov-cli --version arg, can also display the installed plugin's version.

Will be added with v4.3.

https://github.com/mov-cli/mov-cli/commit/0632aad8aafc1da9e9a84ab465f66ebd99067131

0632aad

mov-cli --version

Good Night, USER.
    It's 06:38 AM on a gorgeous Wednesday!

-> Version: 4.3.0

it doesn't show the versions of plugins.
is it because it's made available in the list plugins arg?
mov-cli -lp
- mov-cli-test (test) [1.1.0]
  - test
- mov-cli-films (films) [1.3.7]
  - vidsrcme
  - vadapav
  - vidsrcto
- mov-cli-anime (anime) [1.1.0]
  - anitaku
- mov-cli-youtube (youtube) [1.1.2]
- mov-cli-files (files) [1.0.3]
  - boilerplate

Yes


any support for pdf?

Initial support for importing PDF documents (where pages are imported as rasterized images) will be added in https://github.com/igorski/bitmappery/pull/26

PFD import has been added in f16c7492e928bc2376139d556611f8d3a559c774


Moving modal resets form

After editing modal form and moving modal, the form values reset.
By adding phx-update="ignore" to the div surrounding each form element, the problem goes away

Hello,
This is now fixed with 6d940efcd1023b4667904b5a7a3a517be013702c in a much better way.
I was waiting for the release of liveview 0.17.6 to clean it.
Cheers,
Sébastien.


Change data structure to fit geofirestore-js

Change the data structure from this
{
   "g": "",
   "l": "",
   ...
}

To this
{
   "g": "",
   "l": "",
   "d": {
        ....
   }
}

In order to support the users of the geofirestore-js library.

I think the structure of the library shouldn't change because of backward compatibility and because it's the unique mark of this library.
Currently, I'm working on an update that will use as default a GeoPoint for "l", but still accept a list like the current model, with this update all the data created by geofirestore-js will be readable by the library as aspected, the only problem is when creating the data with this library, but #22 can solve this replacing at all the geofirestore-js library.


trim minor version from VERSION_ID

If using alternative distro, such as Rocky Linux, VERSION_ID prints out as "8.5" (depending on current minor version), which won't work well for most enterprise-linux repositories that use only major release version "8".
Here I simply trim out everything that comes after the dot, resulting in VERSION_ID=8, or in this case, RHEL_COMPAT_VER

Makes sense - LGTM!  Thanks!


Overlapping of Select Profile section.

The Profile section overlaps the Navbar when it reach to the same height as you can see from the screen shot.

Screen Shot :

Great issue @BaibhavTiwari . Start working on it !!

Sure @Vikash-8090-Yadav 🚀

hey @Vikash-8090-Yadav  will like to edit the styling of the navbar and the Select Profile button and the index page to look something like :

Select Profile button and Index Page:

Navbar : [just changed the padding size and added a dark background color]

Original :

@BaibhavTiwari please share a  video for   changes .

@BaibhavTiwari please share a video for changes .

you can see the changes here : https://www.loom.com/share/e57b344eadfd4e24b0a5d1a042b9ac8b

Great raise a pr for this


Programmatically inject a node at render time, possible feature.

Hi Folks,
I'm a long term admirer of the project. Keep up the good work!!.
This might be one for Howie,
Say I want to programmatically inject a node adjacent to an existing map node during render time.
For example a 'helper' node that would appear/disappear in sympthy with some external condition. I want to preserve the functionality of the 'parent' node. I'm temped to try this via the WeatherMapPreProcessor plugin.
With timerity I tried this approach which for testing is based on a node hint variable;
#############################################################################
#############################################################################
# Server and site specific from here on, sc.
#
# Jan, 2018 Attempt to add a helper node based on some external condition
#           using a map pre processor plugin.
#           Test a dummy node hint for the moment.
#############################################################################

        // Make sure the user has done his bit
       if(!isset($map->hints["map_context"])) {
           if($map->context=='cli') {
               print("WARNING: cannot find 'map_context' directive in map configuration file. Quitting map setup routine.\n");
           }
           return(FALSE);
       }

       # Vector report
       $doMerge;
       $lastId=    end($map->nodes)->id; // last nodeId after conf parse?
       foreach($map->nodes as $index => $node) {

           if (isset($node->hints["vectorReport"])) {

               # Picked up a test hint, populate the new node object
               $defnode=                       new WeatherMapNode;
               $newInstanceName=               $node->name . "_report";

               # the hash keys . . .
               $defnode->id=                   ++$lastId;
               $defnode->name=                 $newInstanceName;

               # Use the cardinal offset function?
               # $defnode->labeloffset=        'S';    # this bird may have flown . . .
               $defnode->x=                  $node->x + 100;
               $defnode->y=                  $node->y + 100;

               # Minimal config to get us on the map?
               $defnode->iconfile=           "/home/mapman/weathermap/images/editor/report_18_18.png";
               $defnode->label=              'report';
               $defnode->infourl[0]=         "/~mapman/fastcgi/development/vectorReportTest.fcgi?vector=" . $map->hints["map_context"] . "." . $node->name;
               $defnode->notestext[0]=       "Follow link for vector report";
               $defnode->overlibwidth=       350;
               $defnode->overlibheight=      200;
               $defnode->overliburl[0][0]=    "function";
               $defnode->overliburl[0][1]=    "fnVectorPopup('vector=" . $map->hints["map_context"] . "." . $node->name . "&delta=8days')";

               # just 'inherit' the parent to keep the noise down when rendering
               $defnode->labelfont=            $node->labelfont;
               $defnode->inpercent=            $node->inpercent;
               $defnode->outpercent=           $node->outpercent;
               $defnode->overlibcaption=       $node->overlibcaption;
               $defnode->max_bandwidth_in=     $node->max_bandwidth_in;
               $defnode->max_bandwidth_out=    $node->max_bandwidth_out;
               $defnode->max_bandwidth_in_cfg= $node->max_bandwidth_in_cfg;
               $defnode->max_bandwidth_out_cfg=$node->max_bandwidth_out_cfg;

               # Add new to temp hash
               $addNode[$newInstanceName]= $defnode;
               $doMerge=                   1;
              }
       }

       # See if we have anything
       if (isset($doMerge)) {
           $map->nodes=    array_merge($map->nodes,$addNode);
           # echo > stdout for a look
           foreach($map->nodes as $index => $node) {
               print $index . "=>" . $node->id . "=>". $node->name . "\n";
           }
       }

Hmmmm . . ., map->nodes is updated and the rendering runtime 'seems' to pick up the additions. For example I get a couple of  'ColourFromPercent: Attempted to use non-existent scale' warnings for the added node. But nothing appears on the canvas!. In the resultant html the 'id' counter above is clobbered by the links collection.
Anything obvious in the code, or is it worth the effort?
Running Weathermap98/PHP 5.4.16/CentOs7 . . .
Thanks and Regards,
Stephen

Can I have a bit of context? Where are you putting this code?

It's OK, I see where you are.
A few comments:

If you look at ReadConfig, you can see how that creates nodes. You don't need to manage all the inheritance, or IDs.
$curnode=new WeatherMapNode;
$curnode->name=$matches[2];
$curnode->Reset($this);

(where $this is $map) That copies everything from the DEFAULT node. If you want it to be from a different one (like the 'parent' node), you can add $curnode->template="othernodename" before the Reset, and it will use that as a template instead. Reset also sets the id property. So you only need to add the properties that are actually different (icon, overlib), after the Reset has copied the template.

You would already be too late in the process to deal with relative positioning unfortunately.

It definitely feels like there should be an easier way to do this :-)

This will almost certainly break when 1.0 is done. The internals have changed a fair bit. At least the property names and class names for various things.

Thanks for the response.
If there is the demand you might consider such a method in a future release, let's see!.
Point four above is important. Until then your guidance produces a result;
        #############################################################################
        #############################################################################
        # Jan, 2018 Attempt to add a helper node (based on an external condition)
        #           using a map pre processor plugin. For the moment we test a
        #           node dummy hint, sc.
        # Feb, 2018 Tidy up as suggested, https://github.com/howardjones (regards)
        #############################################################################

        # Iterate the $map->nodes collection and set $addNode with candidate nodes
        $addNode=   array();
        foreach($map->nodes as $key => $node) {
            if (isset($node->hints["vectorReport"])) {
                array_push($addNode,$key);      # Remember the 'parent' node Larry Wall style
            }
        }

        # addNode will be set with nodeNames that contained the hint. Iterate and add an
        # additional 'helper' node to the $map->nodes collection. Adjust properties via hints
        # or external samaohores.
        foreach($addNode as $value) {

            $newName=                           $value . "_report";     # New node name and
            $defnode=                           new WeatherMapNode;     # new class instance.
            $defnode->name=                     $newName;               # Howie style, set instance name
            $defnode->Reset($map);                                      # and instantiate with defaults.
            $map->nodes[$newName]=              $defnode;               # Save to nodes collection

            # Populate properties
            $map->nodes[$newName]->x=           $map->nodes[$value]->x + 25;
            $map->nodes[$newName]->y=           $map->nodes[$value]->y + 25;
            $map->nodes[$newName]->iconfile=    "/home/mapman/weathermap/images/editor/report_18_18.png";
            $map->nodes[$newName]->label=       "";
            # Etc, etc . . .

            # Gotcha, push the node reference into the zlayers collection or it will be ignored
            array_push($map->seen_zlayers[$defnode->zorder],$map->nodes[$newName]);
        }
        # And return. The rendering environment will see an
        # augmented $map->nodes collection . . .
        #############################################################################
        #############################################################################

Got caught with the xlayers collection which is set in ReadConfig method. Had to dig around a  bit.
Best regards,
Stephen


refactor: enable and fix class-methods-use-this

- Summary

See #1891
Enables the class-methods-use-this for ESLint and fixes instances where this wasn't used by turning them to static methods.
- Test plan

npm run format:check:lint runs without error.
npm test passed for all tests.

@ehmicky Can you check this once?

@ehmicky Could you please approve the workflows? Thank you.

Snapshots for  should detect a known framework & should prompt when multiple frameworks are detected are failing. The directory is getting printed along with the npm start command. Not able to determine why.
Difference:

    `◈ Netlify Dev ◈␊
    ◈ Starting Netlify Dev with create-react-app␊
    ␊
  - > @ start /private/var/folders/0k/64h0wtf946jbc7dp54bqv73c0000gn/T/netlify-cli-tests-v16.3.0/5163/e6750e7f-4b93-48ae-90e2-022f35c32b40/site-with-cra␊
  + > start␊
    > react-scripts start␊
    ␊
    ◈ "npm start" exited with code *. Shutting down Netlify Dev server`

  › tests/framework-detection.test.js:148:7
  › withSiteBuilder (tests/utils/site-builder.js:177:12)
  › tests/framework-detection.test.js:139:3

Hi @tinfoil-knight, let me try and reproduce this locally.
We've seen this happen only on Node.js 10 (and have code to normalize it).
Those tests are passing in our CI on Node.j 16 and 10 though

There was a merge conflict in src/utils/command.js. Has been resolved now.

Unfortunately, resolving the commit from Github itself led to prettier formatting errors. This has been fixed now.

Remove un-necessary multiple merge commits from main.

@erezrokah Please merge main and approve running workflow.

@erezrokah Please review and merge if everything looks fine.

Hi @tinfoil-knight, thanks for opening the PR. This is on my todo list for today 👍

@erezrokah I wanted to extract those utilities out too. Should I do that in the same PR or open a different one after this is merged?

@erezrokah I wanted to extract those utilities out too. Will do it. How about I put them in a command-utils file instead of removing the default export for BaseCommand. [We can later separate these to different files wherever necessary]

@erezrokah I wanted to extract those utilities out too. Will do it. How about I put them in a command-utils file instead of removing the default export for BaseCommand. [We can later separate these to different files wherever necessary]

👍 That makes sense

@erezrokah In many places there's code like below where functions (like log) are passed as arguments. For class methods, this seems fine but now that some static methods are being taken out and placed separately, passing those functions seems a bit weird? What do you think?
const logExistingAndExit = ({ log, exit, siteInfo }) => {
  log()
  log(`This site has been initialized`)
  log()
  log(`Site Name:  ${chalk.cyan(siteInfo.name)}`)
  log(`Site Url:   ${chalk.cyan(siteInfo.ssl_url || siteInfo.url)}`)
  log(`Site Repo:  ${chalk.cyan(getRepoUrl({ siteInfo }))}`)
  log(`Site Id:    ${chalk.cyan(siteInfo.id)}`)
  log(`Admin URL:  ${chalk.cyan(siteInfo.admin_url)}`)
  log()
  log(`To disconnect this directory and create a new site (or link to another siteId)`)
  log(`1. Run ${chalk.cyanBright.bold('netlify unlink')}`)
  log(`2. Then run ${chalk.cyanBright.bold('netlify init')} again`)
  exit()
}

For a better example, see init.js.

@erezrokah Could you please review the question above once so I can progress forward on the issue?

@erezrokah In many places there's code like below where functions (like log) are passed as arguments. For class methods, this seems fine but now that some static methods are being taken out and used separately, passing those functions as parameters seems a bit weird? What do you think?

Good point, could we require those functions instead of passing as arguments?

Good point, could we require those functions instead of passing as arguments?

Yep. That's what I was thinking. Just taking the functions out and making it a top-level require/import in the file instead of passing as args.
Just wanted to confirm since things would change in a lot of places. Thank you.

NOTE: Don't review yet. Some bugs emerged post the merge.

Currently, running npx ava tests/serving-functions.test.js fails Updates a TypeScript function when a supporting file is modified with a timeout. This doesn't happen when running with the --serial flag though.

Currently, running npx ava tests/serving-functions.test.js fails function-with-included-files with a timeout. This doesn't happen when running with the --serial flag though.

This seems unrelated to your change. Those tests are flaky and we're actively trying to stabilize them

This seems unrelated to your change. Those tests are flaky and we're actively trying to stabilize them

Alright then. The PR is ready for a review in that case.

I've fixed all the merge commits.

This PR should also fix https://github.com/netlify/cli/issues/2728.

This PR should also fix #2728.

Good point. I think it fixes part of #2728, as we still have warn and error that are used from then oclif command instance.


Not catching all exceptions during reading.

"Permission denied" will be logged.

@dd-morphi thanks for your contribution. your patch is included in 0.5.3 release https://www.nuget.org/packages/VaultSharp.Extensions.Configuration/


📖S2iRun Doc

A complete sample configuration file with explaination of S2iRun

too old
/close

/cc @shaowenchen

/close


tr.yaml

Add Turkish translation

Hi! This is the first time me doing anything on Github - so not sure if I have done it right.

Thank you very much for your contribution @caglarkoksal - it looks great, although the only Turkish words I understand are Marmaris and Foça 😆 🤣


FBMN hands on

Renaming folder containing two additional sets of slides for FBMN hands-on module.

Adding FBMN modules and merging them into the right folder module 05, deleting previous folder named module 5.


How to use in springwebflux

i has use nacos,dubbo grpc,springcloudwebflux in my project,how to use dtm in my project
client:

provider

seems that your project is http based, so you can see the examples for http: https://github.com/dtm-labs/quick-start-sample
If you are using a http/grpc based microservice framework, you can see dtmdriver-springcloud/dtmdriver-gozero for examples

Whether Java grpc mode is supported？

currently not. PR is welcome!
@horseLk


Improve docs for load balancers - update scenarios

Provide docs for loadbalancers for update scenarios, such as:

change in the NEG (i.e. changing the destination)
rotation of the TLS certificates

And rationale behind the approach (i.e. do not introduce failures during the change)
READMEs:

[ ] modules/net-lb-app-ext-regional
[ ] modules/net-lb-app-ext
[ ] modules/net-lb-app-int-cross-region
[ ] modules/net-lb-app-int
[ ] modules/net-lb-ext
[ ] modules/net-lb-int
[ ] moudles/net-lb-proxy-int

@wiktorn I am new and want to contribute as an open-source contributor. I have understand the issue #1972 and #2080.
As a new contributor, just asking for your suggestion. Should I add a proper description of how to handle if in case there is a change in NEG configuration inside LB in this README.md file?
Also, I didn't get it what's the problem with TLS certificates regarding this LB update scenario? I didn't get much information about it except here

Hi @NayeemShaMd, thank you for your interest in this!
Yes, the idea is to update the READMEs of:

modules/net-lb-app-ext-regional
modules/net-lb-app-ext
modules/net-lb-app-int-cross-region
modules/net-lb-app-int
modules/net-lb-ext
modules/net-lb-int
moudles/net-lb-proxy-int

But let's take it one by one.
Regarding the actual update, I think that it's not only about NEGs, but it is the same situation with backends pointing to instance groups, URL map changes etc.
Whenever the change is requiring resource recreation, what is a proper way forward is to create a new resource (and "path" to it), and then update the configuration so the traffic is properly routed. This then ensures minimal interruption to the application/traffic, provided that application is handling properly this "split brain" situation.
And with TLS certificates is very similar situation - if you try now rotate the cert on the same Terraform resource (see here - just change the validity_period_hours to 1 and after 1h terraform will try to recreate tls_self_signed_cert), the update will fail. What you really want to do, is to create a new certificate and add it to Load Balancer and then remove the old one.
Hope that helps.

@wiktorn thanks a lot for the details. I will look into it and write the documentation. Could you please assign this task to me?

@wiktorn this has been idle for almost 2 months, can we close it?

@ludoo Please give me two weeks, I'll try to squeeze it somewhere.


Missing documentation on valid modifiers for move_mask, resize_mask

Resize masks and move masks were reworked in this PR:
https://github.com/JLErvin/berry/pull/146
But the man page (and website?) could be a bit better.
The current man page looks like this:
       move_mask Mod1/Mod2/Mod3/Mod4/Mod5
              Determine the button mask used to move windows using the mouse.

       resize_mask Mod1/Mod2/Mod3/Mod4/Mod5
              Determine the button mask  used  to  resize  windows  using  the  mouse.   If
              move_mask and resize_mask use the same value, the move_mask takes precedence.`

But technically "Mod1", and the others listed, are invalid. Only lower-case strings (e.g. "mod1") are accepted.

Fixed in https://github.com/JLErvin/berry/pull/178


AddOwnerRef should update

Signed-off-by: Muvaffak Onus<EMAIL_ADDRESS>
Description of your changes
AddOwnerReference should always set the owner ref array to be able to modify the existing reference. Otherwise it never updates the existing owner ref.

Checklist

I have:

[x] Run make reviewable to ensure this PR is ready for review.
[x] Ensured this PR contains a neat, self documenting set of commits.
[x] Updated any relevant documentation, examples, or release notes.
[x] Updated the RBAC permissions in clusterrole.yaml to include any new types.

Are you sure this is necessary? Typically I'd expect this to work per https://play.golang.org/p/KXo6vizZol2.

Typically I'd expect this to work per https://play.golang.org/p/KXo6vizZol2.

I'm not able to access this as Go playground seems to be down.

Are you sure this is necessary?

Since GetOwnerReferences() []OwnerReference returns a copy of the owner references refs[i] = ref does pretty much nothing. I've run into this in an edge case where the object was owner but not controller and the owner ref didn't get updated because set never called. It'd be more correct if we actually updated the owner ref if it already exists or skip the case where it already exists altogether.


The command "php vendor/bin/phinx create MyNewMigration" is not working.

It just shows the following.  I tried it on the latest version, i.e., version 0.5.1, and on version 0.4.4.  I am getting the following with both instead of getting a migration class.  I could get "phinx.yml" file; I entered the info for pgsql database.  I also could get a migrations folder which is empty.
dir=$(d=${0%[/]*}; cd "$d"; cd '../robmorgan/phinx/bin' && pwd)
See if we are running in Cygwin by checking for cygpath program
if command -v 'cygpath' >/dev/null 2>&1; then
# Cygwin paths start with /cygdrive/ which will break windows PHP,
# so we need to translate the dir path to windows format. However
# we could be using cygwin PHP which does not require this, so we
# test if the path to PHP starts with /cygdrive/ rather than /usr/bin
if [[ $(which php) == /cygdrive/* ]]; then
dir=$(cygpath -m $dir);
fi
fi
dir=$(echo $dir | sed 's/ /\ /g')
"${dir}/phinx" "$@"

The content of vendor/bin are runnables. No need to use the PHP loader.
Use vendor/bin/phinx create xxxx where xxxx is the name of the migration you want.

@rquadling I noticed that the tables were created in the directory db/migrations.  However, there is an empty migrations directory just after root directory; should I delete that?  The content of  phinx file is the same as above; I guess it should be like that.
Thanks for your help

The location of the migrations is softcoded. You can set it in your config file (phinx.yml, phinx.php, etc.)

Table 'users' and its columns are not being migrated to postgres database.  It says: "All Done. Took 0.0367s", but it doesn't show any message indicating migration.  Also, my database table is empty; no database table with the name 'users' is created.

Can you show your migration script?

Here is the script, originally it was different, then I wrote the way to you wrote on your website:
public function up()
{
  $users = $this->table('users');
  $users->addColumn('first_name', 'string', array('limit' => 30))
        ->addColumn('last_name', 'string', array('limit' => 30))
        ->addColumn('email', 'string', array('limit' => 100))
        ->addColumn('password', 'string', array('limit' => 40))
        ->addColumn('created', 'datetime')
        ->addColumn('updated_at', 'datetime', array('null' => true))
        ->save();
}

public function down()
{
  $this->dropTable('users');
}

@rquadling  I could fix it after I deleted phinxlog from postgress database where 'users' table supposed to be.  So I close this issue.

OK.

I got errors even after reading and following the above guideline that vendor/bin is runnable. After searching I realized that on Windows the command is only accepted with backslashes, so the command is only valid as vendor\bin\phinx init. With this command it all worked. Hope it helps some of the Windows users.


[SPARK-22624][PYSPARK] Expose range partitioning shuffle introduced by spark-22614

What changes were proposed in this pull request?
Expose range partitioning shuffle introduced by spark-22614
How was this patch tested?
Unit test in dataframe.py
Please review http://spark.apache.org/contributing.html before opening a pull request.

Test build #86989 has started for PR 20456 at commit effc95d.

@gatorsmile @HyukjinKwon Please review it again, thanks

Test build #86989 has finished for PR 20456 at commit effc95d.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/86989/
Test PASSed.

Test build #87044 has started for PR 20456 at commit 53af9b4.

Test build #87044 has finished for PR 20456 at commit 53af9b4.

This patch fails Python style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87044/
Test FAILed.

Test build #87045 has started for PR 20456 at commit 8e8e5dc.

Test build #87045 has finished for PR 20456 at commit 8e8e5dc.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87045/
Test PASSed.

Test build #87049 has finished for PR 20456 at commit b1a2fe0.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87049/
Test PASSed.

Test build #87082 has started for PR 20456 at commit 67feea1.

Test build #87082 has finished for PR 20456 at commit 67feea1.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/87082/
Test PASSed.

retest this please

Test build #87306 has started for PR 20456 at commit 67feea1.

Merged to master.


Fix some resource leaks in GpuCast and RapidsShuffleServerSuite

Noticed some warnings about leaked resources in the detailed test log, and upon investigating I found a few leaks.  In the case of GpuCast, a column vector was being leaked if we threw an exception due to ANSI mode checks.  For RapidsShuffleServerSuite, the getBufferSendState method returns an instance that must be closed but the tests were failing to do so.

Note that viewing the diff with whitespace changes hidden should help with the GpuCast change.

build


not working with array

i try to rotate vectors with an array or quaterion, seems not working for me

Could you provide some sample code wir the expected outcome? And which version are you using?

sorry, but it seems it produce two results on two system one my server
i have the code
import tfquaternion as tfq
import tensorflow as tf
sess=tf.Session()
q=tfq.Quaternion([[1.0,2.0,3.0,4.0],[5.0,6.0,7.0,8.0]])
print q
print 'as quaterion matrix'
matq=q.as_rotation_matrix()
print matq
print sess.run(matq)
import quaternion
import numpy as np
q=quaternion.quaternion(1.0,2.0,3.0,4.0)
print q
matq2=quaternion.as_rotation_matrix(q)
print matq2
and the results are wrong
<tfq.Quaternion '' (tf.Tensor 'Const_9:0' shape=(2, 4) dtype=float32)>
as quaterion matrix
Tensor("quaternion_as_rotation_matrix_3/stack_3:0", shape=(2, 3, 3), dtype=float32)
[[[ 0.7549019   0.01960784  0.10784315]
[ 0.09803922  0.8039216   0.09803922]
[ 0.04901962  0.13725491  0.872549  ]]
[[-0.10784322  0.01960781  0.81372553]
[ 0.8039216   0.01960778  0.25490198]
[ 0.127451    0.84313726  0.16666669]]]
quaternion(1, 2, 3, 4)
[[-0.66666667  0.13333333  0.73333333]
[ 0.66666667 -0.33333333  0.66666667]
[ 0.33333333  0.93333333  0.13333333]]
but on my laptop, the results are right
I will try to update the package on my server and try it again

i tried to reinstall tfq on the server,but it seems not working

it works now, only after i upgrade tf to 1.6
but there is an warnning, I hope it does not matter for my case
s quaterion matrix
WARNING:tensorflow:From /home/fliu/anaconda2/lib/python2.7/site-packages/tfquaternion/tfquaternion.py:389: calling reduce_sum (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
Instructions for updating:
keep_dims is deprecated, use keepdims instead

Sorry for the late reply, I'm travelling at the moment with limited access to internet. Thanks for investigating further! ;) Do you know which version of tensorflow you've been using before? Then I'll add a check to setup.py for the correct version number. The warning is not harmful at the moment, there's a pending pull request to fix  this.

Closing, as tf < 1.6 is rather old now.


RTEConfig for 'ckeditor4' is loading 'ckeditor.js' from a wrong path

Describe the bug
When loading a page in edit mode there is a 404 response from a request to /static/djangocms_text/vendor/ckeditor4/ckeditor.js.
From what i've searched it seems that this is a path defined in the RTEConfig:
https://github.com/django-cms/djangocms-text/blob/6ce2d5f00286b3a9ff9f856f9258f82e681fa715/djangocms_text/contrib/text_ckeditor4/__init__.py#L8
A script tag using this wrong url path can be seen in the page DOM.
However it has surprised me that this request failure does not break the editor, it still works perfectly well without any error when using it.
Environment

Plateform: Any
Python version: Python 3.10
Django version: Django 5.0.10
DjangoCMS version: Django 4.1.4
djangocms-text version: 0.3.3

To Reproduce
Steps to reproduce the behavior:

Install djangocms-text in a barebone DjangoCMS 4.1 project
Enable the editor 'ckeditor4'
Go to edit a page
See in browser inspector for requests
A request to /static/djangocms_text/vendor/ckeditor4/ckeditor.js fail with a 404 response

Expected behavior
There should not be any 404 response from application assets.
I suppose it should rather point to this file instead : https://github.com/django-cms/djangocms-text/blob/main/djangocms_text/static/djangocms_text/js/ckeditor4.js ?

@sveetch Nice catch. All the code for the ckeditor is contained in the bundle. The marked line is not necessary and should be removed. What to create a PR?

Well i've just tried to build a fix just removing the line pointing to unexisting path and then i got many error in console output.
That is pretty strange because i did not have any errors with the wrong path (djangocms_text/vendor/ckeditor4/ckeditor.js) leading to a 404 and the editor still work fine..

Interesting. That might be an additional issue (which we potentially can sole on one go). It might be that a static path is not passed on to the ckeditor4 js.

@sveetch Is cmsplugins.svg loaded successfully ( the puzzle icon that heads the cms plugin dropdown)?

Another quick thought: What if you replaced the djangocms_text/vendor/ckeditor4/ckeditor.js by ckeditor4/ckeditor.js? (That's the correct path but loads the editor twice - for now, I am just curious if skins etc load correctly)


Iconic/default icon props

Changes:

in layout component, in case the given icon is not resolved, the default svg element is created with correct props
README.md file includes information on how to start/stop the playground

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
0

Relevant Lines:
0

💛  - Coveralls


Refine experimental tag message

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Currently the experimental tag message is:

Command group 'local-context' is experimental and not covered by customer support. Please use with discretion.

which calls out that customer support is limited and might turn people away from trying it.
PM gives some other suggestions, they are as follows:

This command group is experimental. Customer support is not available for preview features. We recommend that you back up your work frequently

or

This command group is experimental and we would love for you to try out the experience and share us your feedback here: aka.ms/cli_feedback

Describe alternatives you've considered
No
Additional context
No

Update experimental message in Knack.

Knack is a general CLI framework. I am not sure if limiting the error message to Azure CLI is a good idea.

Will be covered by https://github.com/Azure/azure-cli/pull/15730 and https://github.com/microsoft/knack/pull/223. The experimental message will be made configurable.


Correction for raw affiliation Centre Jean Mabillon; Histoire et Sources des Mondes antiques; Université Paris sciences et lettres

Correction needed for raw affiliation Centre Jean Mabillon; Histoire et Sources des Mondes antiques; Université Paris sciences et lettres
raw_affiliation_name: Centre Jean Mabillon; Histoire et Sources des Mondes antiques; Université Paris sciences et lettres
new_rors: 011tecf62;01dd1x730;01yx7av22
previous_rors: 011tecf62;04yavcg77;01dd1x730
works_examples: W2946072937
contact: a14252251a2fd9eaab7461b8370ee2cb:9fbb056ee69ce69610f1647f1bed @ ens-lyon.fr

This issue was accepted and ingested by the OpenAlex team on 2024-11-01. The new affiliations should be visible within the next 7 days.


Editing node on k8s page

This pull request is mostly just small edits, fixes and clarifications I made today when going through the instructions in the page node-on-kubernetes.rst.
I also made one minor correction to the file k8s/nginx-3scale/nginx-3scale-dep.yaml: there was a volume mount named https but it was referred-to as https-certs in the volumeMounts section. There was no volume mount named https so there was an error message from Kubernetes. I changed the name of the volume mount to https-certs and it worked.

Codecov Report

Merging #1614 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1614   +/-   ##
=======================================
  Coverage   98.44%   98.44%
=======================================
  Files          58       58
  Lines        2828     2828
=======================================
  Hits         2784     2784
  Misses         44       44


Refactor/telemetry types

What this PR does:
Refactors MCAC and Cassandra telemetry agent configurations out of the TelemetrySpec and into CassandraTelemetrySpec. This is necessary because TelemetrySpec is used for Reaper and Stargate and these components do not support those configurations.
Which issue(s) this PR fixes:
Fixes #840
Checklist

[ ] Changes manually tested
[ ] Automated Tests added/updated
[ ] Documentation added/updated
[ ] CHANGELOG.md updated (not required for documentation PRs)
[ ] CLA Signed:  DataStax CLA

Codecov Report

Merging #841 (0cc0ac2) into main (779eced) will decrease coverage by 0.06%.
The diff coverage is 57.53%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #841      +/-   ##
==========================================
- Coverage   56.80%   56.75%   -0.06%
==========================================
  Files          91       96       +5
  Lines        9154     9504     +350
==========================================
+ Hits         5200     5394     +194
- Misses       3487     3629     +142
- Partials      467      481      +14

Impacted Files
Coverage Δ

apis/k8ssandra/v1alpha1/k8ssandracluster_types.go
36.23% <ø> (ø)

apis/telemetry/v1alpha1/telemetry_methods.go
40.00% <0.00%> (-10.00%)
:arrow_down:

pkg/telemetry/test_objects.go
0.00% <0.00%> (ø)

pkg/telemetry/validation.go
43.47% <ø> (ø)

pkg/utils/deployment.go
0.00% <0.00%> (ø)

controllers/stargate/stargate_controller.go
45.87% <28.57%> (-0.49%)
:arrow_down:

pkg/telemetry/prometheus_resourcer.go
26.86% <33.33%> (+2.27%)
:arrow_up:

controllers/stargate/vector.go
43.36% <43.36%> (ø)

pkg/stargate/vector.go
62.50% <62.50%> (ø)

pkg/telemetry/prom_cass_servicemonitor.go
85.18% <64.70%> (+7.40%)
:arrow_up:

... and 13 more

I need to put this on hold pending (what I suspect will be) a bugfix in controller-tools. See my issue here for more details.

Undoubtedly.


About Network Connect

requests.exceptions.ConnectionError: (ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')), '(Request ID: ea7dea4f-6b82-401c-84a6-3d970e2416ba)')

requests.exceptions.ConnectionError: (ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')), '(Request ID: ea7dea4f-6b82-401c-84a6-3d970e2416ba)')

It may be that your network is not stable when connecting to Huggingface, you can also try to download the pre-trained BERT-based model from hugging face to your local directory and set the specific path

requests.exceptions.ConnectionError: (ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')), '(Request ID: ea7dea4f-6b82-401c-84a6-3d970e2416ba)')

It may be that your network is not stable when connecting to Huggingface, you can also try to download the pre-trained BERT-based model from Huggingface to your local directory and set a specific path to it.

Can you be more specific about the method of downloading the file, I had this problem too, it used to work, now it doesn't work.

requests.exceptions.ConnectionError: (ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')), '(Request ID: ea7dea4f-6b82-401c-84a6-3d970e2416ba)')

It may be that your network is not stable when connecting to Huggingface, you can also try to download the pre-trained BERT-based model from Huggingface to your local directory and set a specific path to it.

Can you be more specific about the method of downloading the file, I had this problem too, it used to work, now it doesn't work.

You can try the following steps:

First, download the pre-trained bert-base-uncased checkpoint from Huggingface's official link: https://huggingface.co/bert-base-uncased/tree/main
Put it in your local directory, remember to download all the files from Huggingface
Update the tokenizer instance here: https://github.com/IDEA-Research/GroundingDINO/blob/60d796825e1266e56f7e4e9e00e88de662b67bd3/groundingdino/util/get_tokenlizer.py#L23

BertTokenizer.from_pretrained(PATH, local_files_only=True)  # PATH is your local file path

def get_pretrained_language_model(text_encoder_type):     if text_encoder_type == "bert-base-uncased":         return BertTokenizer.from_pretrained('bert-base-uncased', local_files_only=True)  # PATH is your local file path         # return BertModel.from_pretrained(text_encoder_type)
is that right?

ef get_pretrained_language_model(text_encoder_type):
    if text_encoder_type == "bert-base-uncased":
        return BertTokenizer.from_pretrained('bert-base-uncased', local_files_only=True)  # PATH is your local file path
        # return BertModel.from_pretrained(text_encoder_type)

is that right?

ef get_pretrained_language_model(text_encoder_type):
    if text_encoder_type == "bert-base-uncased":
        return BertTokenizer.from_pretrained('bert-base-uncased', local_files_only=True)  # PATH is your local file path
        # return BertModel.from_pretrained(text_encoder_type)

is that right?

You can refer to huggingface's documentation for more details

File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/grounded_sam_demo.py", line 181, in
model = load_model(config_file, grounded_checkpoint, device=device)
File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/grounded_sam_demo.py", line 46, in load_model
model = build_model(args)
File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/init.py", line 17, in build_model
model = build_func(args)
File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/groundingdino.py", line 372, in build_groundingdino
model = GroundingDINO(
File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/groundingdino.py", line 109, in init
self.bert.pooler.dense.weight.requires_grad_(False)
AttributeError: 'BertTokenizer' object has no attribute 'pooler'
It returns the question, can you help me to solve?Or the problem is hugging face?

File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/grounded_sam_demo.py", line 181, in model = load_model(config_file, grounded_checkpoint, device=device) File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/grounded_sam_demo.py", line 46, in load_model model = build_model(args) File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/init.py", line 17, in build_model model = build_func(args) File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/groundingdino.py", line 372, in build_groundingdino model = GroundingDINO( File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/groundingdino.py", line 109, in init self.bert.pooler.dense.weight.requires_grad_(False) AttributeError: 'BertTokenizer' object has no attribute 'pooler'
It returns the question, can you help me to solve?Or the problem is hugging face?

There're something wrong with this, you use BertTokenizer instead of BertModel, they're different

/home/evsjtu2/miniconda3/envs/gmx-sam/lib/python3.9/site-packages/torch/functional.py:478: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at  /opt/conda/conda-bld/pytorch_1659484809662/work/aten/src/ATen/native/TensorShape.cpp:2894.)
return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]
final text_encoder_type: bert-base-uncased
Traceback (most recent call last):
File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/grounded_sam_demo.py", line 181, in
model = load_model(config_file, grounded_checkpoint, device=device)
File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/grounded_sam_demo.py", line 46, in load_model
model = build_model(args)
File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/init.py", line 17, in build_model
model = build_func(args)
File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/groundingdino.py", line 372, in build_groundingdino
model = GroundingDINO(
File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/groundingdino.py", line 107, in init
self.tokenizer = get_tokenlizer.get_tokenlizer(text_encoder_type)
File "/home/evsjtu2/disk1/gumingxiang/GSAM/Grounded-Segment-Anything/GroundingDINO/groundingdino/util/get_tokenlizer.py", line 17, in get_tokenlizer
tokenizer = AutoTokenizer.from_pretrained(text_encoder_type)
File "/home/evsjtu2/miniconda3/envs/gmx-sam/lib/python3.9/site-packages/transformers/models/auto/tokenization_auto.py", line 550, in from_pretrained
return tokenizer_class_fast.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
File "/home/evsjtu2/miniconda3/envs/gmx-sam/lib/python3.9/site-packages/transformers/tokenization_utils_base.py", line 1695, in from_pretrained
resolved_vocab_files[file_id] = cached_path(
File "/home/evsjtu2/miniconda3/envs/gmx-sam/lib/python3.9/site-packages/transformers/file_utils.py", line 1776, in cached_path
output_path = get_from_cache(
File "/home/evsjtu2/miniconda3/envs/gmx-sam/lib/python3.9/site-packages/transformers/file_utils.py", line 2000, in get_from_cache
raise ValueError(
ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.
After I made the changes, I still prompted for network connectivity issues. Should there be no other areas in the model that require network connectivity besides the hooking face?

I have already solved this problem. Thank you for your help！

I have already solved this problem. Thank you for your help！

hello, same question we meet, could you share your step-by-step solution for us to solve this problem? thank you very much for your kindest action.

I have already solved this problem. Thank you for your help！

hello, same question we meet, could you share your step-by-step solution for us to solve this problem? thank you very much for your kindest action.

First, download the pre-trained bert-base-uncased checkpoint from Huggingface's official link: https://huggingface.co/bert-base-uncased/tree/main
Put it in your local directory, remember to download all the files from Huggingface
Update the tokenizer instance in /Grounded-Segment-Anything/GroundingDINO/groundingdino/util/get_tokenlizer.py

    # tokenizer = AutoTokenizer.from_pretrained(text_encoder_type)
    tokenizer = AutoTokenizer.from_pretrained('YOUR PATH/bert-base-uncased', cache_dir='bert-base-uncased')

    # return BertModel.from_pretrained(text_encoder_type)
    return BertModel.from_pretrained('YOUR PATH/bert-base-uncased', local_files_only=True)

I have already solved this problem. Thank you for your help！

hello, same question we meet, could you share your step-by-step solution for us to solve this problem? thank you very much for your kindest action.

First, download the pre-trained bert-base-uncased checkpoint from Huggingface's official link: https://huggingface.co/bert-base-uncased/tree/main
Put it in your local directory, remember to download all the files from Huggingface
Update the tokenizer instance in /Grounded-Segment-Anything/GroundingDINO/groundingdino/util/get_tokenlizer.py

    # tokenizer = AutoTokenizer.from_pretrained(text_encoder_type)
    tokenizer = AutoTokenizer.from_pretrained('YOUR PATH/bert-base-uncased', cache_dir='bert-base-uncased')

    # return BertModel.from_pretrained(text_encoder_type)
    return BertModel.from_pretrained('YOUR PATH/bert-base-uncased', local_files_only=True)

miss other error:
final text_encoder_type: bert-base-uncased
safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge

LOL. I encountered this problem today because huggingface is under maintenance : )


tests for rolename/targetpath encoding

We want to test that

clients use correctly URL encoded rolenames and targetpaths in the request URLs. My read on spec is:

rolenames should be URL encoded so that also "/" is encoded: rolename should not include "sub-directories"
targetpath should be URL encoded so that "/" is not encoded: targetpath may include sub-directories

clients do not use unsafe encoding when handling filepaths:

we don't want to define how to encode filepaths because the spec does not
we can test that when we download delegated metadata or artifacts

the metadata download or artifact download succeeds when we expect it to
a file appears in clients TARGET_DIR or METADATA_DIR (and was not e.g. written to ../)

I have a crude initial test, will upload after #115

this is easier with #126

part of this is in #138

Current state:

rolenames have a test now (it has a handful of unusual rolenames, most importantly a path traversal attempt)
there is no test yet for targetpath encoding:

I think it makes sense to add another test in test_quoting_issues that tries to download a bunch of unusual targetpaths: my take is that "?", "#" and such should get encoded but "/" should not
the case I'm not sure about is ".." as target path component:

rfc3986 seems to say client must canonicalize urls (See remove_dot_segments) and http libs usually do
this means "../artifact" can point to a file "outside the artifact store" -- repositories likely won't want to do this but I don't think this is the clients problem?
this also means targetpaths "a/../a" and "a" must be the same artifact -- I don't think this is the clients problem either?
I believe client can just follow rfc and allow ".." in the targetpath, but then we want to test for path traversal attempt when storing "../artifact"
question is, is it ok for a client to not allow ".." as targetpath component?

a very quick test shows clients down't handle targetpaths that need encoding very well -- this likely needs to start with either some spec discussion or clients documenting what they intend to do WRT targetpath encoding.


Reach out to GDI about coding class

I've sent two emails with no response so far. If we don't hear anything by Wed, Sep 12, we'll move on.

I'd move on now. There wouldn't be enough time to get people in the class.
probably too late already.
Chris Mathews
On Thu, Sep 6, 2018 at 10:08 PM Jason Hibbets<EMAIL_ADDRESS>wrote:

I've sent two emails with no response so far. If we don't hear anything by
Wed, Sep 12, we'll move on.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ncopenpass/NCOpenPass/issues/1170#issuecomment-419297601,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOGtdtHoHbqQ_DFBKok2GFEp10URtKgks5uYdUUgaJpZM4WVrcF
.

Did we get news about GDI.
On Mon, Sep 10, 2018 at 4:39 PM Janel<EMAIL_ADDRESS>wrote:

Reopened #1170 https://github.com/ncopenpass/NCOpenPass/issues/1170.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ncopenpass/NCOpenPass/issues/1170#event-1837006487,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOGtW-JPb5quQftCnnBspXHpWQqlUHvks5uZs4MgaJpZM4WVrcF
.

--
Chris Mathews

I was trying to move another card to done and picked this one
accidentally.  I'll move it back to closed again.
On Mon, Sep 10, 2018 at 4:47 PM Chris Mathews<EMAIL_ADDRESS>wrote:

Did we get news about GDI.
On Mon, Sep 10, 2018 at 4:39 PM Janel<EMAIL_ADDRESS>wrote:

Reopened #1170 https://github.com/ncopenpass/NCOpenPass/issues/1170.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ncopenpass/NCOpenPass/issues/1170#event-1837006487,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AAOGtW-JPb5quQftCnnBspXHpWQqlUHvks5uZs4MgaJpZM4WVrcF
.

--
Chris Mathews
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/ncopenpass/NCOpenPass/issues/1170#issuecomment-420055423,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AK4rplfxwmx9X-e3GWn2FwUmWQB9Yw95ks5uZs_4gaJpZM4WVrcF
.


Bluebirdjs.com Index Page 404

The documentation appears to have no index page at the moment: http://bluebirdjs.com.

I believe this is intentional until 3.0 is released.


Update: limited infinity

@Ladu-Lumori PR name is not descriptive enough.

best i can do so far
feel free to improve on it.


Receiving data from a queue based on which task sent the data

Hello,
I have multiple sender and receiver tasks using the same queue data type. I want the sender functions to only receive data from a given sender task (ie. sender1 -> receiver1, sender2 -> receiver2). Is there a way to implement this behavior before receiving and removing the data from the queue? Or, would I have to use a separate queue for the sender-receiver pairs?
Thank you!

Hi,
in your case it may better to try with TaskNotify chain instead of queue chain.

Hi gokcedilek,
Is there a particular Amazon FreeRTOS library/port that you are trying to use?


Real device iOS13.0/13.1 debugging stuck at "Installing and launching..."

Direct run is no problem.
And debug on a real iOS12 device or a iOS13 simulator is normal too.
But debug on a real iPhone8 iOS13.1 or iPhone XR iOS13.0 will be stuck:
Logs:
Launching lib/main.dart on iPhone8 in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: xxxxxxxx
Running Xcode build...
Xcode build done.                                           22.1s
Installing and launching...

Then it's stuck. No more logs.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, v1.9.1+hotfix.3-pre.1, on Mac OS X 10.14.5 18F203,
    locale zh-Hans-CN)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
[✓] Android Studio (version 3.4)
[✓] Connected device (1 available)

• No issues found!

Hello @fengyuxx !
Thank you for posting an issue.
Can you please also attach the flutter doctor -v command output?
Thank you.

flutter doctor -v
[✓] Flutter (Channel unknown, v1.9.1+hotfix.3-pre.1, on Mac OS X 10.14.5 18F203, locale zh-Hans-CN)
• Flutter version 1.9.1+hotfix.3-pre.1 at /Users/elvin/development/language/flutter
• Framework revision 1ced75cc2b (2 days ago), 2019-09-24 10:01:16 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
• Android SDK at /Users/elvin/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.1
• Java binary at: /Applications/Develop/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.0, Build version 11A419c
• CocoaPods version 1.7.5
[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Develop/Android Studio.app/Contents
• Flutter plugin version 37.1.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[✓] Connected device (1 available)
• iPhone xr • 00008020-00116DA826C3002E • ios • iOS 13.0
• No issues found!

And the same code, the same real device, I run my app in xcode It works fine.

I have the same problem ~~~

Same here. iphone 11, iOS13.1

Same here

Same here and Xcode Output
[VERBOSE-1:callback_cache.cc(132)] Could not parse callback cache, aborting restore
2019-09-27 17:33:34.398473+0800 Runner[4601:1214709] [LayoutConstraints] Unable to simultaneously satisfy constraints.

flutter v1.10.6, have the same problem

Any update ?

You try open another terminal a d rum flutter attach?

@JRAVILES Yes, from second terminal window it attaches, but not directly from Android Studio + flutter plugin terminal

you can try
1.run flutter run -debug first.
2.then stop it.
3.then run you debug with Android Studio as normal.

@jerryzhoujw nope, that does not work.
Running first debug and then stopping it and starting new session in Android studio, its basically pressing start/stop.
Even if I run one session from terminal and second one from Android studio, it just close first and start new one with same error.
I was able to start debug session from terminal and then do Flutter Attach from Android studio, which connected to the phone, but on reload it just crashes and cut network connection to the phone

have you switch to channel beta first ?

@jerryzhoujw I was on beta, then I tried dev and now I am on master

@rdev-software, I'm not sure then, I debug with iPhone8 13.1 on channel beta, works well.

I can confirm sam issue as @rdev-software tested both dev and beta branches on an iPhone X on with 13.1.1 same issue stuck 'installing and launching' any update on this?

Just to add I have iPhone11 + 13.1.1, but it did not work on 13 Beta, 13.0 or 13.1

@fengyuxx thank you for opening this issue! This is actually the same as https://github.com/flutter/flutter/issues/37699 however, so I will be closing this issue as a duplicate. Please follow that issue for updates (the tl;dr is that it has been fixed on master, dev, and beta, and should soon be hotfixed into the stable channel).

I just wanted to mention that I'm experiencing the same issue.
Here is Flutter doctor output:
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.6 18G1012, locale en-US)
    • Flutter version 1.12.13+hotfix.5 at /Users/behnam/dev/tools/flutter
    • Framework revision 27321ebbad (3 weeks ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at /Users/behnam/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2.1, Build version 11B500
    • CocoaPods version 1.7.4

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 37.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.41.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.7.1

[✓] Connected device (1 available)
    • iPad • fa9b2e9910fa34982ba4b94a88349ef6f74f3e0a • ios • iOS 13.3

as a temp workaround, try force restarting your iphone, it worked for me.

Same problem here - Flutter freezes at Installing and launching... on an iOS App !
Any solution yet ?

I run in release and then it success and run debug again it work now.
flutter run --release

I still have this issue when I use VSCode for debugging.
Here is my flutter doctor -v output:
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.6 18G1012, locale en-US)
    • Flutter version 1.12.13+hotfix.5 at /Users/behnam/dev/tools/flutter
    • Framework revision 27321ebbad (4 weeks ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at /Users/behnam/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2.1, Build version 11B500
    • CocoaPods version 1.7.4

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 37.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.41.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.7.1

[✓] Connected device (1 available)
    • iPad • fa9b2e9910fa34982ba4b94a88349ef6f74f3e0a • ios • iOS 13.3

I've tried both forced restarting my device and also running a release build but none of them fixed the issue when afterward I tried debugging through VSCode.

I occasionally have the same issue, with no errors. This procedure works for me:

Uninstall the app from your physical device
Run Packages Upgrade
Run this in terminal: flutter packages pub run build_runner build --delete-conflicting-outputs
Now try running the app on your physical device

I think it has to do with changes to the pubspec.yaml, running packages upgrade (instead of packages get) and the --delete-conflicting-outputs might be clearing something out somewhere. shrug emoji

devices should link to the same network

Disabling Personal Hotspot fixed it for me.
In my case I removed the SIM card, which automatically disables the personal hotspot.
To confirm, go into System Preferences -> Network and the iPhone USB entry should now longer show up.

same here! I can see the app had been installed on my device AS stucks at "Installing and launching"

I had the same problem then I fixed it by disabling the firewall on my macOS Catalina.

I am still having this issue. None of the above solutions fixed it for me.
Help anyone?

as the issues (https://github.com/flutter/flutter/issues/52376)  said I turn off the firewall off.
device : Ipad (13.4.1)
macos: Catalina.
note: just in case the pods I did installed and updated using brew, and the code was ok I could run it using xcode.

same here! I can see the app had been installed on my device AS stucks at "Installing and launching"

for me it works on iPhone5/ iOS 9 and stuck on iPhone11/ iOS 13.3.1

Still having this issue.
Release mode works fine, but debug mode is stuck
iPhone se 2/ iOS 13.4.1

Facing the same issue

first
1.run flutter run --debug first.
2.then stop it.
3.then run you debug with Android Studio or vscode as normal
finally
you can edit launch.json
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Flutter",
      "request": "launch",
      "type": "dart",
      "args": ["--enable-software-rendering"] // add this line
    }
  ]
}

ths @jerryzhoujw

try to disable your laptop antivirus and run

try to disable your laptop antivirus and run


The property name "containerPort" conflicts with the declaring interface

This warning is being generated during yarn build:
Importing k8s v1.24.0...
Importing resources, this may take a few moments...
k8s
👾 build » compile | jsii --silence-warnings=reserved-word
src/imports/k8s.ts:24675:12 - warning JSII5019: The property name "containerPort" conflicts with the declaring interface "ContainerPort". This will result in renaming the interface to "_ContainerPort" in C#. Consider renaming "containerPort".

24675   readonly containerPort: number;
                 ~~~~~~~~~~~~~

  src/imports/k8s.ts:24669:18
    24669 export interface ContainerPort {
                           ~~~~~~~~~~~~~
    The declaring interface is introduced here

Looks like this is due to k8s import here,
/**
 * ContainerPort represents a network port in a single container.
 *
 * @schema io.k8s.api.core.v1.ContainerPort
 */
export interface ContainerPort {
  /**
   * Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
   *
   * @schema io.k8s.api.core.v1.ContainerPort#containerPort
   */
  readonly containerPort: number;

Also seeing warning with JSIIPacMak for dotnet,
👾 package-all » package:dotnet | jsii-pacmak -v --target dotnet
[jsii-pacmak] [INFO] Found 1 modules to package
[jsii-pacmak] [INFO] Packaging NPM bundles
[jsii-pacmak] [INFO] Loading jsii assemblies and translations
[jsii-pacmak] [INFO] Packaging 'dotnet' for cdk8s-plus-24
[xmldom warning]	attribute "timestamp" missed value!! "timestamp" instead2!!
@#[line:1,col:1]
[xmldom warning]	attribute "in" missed value!! "in" instead2!!
@#[line:1,col:1]
[xmldom warning]	attribute "RFC3339" missed value!! "RFC3339" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "timestamp" missed value!! "timestamp" instead2!!
@#[line:1,col:1]
[xmldom warning]	attribute "in" missed value!! "in" instead2!!
@#[line:1,col:1]
[xmldom warning]	attribute "RFC3339" missed value!! "RFC3339" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "timestamp" missed value!! "timestamp" instead2!!
@#[line:1,col:1]
[xmldom warning]	attribute "in" missed value!! "in" instead2!!
@#[line:1,col:1]
[xmldom warning]	attribute "RFC3339" missed value!! "RFC3339" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "portal" missed value!! "portal" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "name" missed value!! "name" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "portal" missed value!! "portal" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "name" missed value!! "name" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "portal" missed value!! "portal" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "name" missed value!! "name" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "portal" missed value!! "portal" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "name" missed value!! "name" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "portal" missed value!! "portal" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "name" missed value!! "name" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "portal" missed value!! "portal" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "name" missed value!! "name" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "name" missed value!! "name" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "name" missed value!! "name" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "name" missed value!! "name" instead!!
@#[line:1,col:1]
[xmldom warning]	attribute "name" missed value!! "name" instead!!
@#[line:1,col:1]
[jsii-pacmak] [INFO] dotnet finished
[jsii-pacmak] [INFO] Packaged. dotnet (11.1s) | npm pack (0.7s) | load jsii (0.0s) | cleanup (0.0s)

Not much we can do about now since renaming the property will be a breaking change, and I doubt its worth doing just for C#'s sake... :\


RFC: Return fitted model as fitresult

I tried to use a GLM/StatsBase function to extract data from the fitted model. However, this is impossible because this package does not return the original GLM model (fitted_lm is dropped):
https://github.com/JuliaAI/MLJGLMInterface.jl/blob/924d0e95b87723167fa11e762cb4539d77ca58a9/src/MLJGLMInterface.jl#L367-L383
This is fine for most use-cases, but has one problem: Julia relies heavily on the fact that people can "attach" arbitrary functions to certain objects. In this case, for example, Julia returns an
StatsModels.TableRegressionModel{GLM.LinearModel{GLM.LmResp{Vector{Float64}}, GLM.DensePredChol{Float64, LinearAlgebra.CholeskyPivoted{Float64, Matrix{Float64}, Vector{Int64}}}}, Matrix{Float64}}

object when calling GLM.lm(@formula(y ~ x), data). Subsequently, people can call functions like
GLM.confint(fitted_model, data)

To get the confidence interval. Currently, GLM.confint cannot be called because the fitted model is dropped by MLJ.
Can we switch MLJGLMInterface over to just report the fitted model as fitresult (specifically, fitresult = fitted_lm)? I suggest to fully drop the FitResult struct that is defined in this package. Clients can still obtain information such as the coefficients via the appropriate GLM functions, such as GLM.coef. We can add this and a few other functions to the docstring.
Because this would be a breaking release, I also suggest to move to version 1.0.0, so that future releases can specify whether it's a major, minor, or patch release (https://semver.org).
@ablaom Any thoughts?

Mmm. I sense your frustration and the simplicity of your suggestion is naturally appealing. But I, for one, have concerns:

If I remember correctly the reason we dropped the GLM object in the first place was because it is not free of training data. This is generally considered bad practice - for example it is bad when serializing models on big datasets. Do I remember correctly?

The casual user who just wants confidence intervals, for example, needs to be familiar with GLM API, to get them, in the proposed revision. This seems a pity to someone like me, who doesn't use these models often.

A lot of development effort has gone into striking the right balance in what is  returned by fitted_params. I don't remember of all of the discussion, but I should like to see a review of that.

What if we return the raw StatsModels.TableRegressionModel as part of the report? (It may be that the report is also retained in prep for serialization, but there are other good arguments for not doing so.)
@OkonSamuel may want to comment.

@rikhuijzer all those should have been moved to the model's report. Keeping the glm_model object caused some issues as the model wraps the dataset itself.  The model has hyper_parameters that you could use to specify what you want to extract from the glm_model

I sense your frustration and the simplicity of your suggestion is naturally appealing. But I, for one, have concerns:

Yes I was editing a LaTeX document, while running PDF generation, while thinking about the analysis, while having Pluto open, while reading supervisor comments, while going through StatsBase and GLM and I should probably not have filed an issue immediately and instead let it sit for a day! My apologies.

What if we return the raw StatsModels.TableRegressionModel as part of the report?

Yes I do think that that could work. That would make already some extra functions available I think.

If it's an absolute must to have the whole glm_object returned, we could add it to the report rather than fitresult and add a key to that controls whether or not this is returned and also add a warning about memory concerns.

Well I don't know if it's an absolute must. What I needed, for example, was a different p-value than the default < 0.05 cutoff. To get this, I had to search through the StatsModels, GLM, etc etc codebases. Luckily, Survival.jl had:
pvalues = 2 .* Distributions.cdf(Distributions.Normal(), -abs.(z_scores))

and the GLM returns the z-score which you can extract by parsing the returned text 😅.
So I understand that most of our problems here were caused by GLM having a weird API (storing data, not having much keywords, having very elaborate types).
Maybe we should just let it be? My problem is solved for now via manually calculating p-values and parsing the text. Again. Apologies for the noise.


feat: @[norm_cast] attribute

I'm not entirely sure I got this right. In particular, I'm not sure if normCastExt should be a builtin_initialize or initialize block. They both seem to work, except that in the initialize version I can't access the environment to construct the initial SimpLemmas object, which is initialized to a nonempty set. As written (but with initialize instead of builtin_initialize), it will crash at the run_cmd line because you can't evaluate an initialize value in the same file as the definition.

bors r+


Fix storing changes in WikiPage for Python3

WikiPage.store() method should call str.encode() after replacing newline characters. Otherwise, under Python 3 it will fail with
TypeError: 'str' does not support the buffer interface

@eseifert thank you for your contribution!
I noticed that these lines don't have any test coverage. Would you be able to write a test for this? It would help prove that this works on Python 2 and Python 3.
Also, feel free to add yourself to the AUTHORS file.
Let me know if you have any questions. Thanks!

I can't prove that this doesn't break Python 2 without some tests. The project is getting very light maintenance from me so I'm afraid I'll have to close this unless it can be verified for Python 2 and 3.


index.html is responded if index.html exists and the URL ended with /

For example<EMAIL_ADDRESS>responds index.html in root of picnic, but I'd like to view a listing of all the files in picnic, as "Examples" section in https://unpkg.com/. Is this on purpose?

Closing as duplicate of #130

Thanks!