[Bug]: Type Error when max_ratio not set for a category under noHL

Describe the Bug
When max_ratio is not defined for my other category, I get a type error when running qbit_manage:
Traceback (most recent call last):
  File "/home/aaearon/qbit_manage/qbit_manage.py", line 544, in <module>
    start_loop()
  File "/home/aaearon/qbit_manage/qbit_manage.py", line 315, in start_loop
    start()
  File "/home/aaearon/qbit_manage/qbit_manage.py", line 411, in start
    num_tagged, num_untagged, num_deleted, num_deleted_contents = cfg.qbt.tag_nohardlinks()
  File "/home20/aaearon/qbit_manage/modules/qbittorrent.py", line 562, in tag_nohardlinks
    if tracker["max_ratio"] and tracker["max_ratio"] >= nohardlinks[category]["max_ratio"]:
TypeError: '>=' not supported between instances of 'float' and 'NoneType'

Config
# This is an example configuration file that documents all the options.
# It will need to be modified for your specific use case.
# Please refer to the link below for more details on how to set up the configuration file
# https://github.com/StuffAnThings/qbit_manage/wiki/Config-Setup

# commands:
#   # The commands defined below will IGNORE any commands used in command line and docker env variables.
#   dry_run: false
#   cross_seed: false
#   recheck: true
#   cat_update: false
#   tag_update: true
#   rem_unregistered: true
#   tag_tracker_error: true
#   rem_orphaned: true
#   tag_nohardlinks: true
#   skip_cleanup: false

qbt:
  # qBittorrent parameters
  host: HOSTNAME
  user: DELETE
  pass: DELETE

settings:
  force_auto_tmm: false  # Will force qBittorrent to enable Automatic Torrent Management for each torrent.
  tracker_error_tag: issue  # Will set the tag of any torrents that do not have a working tracker.
  ignoreTags_OnUpdate: # When running tag-update function, it will update torrent tags for a given torrent even if the torrent has one or more of the tags defined here.
  - noHL
  - issue
  - cross-seed
  nohardlinks_tag: noHL
directory:
  # Do not remove these
  # Cross-seed var: </your/path/here/>  # Output directory of cross-seed
  # root_dir var: </your/path/here/>  # Root downloads directory used to check for orphaned files, noHL, and RecycleBin.
  # <OPTIONAL> remote_dir var: </your/path/here/>  # Path of docker host mapping of root_dir.
  # Must be set if you're running qbit_manage locally and qBittorrent/cross_seed is in a docker
  # <OPTIONAL> recycle_bin var: </your/path/here/>   # Path of the RecycleBin folder. Default location is set to remote_dir/.RecycleBin
  # <OPTIONAL> torrents_dir var: </your/path/here/>  # Path of the your qbittorrent torrents directory. Required for `save_torrents` attribute in recyclebin
  cross_seed: /home/aaearon/downloads/qbittorrent/
  root_dir: /home/aaearon/downloads/qbittorrent/
  remote_dir: /home/aaearon/downloads/qbittorrent/
  orphaned_dir: /home/aaearon/downloads/qbittorrent/orphaned_data

  torrents_dir:
cat:
  # Category & Path Parameters
  # <Category Name> : <save_path>  # Path of your save directory.
  radarr: /home/aaearon/downloads/qbittorrent/movies
  radarr-complete: /home/aaearon/downloads/qbittorrent/movies
  tv-sonarr: /home/aaearon/downloads/qbittorrent/tv
  tv-sonarr-complete: /home/aaearon/downloads/qbittorrent/tv
  other: /home/aaearon/downloads/qbittorrent
  other.cross-seed: /home/aaearon/downloads/qbittorrent/other
  radarr.cross-seed: /home/aaearon/downloads/qbittorrent/movies
  tv-sonarr.cross-seed: /home/aaearon/downloads/qbittorrent/tv

cat_change:
  # This moves all the torrents from one category to another category. This executes on --cat-update
  # WARNING: if the paths are different and Default Torrent Management Mode is set to automatic the files could be moved !!!
  # <Old Category Name> : <New Category>
  radarr.cross-seed: other
  radarr-complete: other
  tv-sonarr-complete: other
  tv-sonarr.cross-seed: other
  other.cross-seed: other

tracker:
  # Tag Parameters
  # <Tracker URL Keyword>:    # <MANDATORY> This is the keyword in the tracker url
  # <MANDATORY> Set tag name. Can be a list of tags or a single tag
  #   tag: <Tag Name>
  # <OPTIONAL> Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading. -2 means the global limit should be used, -1 means no limit.
  #   max_ratio: 5.0
  # <OPTIONAL> Will set the torrent Maximum seeding time (min) until torrent is stopped from seeding. -2 means the global limit should be used, -1 means no limit.
  #   max_seeding_time: 129600
  # <OPTIONAL> Will ensure that noHL torrents from this tracker are not deleted by cleanup variable if torrent has not yet met the minimum seeding time (min).
  #   min_seeding_time: 2000
  # <OPTIONAL> Will limit the upload speed KiB/s (KiloBytes/second) (-1 means no limit)
  #   limit_upload_speed: 150
  # <OPTIONAL> Set this to the notifiarr react name. This is used to add indexer reactions to the notifications sent by Notifiarr
  #   notifiarr: <notifiarr indexer>
  # iptorrents
  empirehost:
    tag: iptorrents
    max_ratio: 1.05
    # 14 days
    max_seeding_time: 20170
    # min_seeding_time: 10
  # BroadcastTheNet
  landof.tv:
    tag: broadcasthenet
    # max_ratio: 1.05
    # 5 days
    # max_seeding_time: 7560
  # TorrentDay
  jumbohostpro:
    tag: torrentday
    max_ratio: 1.05
    # 3 days
    max_seeding_time: 4330
  # TorrentSeeds
  torrentseeds:
    tag: torrentseeds
    max_ratio: 1.05
    # 5 days
    max_seeding_time: 7300
  # Hawke-Uno
  hawke.uno:
    tag: huno
    # 5 days
    max_seeding_time: 7300
  # TorrentLeech
  torrentleech:
    tag: torrentleech
    max_ratio: 1.05
    # 8 days
    max_seeding_time: 11620
    min_seeding_time: 0
  # AlphaRatio
  alpharatio:
    tag: alpharatio
    max_ratio: 1.05
    # 7 days
    max_seeding_time: 10180
  # HDBits
  hdbits:
    tag: hdbits
  sportscult:
    tag: sportscult
  other:
    tag: other

nohardlinks:
  # Tag Movies/Series that are not hard linked
  # Mandatory to fill out directory parameter above to use this function (root_dir/remote_dir)
  # This variable should be set to your category name of your completed movies/completed series in qbit. Acceptable variable can be any category you would like to tag if there are no hardlinks found
  radarr:
    # <OPTIONAL> exclude_tags var: Will exclude the following tags when searching through the category.
    exclude_tags:
    # - hdbits
    # <OPTIONAL> cleanup var: WARNING!! Setting this as true Will remove and delete contents of any torrents that have a noHL tag and meets share limits
    cleanup: true
    # <OPTIONAL> max_ratio var: Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading
    # max_ratio: 4.0
    # <OPTIONAL> max seeding time var: Will set the torrent Maximum seeding time (min) until torrent is stopped from seeding
    # max_seeding_time: 86400
    # <OPTIONAL> Limit Upload Speed var: Will limit the upload speed KiB/s (KiloBytes/second) (`-1` : No Limit)
    # limit_upload_speed:
    # <OPTIONAL> min seeding time var: Will prevent torrent deletion by cleanup variable if torrent has not yet minimum seeding time (min).
    # Delete this key from a category's config to use the tracker's configured min_seeding_time. Will default to 0 if not specified for the category or tracker.
    # min_seeding_time: 43200
    # <OPTIONAL> resume_torrent_after_untagging_noHL var: If a torrent was previously tagged as NoHL and now has hardlinks, this variable will resume your torrent after changing share limits
    resume_torrent_after_untagging_noHL: true
  # Can have additional categories set with separate ratio/seeding times defined.
  tv-sonarr:
    # <OPTIONAL> exclude_tags var: Will exclude the following tags when searching through the category.
    exclude_tags:
    # - hdbits
    # <OPTIONAL> cleanup var: WARNING!! Setting this as true Will remove and delete contents of any torrents that have a noHL tag and meets share limits
    cleanup: true
    # <OPTIONAL> max_ratio var: Will set the torrent Maximum share ratio until torrent is stopped from seeding/uploading
    # max_ratio: 4.0
    # <OPTIONAL> max seeding time var: Will set the torrent Maximum seeding time (min) until torrent is stopped from seeding
    # max_seeding_time: 86400
    # <OPTIONAL> Limit Upload Speed var: Will limit the upload speed KiB/s (KiloBytes/second) (`-1` : No Limit)
    # limit_upload_speed:
    # <OPTIONAL> min seeding time var: Will prevent torrent deletion by cleanup variable if torrent has not yet minimum seeding time (min).
    # min_seeding_time: # Not specified for this category; tracker's value will be used. Will default to 0 if not specified for the category or tracker.
    # <OPTIONAL> resume_torrent_after_untagging_noHL var: If a torrent was previously tagged as NoHL and now has hardlinks, this variable will resume your torrent after changing share limits
    resume_torrent_after_untagging_noHL: true
  other:
    # max_ratio: 1.05
    cleanup: true
    exclude_tags:
      - hdbits
      - broadcasthenet
      - sportscult
    resume_torrent_after_untagging_noHL: true
    # min_seeding_time: 0

recyclebin:
  # Recycle Bin method of deletion will move files into the recycle bin (Located in /root_dir/.RecycleBin) instead of directly deleting them in qbit
  # By default the Recycle Bin will be emptied on every run of the qbit_manage script if empty_after_x_days is defined.
  enabled: false
  # <OPTIONAL> empty_after_x_days var:
  # Will automatically remove all files and folders in recycle bin after x days. (Checks every script run)
  # If this variable is not defined it, the RecycleBin will never be emptied.
  # WARNING: Setting this variable to 0 will delete all files immediately upon script run!
  empty_after_x_days: 0
  # <OPTIONAL> save_torrents var:
  # If this option is set to true you MUST fill out the torrents_dir in the directory attribute.
  # This will save a copy of your .torrent and .fastresume file in the recycle bin before deleting it from qbittorrent
  save_torrents: true
  # <OPTIONAL> split_by_category var:
  # This will split the recycle bin folder by the save path defined in the `cat` attribute
  # and add the base folder name of the recycle bin that was defined in the `recycle_bin` sub-attribute under directory.
  split_by_category: false

orphaned:
  # Orphaned files are those in the root_dir download directory that are not referenced by any active torrents.
  # Will automatically remove all files and folders in orphaned data after x days. (Checks every script run)
  # If this variable is not defined it, the orphaned data will never be emptied.
  # WARNING: Setting this variable to 0 will delete all files immediately upon script run!
  empty_after_x_days: 0
  # File patterns that will not be considered orphaned files. Handy for generated files that aren't part of the torrent but belong with the torrent's files
  exclude_patterns:
  - '**/.DS_Store'
  - '**/Thumbs.db'
  - '**/@eaDir'
  - /data/torrents/temp/**
  - '**/*.!qB'
  - '**/_unpackerred'

webhooks:
  error:
  run_start:
  run_end:
  function:
    cross_seed:
    recheck:
    cat_update:
    tag_update:
    rem_unregistered:
    tag_tracker_error:
    rem_orphaned:
    tag_nohardlinks:
    cleanup_dirs:

Logs
https://gist.github.com/aaearon/fb927e319b1d1210a912ae36f4062ef8
Screenshots
No response
Installation
Local
Version Number
3.5.0
What branch are you on?
master

go ahead and try the qbittorrent file from my PR - think it should fix it
https://raw.githubusercontent.com/bakerboy448/qbit_manage/fix-maxratio/modules/qbittorrent.py
just overwrite the existing one in modules; and then to return to master you can do a git reset since you're local

Unfortunately still the same error:
aaearon@altair:~/qbit_manage/modules$ wget https://raw.githubusercontent.com/bakerboy448/qbit_manage/fix-maxratio/modules/qbittorrent.py -O qbittorrent.py
--2023-04-05 08:20:08--  https://raw.githubusercontent.com/bakerboy448/qbit_manage/fix-maxratio/modules/qbittorrent.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 74111 (72K) [text/plain]
Saving to: ‘qbittorrent.py’

qbittorrent.py                                                     100%[===============================================================================================================================================================>]  72.37K  --.-KB/s    in 0.001s

2023-04-05 08:20:08 (54.4 MB/s) - ‘qbittorrent.py’ saved [74111/74111]

aaearon@altair:~/qbit_manage/modules$ python3 ~/qbit_manage/qbit_manage.py --run --recheck --cat-update --tag-update --rem-unregistered --tag-tracker-error --rem-orphaned --tag-nohardlinks --debug
|====================================================================================================|
|                           _     _ _                                                                |
|                          | |   (_) |                                                               |
|                      __ _| |__  _| |_   _ __ ___   __ _ _ __   __ _  __ _  ___                     |
|                     / _` | '_ \| | __| | '_ ` _ \ / _` | '_ \ / _` |/ _` |/ _ \                    |
|                    | (_| | |_) | | |_  | | | | | | (_| | | | | (_| | (_| |  __/                    |
|                     \__, |_.__/|_|\__| |_| |_| |_|\__,_|_| |_|\__,_|\__, |\___|                    |
|                        | |         ______                            __/ |                         |
|                        |_|        |______|                          |___/                          |
|     Version: 3.5.0                                                                                |
|====================================================================================================|
|     --run (QBT_RUN): True                                                                          |
|     --schedule (QBT_SCHEDULE): 1440                                                                |
|     --startup-delay (QBT_STARTUP_DELAY): 0                                                         |
|     --config-file (QBT_CONFIG): ['config.yml']                                                     |
|     --log-file (QBT_LOGFILE): qbit_manage.log                                                      |
|     --cross-seed (QBT_CROSS_SEED): False                                                           |
|     --recheck (QBT_RECHECK): True                                                                  |
|     --cat-update (QBT_CAT_UPDATE): True                                                            |
|     --tag-update (QBT_TAG_UPDATE): True                                                            |
|     --rem-unregistered (QBT_REM_UNREGISTERED): True                                                |
|     --tag-tracker-error (QBT_TAG_TRACKER_ERROR): True                                              |
|     --rem-orphaned (QBT_REM_ORPHANED): True                                                        |
|     --tag-nohardlinks (QBT_TAG_NOHARDLINKS): True                                                  |
|     --skip-cleanup (QBT_SKIP_CLEANUP): False                                                       |
|     --dry-run (QBT_DRY_RUN): False                                                                 |
|     --log-level (QBT_LOG_LEVEL): DEBUG                                                             |
|     --divider (QBT_DIVIDER): =                                                                     |
|     --width (QBT_WIDTH): 100                                                                       |
|     --debug (QBT_DEBUG): True                                                                      |
|     --trace (QBT_TRACE): False                                                                     |
|                                                                                |
|     Run Mode: Script will exit after completion.                                                   |
|====================================================================================================|
|                                            Starting Run                                            |
|====================================================================================================|
| Locating config...                                                                                |
| Using /home/aaearon/qbit_manage/config/config.yml as config                                        |
| Connecting to Qbittorrent...                                                                       |
| Host: altair-direct.usbx.me:14341, Username: (redacted), Password: (redacted)                      |
| qBittorrent: v4.3.9                                                                                |
| qBittorrent Web API: 2.8.2                                                                         |
| qbit_manage supported versions: v4.3.0 - v4.5.1                                                    |
| Qbt Connection Successful                                                                          |
|======================================= Getting Torrent List =======================================|
|======================================== Checking Settings =========================================|
|====================================================================================================|
|                                   Gathering Torrent Information                                    |
|====================================================================================================|
|======================================= Updating Categories ========================================|
|    Torrent Name: Elvis.2022.2160p.UHD.BluRay.TrueHD 7.1.DoVi.x265-SPHD                             |
|    Old Category: radarr-complete                                                                   |
|    New Category: other                                                                             |
|         Tracker: https://tracker.hdbits.org                                                        |
|    Torrent Name: Catfish.The.TV.Show.S08E78.1080p.HDTV.x264-CRiMSON                                |
|    Old Category: tv-sonarr-complete                                                                |
|    New Category: other                                                                             |
|         Tracker: http://td.jumbohostpro.eu                                                         |
|    Torrent Name: Ted.Lasso.S03E04.Big.Week.1080p.ATVP.WEB-DL.DDP5.1.H.264-NTb                      |
|    Old Category: tv-sonarr-complete                                                                |
|    New Category: other                                                                             |
|         Tracker: https://tracker.hdbits.org                                                        |
|    Torrent Name: Ted.Lasso.S03E04.Big.Week.2160p.ATVP.WEB-DL.DDP5.1.HDR.H.265-NTb                  |
|    Old Category: tv-sonarr-complete                                                                |
|    New Category: other                                                                             |
|         Tracker: https://tracker.hdbits.org                                                        |
| Updated 4 new categories.                                                                          |
|========================================== Updating Tags ===========================================|
|    Torrent Name: Elvis.2022.2160p.UHD.BluRay.TrueHD 7.1.DoVi.x265-SPHD                             |
|         New Tag: hdbits                                                                            |
|         Tracker: https://tracker.hdbits.org                                                        |
|    Torrent Name: Ted.Lasso.S03E04.Big.Week.1080p.ATVP.WEB-DL.DDP5.1.H.264-NTb                      |
|         New Tag: hdbits                                                                            |
|         Tracker: https://tracker.hdbits.org                                                        |
|    Torrent Name: Ted.Lasso.S03E04.Big.Week.2160p.ATVP.WEB-DL.DDP5.1.HDR.H.265-NTb                  |
|         New Tag: hdbits                                                                            |
|         Tracker: https://tracker.hdbits.org                                                        |
|    Torrent Name: Catfish.The.TV.Show.S08E78.1080p.HDTV.x264-CRiMSON                                |
|         New Tag: torrentday                                                                        |
|         Tracker: http://td.jumbohostpro.eu                                                         |
|     Share Limit: Max Ratio = 1.05, Max Seed Time = 4330 min                                        |
| Updated 4 new tags.                                                                                |
|=============================== Tagging Torrents with Tracker Errors ===============================|
| No unregistered torrents found.                                                                    |
|==================================== Rechecking Paused Torrents ====================================|
| DEBUG: Torrent to see if torrent meets AutoTorrentManagement Criteria                              |
|   - Torrent Name: Unstable (2023) S01 (1080p NF WEB-DL H265 SDR DDP Atmos 5.1 English - HONE)      |
|     -- Ratio vs Max Ratio: 1.05 < 1.05                                                             |
|     -- Seeding Time vs Max Seed Time: 4 days, 12:11:05 < 5 days, 1:40:00                           |
|================================ Tagging Torrents with No Hardlinks ================================|
| No torrents found in the category (radarr) defined under nohardlinks attribute in the config. Please check if this matches with any category in qbittorrent and has 1 or more torrents. |
| No torrents found in the category (tv-sonarr) defined under nohardlinks attribute in the config. Please check if this matches with any category in qbittorrent and has 1 or more torrents. |
| Uncaught Exception                                                                                |
Traceback (most recent call last):
  File "/home/aaearon/qbit_manage/qbit_manage.py", line 544, in <module>
    start_loop()
  File "/home/aaearon/qbit_manage/qbit_manage.py", line 315, in start_loop
    start()
  File "/home/aaearon/qbit_manage/qbit_manage.py", line 411, in start
    num_tagged, num_untagged, num_deleted, num_deleted_contents = cfg.qbt.tag_nohardlinks()
  File "/home20/aaearon/qbit_manage/modules/qbittorrent.py", line 562, in tag_nohardlinks
    if tracker["max_ratio"] is not None and tracker["max_ratio"] >= nohardlinks[category]["max_ratio"]:
TypeError: '>=' not supported between instances of 'float' and 'NoneType'
aaearon@altair:~/qbit_manage/modules$

#257
https://raw.githubusercontent.com/StuffAnThings/qbit_manage/6796e989d9e9ae8b20a837e64315f9bde21569b2/modules/qbittorrent.py

That worked! Thank you very much.


[BUG] Template section of test case throws DataError for missing arguments

When using the template section of a test case, it seems to be expecting arguments following the keyword specified as the template. This should not be an error - see image below

Thank you for reporting this.
I allready fixed this. And die will we available in the next release, that I will publish in the next days.

If you want to test it, you can download the latest build from here.
Just download under "Artifacts" the  "vscode-package" and install the containing vsix file into VSCode.
Maybe you can give me a short feedback ;-)

Great work and great to hear! I'll look forward to the release.


flannel: hook failed: "cni-relation-changed" for flannel:cni

I tried using juju to deply kubernetes and it seemed mostly to work, except:
Unit                      Workload  Agent  Machine  Public address  Ports     Message
easyrsa/0*                active    idle   0        <IP_ADDRESS>                Certificate Authority connected.
etcd/0*                   active    idle   1        <IP_ADDRESS>      2379/tcp  Healthy with 3 known peers.
etcd/1                    active    idle   2        <IP_ADDRESS>      2379/tcp  Healthy with 3 known peers.
etcd/2                    active    idle   3        <IP_ADDRESS>      2379/tcp  Healthy with 3 known peers.
kubeapi-load-balancer/0*  active    idle   4        <IP_ADDRESS>      443/tcp   Loadbalancer ready.
kubernetes-master/0*      active    idle   5        <IP_ADDRESS>      6443/tcp  Kubernetes master services ready.
  flannel/0*              error     idle            <IP_ADDRESS>                hook failed: "cni-relation-changed" for flannel:cni
kubernetes-worker/0*      waiting   idle   6        <IP_ADDRESS>                Waiting for kubelet to start.
  flannel/3               error     idle            <IP_ADDRESS>                hook failed: "cni-relation-changed" for flannel:cni
kubernetes-worker/1       waiting   idle   7        <IP_ADDRESS>                Waiting for kubelet to start.
  flannel/1               error     idle            <IP_ADDRESS>                hook failed: "cni-relation-changed" for flannel:cni
kubernetes-worker/2       waiting   idle   8        <IP_ADDRESS>                Waiting for kubelet to start.
  flannel/2               error     idle            <IP_ADDRESS>                hook failed: "cni-relation-changed" for flannel:cni

Hi spikebike, was this deployed to lxd perchance?

Indeed, yes it was deployed to lxd.

AH, did you simply juju deploy or did you use conjure-up to deploy the bundle?
There's a call out under 'Alternative Deployment Methods' that seems to be a bit of a rough spot for that information to live, but it outlines that there are specific profile edits and modifications that will need to happen to the system that you're deploying the Canonical Distribution of Kubernetes to.
Its not a straight forward edit, so my suggestion would be to destroy that model, install conjure-up and attempt re-deployment via:
add-apt-repository ppa:conjure-up/next
apt-get update
apt-get install conjure-up
conjure-up canonical-kubernetes

It will perform the required steps when deploying to a LXD host to ensure you get the required functional tweaks. We're still discussing how we can make this experience better and more obvious to users.
As you're the third user to find this flaw in our README hiding the steps for a local development experience, i'll take a work item to ensure thats more prominent in the README.

Duplicate of #151

On 12/15/2016 08:03 PM, Charles Butler wrote:

AH, did you simply |juju deploy|

juju deploy.

or did you use |conjure-up| to deploy the bundle?

Not sure what that is, I could try it if you think it might help.

There's a call out under 'Alternative Deployment Methods' that seems to be a bit
of a rough spot for that information to live, but it outlines that there are
specific profile edits and modifications that will need to happen to the system
that you're deploying the Canonical Distribution of Kubernetes to.
Its not a straight forward edit, so my suggestion would be to destroy that
model, install conjure-up and attempt re-deployment via:
|add-apt-repository ppa:conjure-up/next apt-get update apt-get install conjure-up
conjure-up canonical-kubernetes |

I will try it.

On 12/15/2016 08:23 PM, Charles Butler wrote:

Duplicate of #151
https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/151

Doesn't look related to me.  That one is slow, my install got what looked like
pretty far, and pretty quickly, just a few minutes. No stalls, and I don't see
any mention of the errors I saw.
It might have the same fix though, conjure.

@spikebike this issue is starting to age, and I wanted to follow up to see if conjure-up resolved your issue or if we need to do deeper introspection.

closing due to inactivity. Please re-open if this continues to be an issue.

This continues to be an issue for me.
My goal is to have canonical-kubernetes installed using some sort of headless mode. I'm using lxd.
On a pristine xenial ec2 instance, I run something like:
sudo apt-add-repository ppa:juju/stable
sudo apt -y update
sudo apt-get -y upgrade
sudo apt install -y zfsutils-linux lxd
sudo lxd init \
    --auto \
    --storage-backend zfs \
    --storage-create-device /dev/xvdb \
    --storage-pool lxd
sudo usermod -aG lxd ubuntu

I then rename lxdbr0 and disabled ipv6 as per first comment in https://github.com/juju/juju/pull/5871.
I then bootstrap a localhost controller.
juju bootstrap lxd localhost

juju deploy ubuntu works as expected.
I then run juju deploy canonical-kubernetes
$ juju deploy canonical-kubernetes
Located bundle "cs:bundle/canonical-kubernetes-19"
Deploying charm "cs:~containers/easyrsa-5"
added resource easyrsa
Deploying charm "cs:~containers/etcd-21"
added resource snapshot
Deploying charm "cs:~containers/flannel-7"
added resource flannel
Deploying charm "cs:~containers/kubeapi-load-balancer-5"
application kubeapi-load-balancer exposed
Deploying charm "cs:~containers/kubernetes-master-10"
added resource kubernetes
Deploying charm "cs:~containers/kubernetes-worker-12"
added resource kubernetes
application kubernetes-worker exposed
Related "kubernetes-master:kube-api-endpoint" and "kubeapi-load-balancer:apiserver"
Related "kubernetes-master:loadbalancer" and "kubeapi-load-balancer:loadbalancer"
Related "kubernetes-master:cluster-dns" and "kubernetes-worker:kube-dns"
Related "kubernetes-master:certificates" and "easyrsa:client"
Related "etcd:certificates" and "easyrsa:client"
Related "kubernetes-master:etcd" and "etcd:db"
Related "kubernetes-worker:certificates" and "easyrsa:client"
Related "kubernetes-worker:kube-api-endpoint" and "kubeapi-load-balancer:website"
Related "kubeapi-load-balancer:certificates" and "easyrsa:client"
Related "flannel:etcd" and "etcd:db"
Related "flannel:cni" and "kubernetes-master:cni"
Related "flannel:cni" and "kubernetes-worker:cni"
Deploy of bundle completed.

and end up with this:
$ juju status
Model    Controller  Cloud/Region   Version
default  localhost   lxd/localhost  2.0.2

App                    Version  Status   Scale  Charm                  Store       Rev  OS      Notes
easyrsa                3.0.1    active       1  easyrsa                jujucharms    5  ubuntu
etcd                   2.2.5    active       3  etcd                   jujucharms   21  ubuntu
flannel                0.6.1    error        4  flannel                jujucharms    7  ubuntu
kubeapi-load-balancer  1.10.0   active       1  kubeapi-load-balancer  jujucharms    5  ubuntu  exposed
kubernetes-master      1.5.1    active       1  kubernetes-master      jujucharms   10  ubuntu
kubernetes-worker      1.5.1    waiting      3  kubernetes-worker      jujucharms   12  ubuntu  exposed
ubuntu                 16.04    active       1  ubuntu                 jujucharms   10  ubuntu

Unit                      Workload  Agent  Machine  Public address  Ports     Message
easyrsa/0*                active    idle   1        <IP_ADDRESS>             Certificate Authority connected.
etcd/0*                   active    idle   2        <IP_ADDRESS>   2379/tcp  Healthy with 3 known peers.
etcd/1                    active    idle   3        <IP_ADDRESS>    2379/tcp  Healthy with 3 known peers.
etcd/2                    active    idle   4        <IP_ADDRESS>   2379/tcp  Healthy with 3 known peers.
kubeapi-load-balancer/0*  active    idle   5        <IP_ADDRESS>    443/tcp   Loadbalancer ready.
kubernetes-master/0*      active    idle   6        <IP_ADDRESS>   6443/tcp  Kubernetes master services ready.
  flannel/0*              error     idle            <IP_ADDRESS>             hook failed: "cni-relation-joined" for flannel:cni
kubernetes-worker/0       waiting   idle   7        <IP_ADDRESS>              Waiting for kubelet to start.
  flannel/2               error     idle            <IP_ADDRESS>              hook failed: "cni-relation-changed" for flannel:cni
kubernetes-worker/1       waiting   idle   8        <IP_ADDRESS>             Waiting for kubelet to start.
  flannel/3               error     idle            <IP_ADDRESS>             hook failed: "cni-relation-joined" for flannel:cni
kubernetes-worker/2*      waiting   idle   9        <IP_ADDRESS>             Waiting for kubelet to start.
  flannel/1               error     idle            <IP_ADDRESS>             hook failed: "cni-relation-joined" for flannel:cni
ubuntu/0*                 active    idle   0        <IP_ADDRESS>               ready

Machine  State    DNS            Inst id        Series  AZ
0        started  <IP_ADDRESS>    juju-5a6a66-0  xenial
1        started  <IP_ADDRESS>  juju-5a6a66-1  xenial
2        started  <IP_ADDRESS>  juju-5a6a66-2  xenial
3        started  <IP_ADDRESS>   juju-5a6a66-3  xenial
4        started  <IP_ADDRESS>  juju-5a6a66-4  xenial
5        started  <IP_ADDRESS>   juju-5a6a66-5  xenial
6        started  <IP_ADDRESS>  juju-5a6a66-6  xenial
7        started  <IP_ADDRESS>   juju-5a6a66-7  xenial
8        started  <IP_ADDRESS>  juju-5a6a66-8  xenial
9        started  <IP_ADDRESS>  juju-5a6a66-9  xenial

Relation           Provides               Consumes               Type
certificates       easyrsa                etcd                   regular
certificates       easyrsa                kubeapi-load-balancer  regular
certificates       easyrsa                kubernetes-master      regular
certificates       easyrsa                kubernetes-worker      regular
cluster            etcd                   etcd                   peer
etcd               etcd                   flannel                regular
etcd               etcd                   kubernetes-master      regular
cni                flannel                kubernetes-master      regular
cni                flannel                kubernetes-worker      regular
loadbalancer       kubeapi-load-balancer  kubernetes-master      regular
kube-api-endpoint  kubeapi-load-balancer  kubernetes-worker      regular
cni                kubernetes-master      flannel                subordinate
kube-dns           kubernetes-master      kubernetes-worker      regular
cni                kubernetes-worker      flannel                subordinate

Digging a bit deeper, all machines with flannel have this within /var/log/juju/unit-flannel-0.log:
2017-01-13 03:35:45 INFO juju.worker.uniter resolver.go:100 awaiting error resolution for "relation-joined" hook
2017-01-13 03:35:45 INFO juju-log cni:11: Reactive main running for hook cni-relation-joined
2017-01-13 03:35:45 INFO juju-log cni:11: Invoking reactive handler: hooks/relations/kubernetes-cni/requires.py:11:changed
2017-01-13 03:35:46 INFO juju-log cni:11: Invoking reactive handler: reactive/flannel.py:167:ready
2017-01-13 03:35:46 INFO cni-relation-joined Traceback (most recent call last):
2017-01-13 03:35:46 INFO cni-relation-joined   File "/var/lib/juju/agents/unit-flannel-0/charm/hooks/cni-relation-joined", line 19, in <module>
2017-01-13 03:35:46 INFO cni-relation-joined     main()
2017-01-13 03:35:46 INFO cni-relation-joined   File "/usr/local/lib/python3.5/dist-packages/charms/reactive/__init__.py", line 78, in main
2017-01-13 03:35:46 INFO cni-relation-joined     bus.dispatch()
2017-01-13 03:35:46 INFO cni-relation-joined   File "/usr/local/lib/python3.5/dist-packages/charms/reactive/bus.py", line 434, in dispatch
2017-01-13 03:35:46 INFO cni-relation-joined     _invoke(other_handlers)
2017-01-13 03:35:46 INFO cni-relation-joined   File "/usr/local/lib/python3.5/dist-packages/charms/reactive/bus.py", line 417, in _invoke
2017-01-13 03:35:46 INFO cni-relation-joined     handler.invoke()
2017-01-13 03:35:46 INFO cni-relation-joined   File "/usr/local/lib/python3.5/dist-packages/charms/reactive/bus.py", line 291, in invoke
2017-01-13 03:35:46 INFO cni-relation-joined     self._action(*args)
2017-01-13 03:35:46 INFO cni-relation-joined   File "/var/lib/juju/agents/unit-flannel-0/charm/reactive/flannel.py", line 171, in ready
2017-01-13 03:35:46 INFO cni-relation-joined     status_set('active', 'Flannel subnet ' + get_flannel_subnet())
2017-01-13 03:35:46 INFO cni-relation-joined   File "/var/lib/juju/agents/unit-flannel-0/charm/reactive/flannel.py", line 223, in get_flannel_subnet
2017-01-13 03:35:46 INFO cni-relation-joined     with open('/run/flannel/subnet.env') as f:
2017-01-13 03:35:46 INFO cni-relation-joined FileNotFoundError: [Errno 2] No such file or directory: '/run/flannel/subnet.env'
2017-01-13 03:35:46 ERROR juju.worker.uniter.operation runhook.go:107 hook "cni-relation-joined" failed: exit status 1
2017-01-13 03:35:46 INFO juju.worker.uniter resolver.go:100 awaiting error resolution for "relation-joined" hook

I'm going to continue poking around.

Just found https://github.com/juju-solutions/charm-flannel/pull/26 which I'm guessing should resolve this issue once deployed.

@rene00 The fix in https://github.com/juju-solutions/charm-flannel/pull/26 should give you a different symptom, but likely won't fix the problem entirely.
The hook failure you're seeing occurs because /run/flannel/subnet.env doesn't exist when the charm expects it to - which means flannel isn't working right for one reason or another.
If I remember right, flannel doesn't work under the default LXD profile because of missing files in /proc/sys/net/ipv4/neigh/flannel.1. You might see an error along those lines if you do journalctl -u flannel on one of the failed units.
If you deploy with conjure-up as mentioned above in https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/160#issuecomment-267512140, I believe it should take care of the LXD profile changes and give you better results.

What cynerva has called out is correct. Using conjure-up would resolve the issue where flannel is unable to start, thus unable to create /run/flannel/subnet.env (which is an artifact left on disk when flanneld is running, which contains the CIDR and MTU of the device)
Using conjure-up edits the lxd profile for permissions with the device nodes it needs for flannel to run. You can see what its doing here:
https://github.com/conjure-up/spells/blob/master/canonical-kubernetes/steps/lxd-profile.yaml

I ran into the same problem, and I tried the conjure-up approach that failed also. Debugging hooks shows that there was a missing file as stated by @Cynerva before.
The only way to get this work for me was to export the bundle from the ui, replace all xenial occurences by yakkety, reimport it and deploy.
Everything worked after that.


Multivec track doesn't move in sync with other tracks

Commit:
Steps to reproduce

Load the example from the viewconf here:

http://higlass.io/app/?config=L4nKi6eGSzWOpi-rU2DAMA
Observed behavior

Expected behavior
Multivec moves in sync with other track.

The issue is the following change which was introduced to accommodate the latest version of the multivec track:
 export const OneDimensionalMixin = Mixin(superclass => class extends superclass {

   initTile(tile) {
-    console.log('init');
     this.localColorToHexScale();

     this.unFlatten(tile);
     this.maxAndMin.max = tile.maxValue;
     this.maxAndMin.min = tile.minValue;
-    this.renderTile(tile);
+
     if (tile.matrix) {
       // update global max and min if necessary
       (this.maxAndMin.max === null || tile.maxValue > this.maxAndMin.max) ?
@@ -19,27 +18,38 @@ export const OneDimensionalMixin = Mixin(superclass => class extends superclass
       (this.maxAndMin.min === null || tile.minValue < this.maxAndMin.min) ?
         this.maxAndMin.min = tile.minValue : this.maxAndMin.min;
     }
+
+    this.renderTile(tile);
+    //this.rescaleTile(tile);
+
+    const visibleAndFetched = this.visibleAndFetchedTiles();
+    visibleAndFetched.map(a => {
+      this.rescaleTile(tile);
+    });
+
   }

It needs to be removed until the new version of the multivec track is released.

Should be fixed in v0.2.0-alpha.2.


Ml predict

This PR embeds a machine learning model into the placer.

This branch is obsolete. No future work is planned at the moment.


chore: bump collector to 3.19.3

https://github.com/stackrox/collector/actions/runs/11127956632
from https://issues.redhat.com/browse/ROX-26025
discussed in https://redhat-internal.slack.com/archives/C07AWK55KGU/p1727784981753849

/retest


Some convenient API for Taylor series

To add overloads which would assume that the old variable and the new one are the same
To add overloads which would assume that the point of differentiation is zero (Maclaurin series)

I think the best way to do this without bloating the code with repetitious permutations is to create a simple class that contains the variable, polynomial replacement variable, and starting point. The multivariable version would simply take in multiple of these objects. The new overloads would not be on the Taylor series functions, but on the creation of the parameter object. Does that sound okay?

Mmmm... it sounds ok, but this would create unnecessary confusion with a new type. Hmmm... here's what I think:

The first method would be Maclaurin series which would assume that our old and new variables coincide (so it takes params Variable[] variables as an argument)
The second method would be Taylor series which would also make that assumption, so we get params (Variable Var, Entity Coordinate) as an argument
The third method will have params CoordInfoType[] coords (not sure how to call the type), and this time, it will contain those types (I guess it's a good idea to have a number of implicit operators for conversation to this type).

Justification: most of the time we need Maclaurin series, so we do need it as a separate method. Sometimes we want to specify coordinates other than 0, so we need the second method (but most often we want to preserve the vars the same). And finally, if we need something custom, we call the third method.

Because we already have four different Taylor series methods (two for single variable, two for multivariable), this means we'd have 12 separately documented methods total. It's easy to do, just a bit verbose. Maybe we should merge the single variable and multivariable methods because they are so similar?
Also, looking at it again, a Builder pattern might work well here also? Not sure, lots of options.

I think that it's enough to have the three methods I listed + an infinite generator which accepts the most general arguments. Here's an example of how they could be used:
MathS.Series.Maclaurin(expr, 3, "x")
MathS.Series.Maclaurin(expr, 3, "x", "y")
MathS.Series.Taylor(expr, 3, ("x", 0))
MathS.Series.Taylor(expr, 3, ("x", 0), ("y", 4), ("z", 7))
MathS.Series.Taylor(expr, 3, ("x", "t", 0), ("y", "s", 2), ("z", "u", 3))
MathS.Series.TaylorTerms(expr, ("x", "t", 0), ("y", "s", 2), ("z", "u", 3))  <-- the generator


Test Plan (required)

OSX can build libspan.
OSX can run all unit tests successfully.

After spending multiple days debugging, and looking at StackOverflow, boost::context, and other context libraries I can't identify why exactly setcontext causes a Segmentation fault on Mac OS X. Even looking at the original mordor, instead of mtanski's fork has yielded no result. (They override mcontext, but doing that causes more failures and also segfaults).
I'm sure I could dig into the actual implementation of exactly how ucontext is different in mac, and why this is causing a segmentation fault. Unfortunately, I do not have the patience, nor desire to do that. If someone else does feel free to take a whack at it. I'd be happy to support mac if we could work past this ucontext issue. If you apply the diff of this PR and get: ./.ci/run-tests.sh to report all passing tests, please re-open this PR, and we can look at merging it in.


Fix rtl position problem

to fix picker position in rtl mode for rtl page
issue#2127
https://github.com/uxsolutions/bootstrap-datepicker/issues/2127

Q
A

Bug fix?
yes

New feature?
no

BC breaks?
no

Related tickets
fixes #2127

License
MIT

What do you guys think of this change @vsn4ik @Azaret? I don't know it for sure as we had many changes to this part of the code to fix various issues (but sometimes broke other cases)

Wrong branch. Need master.

That's something I can change, let's see if this works without conflicts

This issue is for 1.6.1.
It seems to work fine on master.
Are we going to do LTS on 1.6 ?

hmm I thought the issues was also present in master :s I'm not in favor of an LTS on 1.6, if we really should do an lts it should be on 1.7 (if this is the last minor release before 2.0)
In this case I would say upgrading to 1.7 should fix this issue (stable release should be out soon, only few last pr's). If this is not possible we should push an extra patch release for 1.6

Neither I am. Tho 1.7 is not 100% ready, it is decently usable, I'm in favor pushing people into 1.7 as we fixed many issues that the 1.6 branch had.

So an extra path release for 1.6 is what we should do here? I have no problem with that btw!

No, I just tested it against 1.6.4 and it work fine too:

@imansa can you provide some feedback as it looks like it works on 1.6.4?

This issue is still present in 1.7


Extmaps

Basic pass-through ext map support.
TODO

[x] Handle global exts
[x] SDP Tests
[x] Const for SDPSectionType

nice! So I don't think you need to worry about directions in this PR, extmap doesn't care about.

Hey @jbrady42
Consider this accepted :) I need to rebase and deal with those test fails myself, but ran out of time tonight :(
thanks!

In this form it does not solve https://github.com/pion/webrtc/issues/1255, because the media.WithTransportCCExtMap() call is still there. I'm not sure if this mr was meant to solve the linked issue.

@masterada :+1: I will make sure to drop that!
Extensions should ONLY be set by users explicitly requesting them. I think WithTransportCCExtMap was just a temporary change to unblock things.


v3 input events: Canvas (or parents) with a padding in  percentages results in event.x and event.y to be offset wrong.

A bug in the API v3 Beta 13

Click on top, left around 0,0 on canvas.  event.x and event.y will not be 0,0 as padding won't be taken into account.

//  canvas or any container parent  style="padding: 10%";

  this.input.events.on('POINTER_DOWN_EVENT', function (event) {
console.log(event.x, event.y);
  });

Wonderful, it obviously isn't taken into consideration when the DOM calculates canvas.offsetLeft, which is insane really as it's supposed to return a pixel value. Mind you, it returns null on iOS if the canvas is hidden or fixed.

I think offsetLeft gives relative to the parent only and  the only way is to use .getBoundingClientRect();

This is now fixed in Beta 14. Please let me know if it still happens though!

That works fine now - thanks a lot !


[API] - Get Data from Device

Write the GET API route at /device/getData to request data based on device ID and timestamp.
Queries for data added between a specific date and time.
Inputs: Device Id, (temperature/location/{customDataPoint}), [temperature]

@harsimrat99 wondering if you can clarify the specifics of the request and response of this route :)

@JLefebvre55 Could you please let us know about the updates from @terryluan12 on this issue. I will be assigning this issue to @Lepabryce in the meantime to get thing moving.

[ ] Building a GET route at '/device/getData' (Express.JS)
[ ] Encoding input parameter (device ID) into the GET request (URL parameters with Express.JS, i.e. /device/getData?deviceid=152)
[ ] MongoDB request for the latest data point for that device (???)
[ ] EITHER:

[ ] IF FOUND: Return data { "data" : 1.524 } with success code (200)
[ ] IF NOT FOUND: Return code 404
[ ] OTHER ERROR: Return 500 (try/catch)


Main page

Two characters on the main page: left and right.
All the characters are inverted by color to each other.
A user may choose the one.

here is a sample of the character

another inverted character


fixes https://github.com/tessel/t2-start/issues/53

changes index.js to a shorter blinky example which matches t2-start
r? @johnnyman727 or @HarleyKwyn
Do I need to change anything other than this one file?

This is the same fix as #372 with the exception of the // blinky comment. I'm happy merging either as soon as I put out a new build.


can't login to my keybase account (CLI)

Hi I was using keybase on my old Mac and now I'm trying in Linux.
It's been a while and I tried multiple times, this time I'm finally filing an issue so we can fix it eventually :)
 keybase login
Your keybase username or email address<EMAIL_ADDRESS>In order to authorize this installation, keybase needs to sign this installation
with your GPG secret key XXXXXXXXXXXXX.

You have two options.

(1) Keybase can use GPG commands to sign the installation.

(2) Keybase can export your secret key from GPG and save it to keybase's local encrypted
    keyring. This way, it can be used in 'keybase pgp sign' and 'keybase pgp decrypt'
    going forward.
Which do you prefer?: 2

There was a problem importing your GPG secret key XXXXXXXXXXXXX.

        GPG error: exit status 2

Would you like to try using GPG commands to sign this installation instead? [Y/n]
Enter a public name for this device: xxxxx
▶ ERROR GPG error: exit status 2

or if I I go to option 1:
14:51 $ keybase login
Your keybase username or email<EMAIL_ADDRESS>In order to authorize this installation, keybase needs to sign this installation
with your GPG secret key XXXXXXXXXXXXXXX.

You have two options.

(1) Keybase can use GPG commands to sign the installation.

(2) Keybase can export your secret key from GPG and save it to keybase's local encrypted
    keyring. This way, it can be used in 'keybase pgp sign' and 'keybase pgp decrypt'
    going forward.
Which do you prefer?: 1
Enter a public name for this device: xxxxxxxx
▶ ERROR GPG error: exit status 2

my log id: 5e7ebf91a886d3ed5a7d161c

when I'm trying to login from newly created user with no GPG keys installed I get this:
▶ ERROR GETPIN response didn't start with D; got "ERR 83918849 Permission denied <Pinentry>"

Sorry, I found where was the issue:
after transferring my GPG data to Linux box settings for pinentry program were incorrect:
pinentry-program /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac


Added support for IPv6 cidr and IPv6 localhost

[x] Removed netmask and replaced with range_check (uses ipaddr.js)
[x] Updated tests to check for combination of IPv4 and IPv6 rules

@ryanbillingsley want to give this a look?

@nsbingham looks great :+1:

@nsbingham we will need to rev the version in the readme and the package.json file before we merge this.


Extracting the email address this delivery is for

Let's say different actions dependent on different incoming email address (e.g<EMAIL_ADDRESS>will do attachment process on certain records and<EMAIL_ADDRESS>will do attachment for another set of records) and an email is sent with multiple address that are meaningful to the system and the system receives that multiple times (as many times as the meaningful address appears). The only way for the system to get the recipient that this email is intended is to look into certain parameter ( params[:recipient] in mailgun's case).
Is there an attribute in the email class that give us the delivered_for email address?

No, you'll have to parse raw_headers manually.

Ok thanks


Use more sophisticated transaction handling within checkout views

We should probably not use the default atomic requests behaviour for the submission part of checkout as it can lead to issues where payment models aren't saved if the order placement process breaks.
We should be able to use auto-commit mode up until payment is successful, then run everything else in a transaction.

closing all issues that are feature requests that don't have PR's attached.


not support mips64le go installation package for make docker official image (https://golang.org/dl/)

Recently I make golang docker images based on debian:stretch image with the guidance of
the docker-library/official-images project. In order to make golang docker image that I need, I must download the golang software installation package from URL: https://golang.org/dl/, but I cannot found the software installation package on linux-mips64el.
What version of Go are you using (go version)?
version golang1.6 +  support mips64le arch.

$ go version

Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOOS=linux
GOARCH=mips64le

What did you do?

What did you expect to see?
Everybody can download the golang installation package on mips64le from  https://golang.org/dl/
What did you see instead?

Hi,
from the Porting Policy page, First Class Ports section:

Some ports are considered "first class". The distinction is mostly about releases and distribution.
A first class port has these properties:

Broken builds block releases

All contributors are effectively responsible for these ports (You break it, you fix it, or find someone who can.)

Official binaries are provided

Requires Google's Go team to own the builder machine

Installation is documented at https://golang.org/doc/install

Graduating a port to "first class" is at the discretion of the Go team at Google.

Follows a list of the First Class Ports. ppc64le is not a first class port, so official binaries are not provided. Users need to build the toolchain themselves: https://golang.org/doc/install/source

Do we need to provide you with machines on mips64le cpu arch? Is the simulation based on qemu or virtual machine solution OK?

Instead of providing us with machines, I recommend that you build mips64le releases yourself and make them available for anyone who wants them.  Thanks.


Checkou&Compile ends in "Could not find method install()"

Describe the bug
When checking out current master branch on a clean system and running gradle clean compile on project root directory an issue occurs.
To Reproduce
Steps to reproduce the behavior:

Checkout master branch of this project
Run gradle clean compile on it.

Expected behavior
Project compiles.
Actual behavior
E:\workspace\testerra>gradle clean compileJavaTest --stacktrace

FAILURE: Build failed with an exception.

* Where:
Script 'E:\workspace\testerra\publish.gradle' line: 28

* What went wrong:
A problem occurred evaluating script.
> Could not find method install() for arguments [publish_57ufhuqeyuu01v41ou65akukr$_run_closure2@1a099130] on root project 'testerra' of type org.gradle.api.Project.

Screenshots
NONE
Test
Not applicable
Environment(please complete the following information):

OS: Windows 10 Pro 20H2
Gradle: 6.7

E:\workspace\testerra>gradle --version

------------------------------------------------------------
Gradle 6.7
------------------------------------------------------------

Build time:   2020-10-14 16:13:12 UTC
Revision:     312ba9e0f4f8a02d01854d1ed743b79ed996dfd3

Kotlin:       1.3.72
Groovy:       2.5.12
Ant:          Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM:          15.0.2 (Oracle Corporation 15.0.2+7-27)
OS:           Windows 10 10.0 amd64

JDK: openjdk 15.0.2 2021-01-19

E:\workspace\testerra>java --version
openjdk 15.0.2 2021-01-19
OpenJDK Runtime Environment (build 15.0.2+7-27)
OpenJDK 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)

Hardware (please complete the following information):
(removed section)
Additional context
Reproduced on other System as well with
openjdk 11.0.11-ea 2021-04-20
OpenJDK Runtime Environment (build 11.0.11-ea+4-post-Debian-1)
OpenJDK 64-Bit Server VM (build 11.0.11-ea+4-post-Debian-1, mixed mode, sharing)

------------------------------------------------------------
Gradle 6.8.3
------------------------------------------------------------

Build time:   2021-02-22 16:13:28 UTC
Revision:     9e26b4a9ebb910eaa1b8da8ff8575e514bc61c78

Kotlin:       1.4.20
Groovy:       2.5.12
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          11.0.11-ea (Debian 11.0.11-ea+4-post-Debian-1)
OS:           Linux 5.10.0-4-amd64 amd64

Issue could be resolved, when applying java&maven gradle plugins before publish.gradle will be loaded
apply plugin: 'java'
apply plugin: 'maven'
// Do not move this integration because `group` and `version` is needed for publishing
apply from: rootProject.file('publish.gradle')

Best regards,
Eric

I cannot reproduce this issue. Do you have a typo in your commands?
I tried the following with success:
gradle clean compileJava
gradle clean compileTestJava (not compileJavaTest)

Hmn. It comes up as well when just running gradle clean compile. But I already thought that it would hard to reproduce. But as it occured twice to me when running checkout&compile on different operating systems with different java and gradle versions let me think about a serious issue.
May it's a gradle version related issue or something like that?
The thing that it does not occur when changing the order of applying plugins confuses me.
May I can reproduce it in a Docker container as well.

Hey,
thank you for your fast response, but the error occurs as well when running gradle clean compileJava or gradle clean compile.
As it occurs twice to me using different operating systems with different gradle & java versions, this seems like a issue for me.
May I'm able to reproduce it in a Docker container as well. I will try that tomorrow, because downgrading to Gradle 5.6.4 did not help either.
The thing that everything works, when changing apply-order of Gradle plugins is confusing me.
Best regards
Eric

Hey everyone,
I was able to setup a simple Gradle 6.7.0 + JDK 15 container to reproduce this error. May this help to repdroduce it on your machines as well.
Dockerfile
FROM gradle:6.7.0-jdk15

RUN apt update && \
    apt install git

RUN git clone https://github.com/telekom/testerra.git
WORKDIR 'testerra/'

CMD ["bash"]

Commands to verify
# Build container
docker build . -t testerra/gradle:latest
# Run it and jump into bash of container
docker run -it testerra/gradle bash
# Run compile in /home/gradle/testerra
gradle clean compileJava

Best regards
Eric

Hi Eric,
thank you for your help and your steps. I can reproduce this issue, but it does not depend on any Gradle or Java version. It's an issue of your init.gradle. ;-)
As a default our init.gradle starts as follows:
allprojects {     apply plugin: 'java'     apply plugin: 'maven'    ...
But of course, we cannot assume this as standard. I will fix this.
Regards
Martin

Ah. Great finding. And as I started with a plain operating system and configuration, there was no init.gradle at all.
Thank you =)!


Building custom meridiem Amharic Locale

Greetings,
In Amharic, I want to define my own custom meridiem.
am is ከጠዋቱ
pm is ከምሽቱ
But then how do I use this in testing the formatting so that it works as you do when using dddd ? Is there one for meridiem ?
'[ያለፈው] dddd meridiem LT [ሰዓት]'
So last Monday 5am would be transliterated in English to
[Last] Monday am 5 hour.

@Alanscut Could you please provide direction on this? Ready to submit a pull request for Amharic but stuck on this issue.

I'm not sure what you mean.
If you are trying to customize the meridiem function, please use https://momentjs.com/docs/#/customization/am-pm/
If you are trying to display the meridiem, use "A" or "a": https://momentjs.com/docs/#/displaying/format/

Thank you @marwahaha, your input helped me sort out the issue I was encountering.


Accessibility - combobox violates aria 1.2 rules

The combobox design pattern is detected as WAI-ARIA 1.1, which is not allowed by WAI-ARIA 1.2
reporting url https://ibmdocs-dev.mybluemix.net/docs/en/error
you can use the ibm equal access checker
<div aria-label="Search IBM Documentation" class="react-autosuggest__container" aria-expanded="false" aria-owns="react-autowhatever-1" aria-haspopup="listbox" role="combobox">

Combo box is a Core Carbon component.  Kenny will review and document more details for the next review.  D.A. Kahn is the Carbon accessibility contact.


Error in download script no yolov4-608.cfg

In this line should be 608, not 416 (288,416,416 instead of 288,416,608)
https://github.com/jkjung-avt/tensorrt_demos/blob/a0cd57c62daf6fe1b08f120dc2bffe29f660d62d/yolo/download_yolov4.sh#L15

You are right.  Thanks for the catch.  I've updated the code.

No problem. Sorry for not submitting PR.
Thanks!


xrepo env should output json

Is your feature request related to a problem? Please describe.
I use dark magic to build android project without gradle using xmake. Here's what I have to use now:
# this magic copies .so files from all add_require() dependencies.
# ... Probably from all dependencies.

xrepo env bash <<'EOF'
        # Set the output directory
        OUT="build/apk/lib/$ARCH"

        # Split the LIBRARY_PATH into an array using ":" as the delimiter
        IFS=":" read -ra PATHS <<< "$LIBRARY_PATH"

        # Iterate over each path in the PATHS array
        for path in "${PATHS[@]}"; do
        # Check if the path exists and is a directory
        if [ -d "$path" ]; then
            # Copy all .so files from the path to the output directory
            cp "$path"/*.so "$OUT"
            echo "Copied .so files from $path to $OUT"
        else
            echo "Path $path does not exist or is not a directory"
        fi
        done
EOF
done

with json output, I think I can just use output of xrepo env command to determine .so files to process, which will lead to simpler and nicer code of my build script.  You can try this thing
Describe the solution you'd like
I want someone to open https://github.com/xmake-io/xmake/blob/master/xmake/modules/private/xrepo/action/env.lua#L457 , and instead of using print function on lua dictionary, process that dictionary using json module https://github.com/xmake-io/xmake/blob/master/xmake/core/base/json.lua . Or add --json output flag, which will make it a little harder to code.
Describe alternatives you've considered
You can see my current workaround in the beginning of this issue.
Additional context
There's no additional context to provide. My project using described code that would benefit from xrepo being able to output json instead of just printing lua dictionary is here https://github.com/mentalonigiri/minimaldroid3

What information do you want to get with xrepo env?

What information do you want to get with xrepo env?

I use LIBRARY_PATH to copy .so files for all packages, including ones installed as add_requires() from other packages

Why not use lua to copy them?
add_requires("zlib")
target("test")
    -- ...
    add_packages("zlib")
    after_build(function (target)
        for _, pkg in ipairs(target:orderpkgs()) do
            os.cp(path.join(pkg:installdir(), "lib", "*.so"), ...)
        end
    end)

very nice idea, but not all libraries install themselves to $prefix/lib, and sometimes its dll

Closing the issue as your method is definitely better than trying to do magic with xrepo env. I've built sdl2 + imgui app thanks to your method, here's xmake part of it:
add_requires("libsdl", {configs = {shared = true}})
add_requires("imgui", {configs = {
    sdl2 = true,
    opengl3 = true
}})

add_rules("mode.release", "mode.debug")

target("glue")
set_kind("static")
add_includedirs("$(env ANDROID_NDK_ROOT)/sources/android/native_app_glue", {public = true})
add_files("$(env ANDROID_NDK_ROOT)/sources/android/native_app_glue/android_native_app_glue.c")

target("jni-main")
set_default(true)
add_files("main.cpp")
add_packages("libsdl")
add_packages("imgui")
if is_plat("android") then
  set_kind("shared")
--   add_deps("glue")
  after_build(function (target)
        for _, pkg in ipairs(target:orderpkgs()) do
          print(pkg)
            os.cp(path.join(pkg:installdir(), "lib", "*.so"), target:targetdir())
        end
    end)
  add_syslinks("android",
    "EGL",
    "GLESv1_CM",
    "log")
  add_shflags("-u ANativeActivity_onCreate")
end


fix: prevent error log truncation

Closes #1571
Overview
Uses our forked Ink library that can display full log instead of truncated like {:error, %Jason.EncodeError{message: "invalid byte 0x9D in <<67, ...>>"}}.
https://github.com/omgnetwork/ink/tree/unnawut/full-log-on-error
Changes

Replace :ink with our forked repo that supports error_inspect_limit: :infinity
Use error_inspect_limit: :infinity
Rename github.com/omisego -> github.com/omgnetwork because I was touching the deps anyway

Testing
Logs that have encoding error should no longer truncate its content

FYI, logs (logger) is truncating logs as part of the backpressure mechanism. if this wouldn't be there and if the amount of incoming messages with large binaries would be high, the only remaining backpressure mechanism logger has is dropping messages.

FYI, logs (logger) is truncating logs as part of the backpressure mechanism. if this wouldn't be there and if the amount of incoming messages with large binaries would be high, the only remaining backpressure mechanism logger has is dropping messages.

I'll check what's the ideal length or there's another solution for length: 50 not being enough

Looks like a more useful approach is to figure out a way to log the stacktrace on log encoding error. Will resubmit as a new PR.


jackett: 0.20.3723 -> 0.20.3846

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for jackett is: API Support for your favorite torrent trackers
meta.homepage for jackett is: https://github.com/Jackett/Jackett/
meta.changelog for jackett is: https://github.com/Jackett/Jackett/releases/tag/v0.20.3772
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.20.3772 with grep in /nix/store/ynmhcc5l1gbd0hzm95fkba5r2f7r9vcv-jackett-0.20.3772
found 0.20.3772 in filename of file in /nix/store/ynmhcc5l1gbd0hzm95fkba5r2f7r9vcv-jackett-0.20.3772

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
jackett

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/ynmhcc5l1gbd0hzm95fkba5r2f7r9vcv-jackett-0.20.3772 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A jackett https://github.com/r-ryantm/nixpkgs/archive/2ea455b32b9b2a6e14a34310bc48abcb0346ad48.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/ynmhcc5l1gbd0hzm95fkba5r2f7r9vcv-jackett-0.20.3772
ls -la /nix/store/ynmhcc5l1gbd0hzm95fkba5r2f7r9vcv-jackett-0.20.3772/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

jackett

Maintainer pings
cc @edwtjo @nyanloutre @purcell for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for jackett is: API Support for your favorite torrent trackers
meta.homepage for jackett is: https://github.com/Jackett/Jackett/
meta.changelog for jackett is: https://github.com/Jackett/Jackett/releases/tag/v0.20.3846
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.20.3846 with grep in /nix/store/cc30l5jy2xpljbjm82s45db6g48r209x-jackett-0.20.3846
found 0.20.3846 in filename of file in /nix/store/cc30l5jy2xpljbjm82s45db6g48r209x-jackett-0.20.3846

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
jackett

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/cc30l5jy2xpljbjm82s45db6g48r209x-jackett-0.20.3846 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A jackett https://github.com/r-ryantm/nixpkgs/archive/80603a00ef01e240088f8b370a1da18fce0418e4.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/cc30l5jy2xpljbjm82s45db6g48r209x-jackett-0.20.3846
ls -la /nix/store/cc30l5jy2xpljbjm82s45db6g48r209x-jackett-0.20.3846/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

jackett

Maintainer pings
cc @edwtjo @nyanloutre @purcell for testing.

Result of nixpkgs-review pr 224764 run on aarch64-darwin 1

1 package built:

jackett


Configuration import/export

Stories at https://grips.semantic-web.at/x/I4F2B and https://grips.semantic-web.at/x/JYF2B.

Could be also iter5

Joining with import, removing @istvan-satmari , as I will create a separate task for the UI.

Please till 6.2. latest.

Finished in #361 .


Fastify Plugin Decorators

Hello!
Your project looks awesome. Just out of curiosity, do you have any plans to add Fastify plugin decorators to it?

@clarkbrent thank you! I do not have such plans yet.  To be honest. I haven't really used fastify much. Could you tell me what would be the advantage of using cls-proxify as a plugin decorator over using it as a middleware?


spring-cloud-contract-maven-plugin fail the build automatically if contract is wrong

Enhancement
I'm using the spring-cloud-contract-maven-plugin a lot in my project, and one of the issue I have is that when someone creates a new contract, then if the contract is malformed then no stub and no test get created for that contract, but the maven build still complete like if there was no problem.
It's only after turning on maven debug output on that I'm finally able to find why my contract fail.
It would be really nice if the spring-cloud-contract-maven-plugin has an option that can automatically stop the build during the spring-cloud-contract:convert goal if a contract is malformed.
<configuration>
  <failOnConvertError>true</failOnConvertError>
</configuration>

Here is for instance a contract which has an invalid option:
description: |
  Some test
request:
  url: /pendingFiles/submit
  queryParameters:
    username: John
  method: POST
  headers:
    Content-Type: application/json

response:
  status: 202
  body:
    status: success
    message: The new configuration is being applied
    files:
    - workbookType: Groovy Script
      username: John
      filename: exitConseling/triggerGraduating.groovy
      uploadedDate: '2018-11-07T16:51:28.000Z'
      success: true
      details: "new script created"

  matchers:
    body:
    - path: $.files[*]
      type: by_command
      value: assertThatSizeIs($it, 3)
    - path: $.files[0].workbookType
      type: by_equality
    - path: $.files[0].username
      type: by_equality
    - path: $.files[0].filename
      type: by_equality
    - path: $.files[0].uploadedDate
      type: by_regex
      predefined: iso_8602_with_offset

This will generate the following error in the logs:
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `org.springframework.cloud.contract.verifier.converter.YamlContract$PredefinedRegex` from String "iso_8602_with_offset": value not one of declared Enum instance names: [non_blank, iso_date_time, iso_8601_with_offset, iso_time, iso_date, only_alpha_unicode, url, hostname, any_boolean, uuid, ip_address, any_double, number, non_empty, email]
 at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: org.springframework.cloud.contract.verifier.converter.YamlContract["response"]->org.springframework.cloud.contract.verifier.converter.YamlContract$Response["matchers"]->org.springframework.cloud.contract.verifier.converter.YamlContract$TestMatchers["body"]->java.util.ArrayList[16]->org.springframework.cloud.contract.verifier.converter.YamlContract$BodyTestMatcher["predefined"])
	at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:67)
	at com.fasterxml.jackson.databind.DeserializationContext.weirdStringException(DeserializationContext.java:1549)
	at com.fasterxml.jackson.databind.DeserializationContext.handleWeirdStringValue(DeserializationContext.java:911)

It would be nice that when failOnConvertError=true that the maven build stops with the error:
[ERROR] spring-cloud-contract:convert: in file "src/test/resources/contracts/test.yaml":
  Cannot deserialize value of type `org.springframework.cloud.contract.verifier.converter.YamlContract$PredefinedRegex` from String "iso_8602_with_offset": value not one of declared Enum instance names: [non_blank, iso_date_time, iso_8601_with_offset, iso_time, iso_date, only_alpha_unicode, url, hostname, any_boolean, uuid, ip_address, any_double, number, non_empty, email]
    at [Source: src/test/resources/contracts/test.yaml; line: 37, column: 19]

Let me know what you think about that ?
Cheers.

That's already implemented in 2.1.0

That == invalid YAML will fail and break the build

Nice :)
Is there an ETA on when 2.1.0 will be available in maven repo ?

Release is scheduled on 20th Dec. https://github.com/spring-cloud/spring-cloud-release/milestones

thanks


Update to work with the updated retroyaml package

closed by https://github.com/retrontology/radarrtrim/commit/0051616f98033ea463c30eccc61ff589244f5d87


[Bug]: Incorrect cloud provider secret doesn't provide feedback

Problem: What is happening?
When an incorrect secret for a cloud provider is entered, the system does not provide any feedback. This impacts the user experience as they are left unsure if the operation was successful or not.
Expected behavior
When an incorrect secret is entered, the system should provide a clear and concise error message like an alert, informing the user about the incorrect secret.
Steps to reproduce

Go to the "Cloud Providers"
Click on "ADD CLOUD PROVIDER"
Select "Amazon Web Services"
Click on "NEXT"
Enter any name in the name field
Enter a valid access key in the access key field
Enter an incorrect secret in the secret field
Click on "CONFIRM"
Observe that no feedback is provided to the user.

Which Devopness module(s) are the source of the bug?
Devopness website
SDK Version
No response
Reproduction link
No response
Additional details
The application attempts to communicate with AWS to verify the correctness of the secret. If the secret is incorrect, it fails silently without providing any feedback to the user. The API does return an error when the secret is incorrect, but this error is not displayed to the user, so it's a front-end issue. Below is an image justifying the return of the API:

No response

can i take this issue?

Fixed @dudunog

The error message is now being shown in the alert message


PHP inside addPage

This is likely not an issue, I am just not sure where else to post for support. I am trying to use PHP inside of this string;
$pdf->addPage('tit');
The PHP I am attempting to use is;
<?php echo htmlentities($_POST['iname']);?>
How would I go about doing this;
$pdf->addPage('<?php echo htmlentities($_POST['iname']);?>');
I know that does not work but does anybody know if it is possible to do something like that?

Sorry, but this is not a support forum. Your question is really basic PHP and has nothing to do at all with this library here.

Hmmmm....

Your question is really basic PHP and has nothing to do at all with this library here.

use mikehaertl\wkhtmlto\Pdf;

$pdf = new Pdf;
$pdf->addPage('/path/to/page.html');
$pdf->addPage('....');
$pdf->addPage('http://www.example.com');

$pdf->addPage('....');


Refactoring tests

[ ] https://github.com/dunglas/DunglasApiBundle/blob/1.0/features/hydra/doc.feature

I'm working on it. We'll open a PR soon.


Contradiction between docs for ALTER DATABASE against Synapse Serverless collation change

2 different docs contradict each other on whether ALTER DATABASE  COLLATE  is supported against Synapse Serverless via T-SQL:
Indicates support: https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/reference-collation-types#change-collation
Indicates no support: https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-database-transact-sql?view=azure-sqldw-latest&preserve-view=true&tabs=sqlod#limitations-and-restrictions
Please update both docs to indicate whether the ALTER DATABASE command for setting a collation is supported or not supported.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: b4b3dc5b-fcda-3cdc-f4fb-635d11152557
Version Independent ID: d4a26781-1a45-5a15-8b2e-f0838a691f60
Content: Collation support - Azure Synapse Analytics
Content Source: articles/synapse-analytics/sql/reference-collation-types.md
Service: synapse-analytics
Sub-service: sql
GitHub Login: @filippopovic
Microsoft Alias: fipopovi

@awbarbeau
Thanks for your feedback! We will investigate and update as appropriate.

Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. We are closing this issue for now, but if you feel that it's still a concern, please respond and let us know. If you determine another possible update to our documentation, please don't hesitate to reach out again. #please-close


feat: add adaptSpectrum prop and handling to slider components

Adds an optional prop to support adjusting the slider spectrums based on the active brightness and saturation values.
https://user-images.githubusercontent.com/16565387/223205180-ec67340a-3952-46ab-9900-05d555538301.mp4

I should note that the hueValue, saturationValue, and brightnessValue are the color channels in the HSV/HSB color format. Hue is the same in both HSV and HSL formats, but the saturation and brightness values are different. Have you considered this in your PR? If not, I suggest creating a worklet function in a separate file that converts HSV to HSL color format. What are your thoughts?

These changes account for the difference between HSV and HSL, but this is happening in the logic for each style object. I like the idea of extracting it to a separate reusable function.
Regarding your suggestion, I see that there is a method in ColorKit called HSL_HSVA. Do you know if we would be able to declare that as a worklet and use it as-is, or if we would need to duplicate it in order to keep the original in tact?

Maybe there is a way to reuse the function that I am not aware of. I know there is a runOnUI method, but I have never tried it.

I went with a separate worklet function because the need to convert hsva --> hsla makes it an outlier from the rest of the ColorKit funcs and it seemed like a better option than introducing inconsistency or trying to make all of ColorKit work on the UI thread.
The brightness and opacity sliders work well, the hue slider is close to accurate but there is inconsistency because it needs to manage overlaying separate black and white overlays with transparency to give the effect of tweaking brightness and saturation. More work can be done there to improve the formula. The saturation slider has a similar issue because, we cannot represent saturation with a static gradient like we can with brightness and opacity.

At this point, I think we should consider changing the file name of GlobalStyles to something more suitable.

How about we split it into styles.ts, utils/helpers.ts, and co-locate CTX with ColorPicker.ts (it doesn't really fit with either or need it's own file)

I was experimenting with the hueSlider to adjust the spectrum layers, and I found a way to achieve it in just one layer. Please give it a try and share your feedback with me.

  const activeColorStyle = useAnimatedStyle(() => {
    const alpha1 = 1 - saturationValue.value / 100;
    const alpha2 = 1 - brightnessValue.value / 100;
    const opacity = Math.max(alpha2, alpha1);
    return { backgroundColor: hsva2Hsla(0, 0, brightnessValue.value, opacity) };
  });

// the layer component
{adaptSpectrum && <Animated.View style={[activeColorStyle, { borderRadius }, StyleSheet.absoluteFillObject]} />}

May we merge this PR now?

Yeah, it's good to go


Shape of persistence

The simple case is to serialize the config to JSON, and save in the AppData folder. We can accomplish this by reading from / writing to a subfolder in %APPDATA%, whose name is generated from the Description value passed into the DebuggerVisualizer attribute instance.
However there are two wrinkles:

some properties or their values are specific only to a subtype of the target type
a set of multiple subtypes should have the same config

Some properties only apply to specific subtypes of the visualizer target type. For example, in the ANTLR visualizer, the target type is the RuleContext base type. But a given project will have subtypes of RuleContext, and some properties will relate to those specific subtypes, such as SelectedTokenTypes or SelectedRuleContexts which depend on the tree information for those specific subtypes.
Therefore, when there are such properties the two property types need to be serialized in two different locations. The above-mentioned globals JSON will be called .json.

What should the subtype-specific properties be named? The simplest scheme would be to name it based on the assembly + subtype name. But ATM only the ANTLR visualizer has such properties, and for the ANTLR visualizer it's better to share the properties for a single assembly, even for multiple subtypes.
For now, by default all the config is in the globals, and visualizers can specify logic for the key used to name the keyed config file. This works for the current visualizers.

We should store the last used keyed property values, for when the key is not resolved successfully.

Non-keyed property persistence works. Once we restructure the ANTLR visualizer to use Periscope, we can test keyed properties.


Optimize graphs creation for BS

Do not convert graphs in manager (cdg to ddg, etc). I have run 30 methods with BS and foudn out that those functions are run 246 times:

Maybe we need to learn how to copy the graph from the subgraph (copy a part of a graph with the function for EMO graph)

Optimized.


feat: show hint if AENS name is in revoked state

Description
resolves #454
Demo
https://github.com/aeternity/aescan/assets/15363559/0259fed4-7a4b-4ce3-ab1f-32260405cdd5
Checklist:

[x] I have read and followed the Contributing Guide
[x] Add conditional hint for revoked state

Reopened the PR here, to fix the failed build. Let's continue here https://github.com/aeternity/aescan/pull/607


Download link only links to first episode loaded

User reported, I tested and confirmed, the download link for the playlist player on this site:
http://www.nightvalepresents.com/aliceisntdead
always downloads the teaser audio.
As you know, when this embed loads it initial shows a specific episode (in this case, let's say the latest episode) along with a list of other episodes. You can then click on one of the other episodes to update the embeddable player and listen to the chosen episode. The issue occurs when one clicks the "download" button in the player. When you click the download button, a link saying "You can also download the audio file if you're on a computer" appears. If you click that link, a download does start. However, the download is always for the initial episode (in this case, the latest episode) that the embed loaded with, not the episode that you chose from the list.

We got this as a bug report from a listener, and I confirmed it on my end. The listener stated that this problem only started happening recently, but could not give an exact date.

Gen-Z is also filing tickets about the player on http://www.bestrobotever.com/pants-on-fire/
https://prx.zendesk.com/agent/tickets/101334


Add components without cms

Description
Adds Components,Payload CMS Collection, global configuration for tool data collections.
To test this PR,

Run the development server, register tools, people, organisation pages under resources page.
Navigate to the set up pages.
Test out the pages.

Closes #414
Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)

Screenshots

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation

I have separated the components from the main PR and opened this PR against main.

Added mock data for visualisation of the pages.
Once the CMS is done, ecosystemJson file will be deleted.
For single page view, it will default to the first element(Just not to add complexity on fetching mock data)

cc @kilemensi @kelvinkipruto

@koechkevin

The sort filter labels do not match the dropdown options when selected

@kelvinkipruto add colour

Are we updating the PR to go with the Slack discussion @koechkevin ?

Are we updating the PR to go with the Slack discussion @koechkevin ?

I See the Single tool page has changed since the beginning of conversation.
Donors list now includes images. There are dividers introduced so I think it is still due for review.

Are we updating the PR to go with the Slack discussion @koechkevin ?

I See the Single tool page has changed since the beginning of the conversation.

Donors list now includes images. There are dividers introduced so I think it is still due for review.

Yes it has but I'm not talking about that per se. I was asking about the card linking to internal page @koechkevin

Yes

...

Yes

Yes you've updated it @koechkevin or yes you're going to update it?

I am updating it

...

Yes

Yes you've updated it @koechkevin or yes you're going to update it?

I am updating it

Getting tools page breadcrumbs on another page is becoming a challeng

👍🏽

I still see Contribute and Go to Repo links but they both point to Github Repo. Do we need 2 links for this?
Contributors like now point directly to Github e.g. kilemensi directly points to github.com/kilemensi. They should be pointing to people page on the site e.g. /resources/people/github-kilemensi instead.

I asked this in the design channel  sakina will be responding to it

Getting tools page breadcrumbs on another page is becoming a challeng

Can you describe the issue @koechkevin ?

challeng

Getting tools page breadcrumbs on another page is becoming a challenge

Can you describe the issue @koechkevin ?

If I am processing organisations and I have tools attached to organisation. Getting the route to the single tool is where the challenge existed.
For now, I am using /resources/tools/slug but it is not a guarantee that tools list is under /resources/ @kilemensi

If I am processing organisations and I have tools attached to organisation. Getting the route to the single tool is where the challenge existed.
For now, I am using /resources/tools/slug but it is not a guarantee that tools list is under /resources/ @kilemensi

If you're processing these in the backend @koechkevin, you should be able to load tools page via api or request.payload, no?

Ready @kilemensi


Update meta-analysis.md

🚀 Deployed on https://66a8628fa7aa15cc182ec16a--cozy-fox-0defec.netlify.app


feat: skip network id check for subnets

Closes https://github.com/hirosystems/explorer/issues/1171

@obycode would you mind testing this PR please 🙏


viewId is cleared upon every AD_BREAK_ events

Upon heavy usage of our video data by building different dashboards with multiple widgets, we noticed that some of our events had no viewIds during ads.
After a bit of research, we stumbled upon this line in the library: https://github.com/newrelic/video-agent-android/blob/master/NewRelicVideoCore/src/main/java/com/newrelic/videoagent/core/tracker/NRVideoTracker.java#L197
The viewId is actually cleared on any AD_BREAK_* event, which kind of skew our data when playing around for widget related to ads.
What is the reasoning behind this approach? We noticed iOS also doing it, but not Web.
Please note, I will enter the same issue in both repositories (iOS and Android).

Fixed in https://github.com/newrelic/video-agent-android/commit/19aa5a718c4cb9afdaa778a2d3ee15a579c7b9ca


Update CKAN example to use new portaljs components (CKAN example 2021)

We already have examples/catalog and we need to bring it up to date ...
Acceptance

[ ] examples/catalog is updated to using portaljs components where relevant
[ ] deployed and working

Tasks
Analysis

[ ] Decide whether we want to adapt metastore lib or not ... (may just be simpler for people to use the core client library to get what they need ...)

[ ] in this case current metastore-lib-js really becomes github-dataset-store-js ...
[ ] can use ckan.js for ckan wrapper (and maybe merge ckan-client-js ...)

@risenW i believe we have already done a bit of this? Can you confirm ...

@risenW I've already started looking into this. I'm assuming that latest work is in the main branch but if you have any work done for it, please share.

I have deployed the latest home page changes here - https://catalog-portal-js-msd63kmoe-datopian1.vercel.app/
Any idea why CSS is broken in production while it works fine in dev mode?
cc @risenW @rufuspollock

@risenW i believe we have already done a bit of this? Can you confirm ...

Yes, see https://github.com/datopian/portal.js/pull/566

I have deployed the latest home page changes here - https://catalog-portal-js-msd63kmoe-datopian1.vercel.app/
Any idea why CSS is broken in production while it works fine in dev mode?
cc @risenW @rufuspollock

It probably has to do with tailwind purging. @rufuspollock did some work https://github.com/datopian/portal.js/issues/571 and https://github.com/datopian/portal.js/commit/42638c95ad9c58dd06493ccedf869894eb894ad4 on this.

@anuveyatsu any update on this?

@rufuspollock css issues mostly resolved but still fixing dataset/resource pages. Latest work is in https://catalog-portal-js-datopian1.vercel.app/

@anuveyatsu great - when will this be finished and live?
[Also PS: as said last week we don't need to (re)use most of the "core" components e.g. Nav etc (that's not really needed in core). We can just create the React components in this example. Of course, stuff like Table view can be reused ...]

The latest version is deployed now:
https://catalog-portal-js.vercel.app
For dataset/resource pages, please, use population and/or GDP datasets because only those are pushed to DataStore at the moment:

Dataset page: https://catalog-portal-js.vercel.app/@datopian-support/population-data
Resource page: https://catalog-portal-js.vercel.app/@datopian-support/population-data/r/Population (using core Table component which has some issues, e.g., table column width is weird)

Note that we still have some layout/CSS issues but I think they are minor.
Re metastore lib, note that we're using Apollo client: https://www.apollographql.com/docs/react/api/link/apollo-link-rest/ so I think ckan.js doesn't work for this case, eg, we want to use CKAN API directly.
cc @rufuspollock @risenW

FIXED. (And now obsoleted by a new version of ckan example).


phantun version0.5

server and client can connect one time?then closed.

Not sure, please provide some tcpdump if possible.
If Phantun can connect successfully once, it should not have difficulty connecting later. So there might be some other issues along the network path between client and server, try investigate first.

i known why it happened when the wireguard config file use allowed ip <IP_ADDRESS>/0 ,phantun server and client were abnormal.

Yes, you probably need static route in this case to make sure Phantun server's IP leaves from the default network interface.


⚠ pishem-otzivi has degraded performance

In fdb1b78, pishem-otzivi (https://пишем-отзывы.рф/) experienced degraded performance:

HTTP code: 200
Response time: 12215 ms

Resolved: pishem-otzivi performance has improved in afc27d4.


Class extension of proxy without construct trap fix #4729

Proxy trap function when there's no construct trap was always making a new object as the "this" to use - in the case of a super call this would break the class inheritance chain.
Currently CC's behaviour on this differers from jsc, v8 and sm. This fix brings CC into line with the others.
Should fix #4729

@dotnet-bot test OSX _no_jit_shared_osx_osx_test

@boingoing thanks for the review. I’m afraid I’m without a computer for the next week so I won’t be able to update this for a little while feel free to adopt it if you want to close it otherwise I will update next week.

@boingoing I've updated to latest and switched that test to assert.isUndefined instead of throws - it does feel odd to me BUT it's the same behaviour as v8, SM and jsc.

@dotnet-bot test OSX _no_jit_shared_osx_osx_test please
@dotnet-bot test Ubuntu shared_ubuntu_linux_test please
@dotnet-bot test Ubuntu static_ubuntu_linux_release please

Test failure seems to be a problem with CI rather than anything to do with this edit. Please let me know if/when you want me to update again or if you'd like me to do anything else.

@dotnet-bot test OSX _no_jit_shared_osx_osx test

@dotnet-bot test OSX _no_jit_shared_osx_osx test please

@dotnet-bot test OSX _no_jit_shared_osx_osx_test please

@rhuanjl The OSX test failures are a known failure in our CI and not due to your changes. If you could rebase this change on top of master to get it in-sync, I can marshal it through.

@boingoing rebased as requested

@rhuanjl Thanks for your contribution, this has landed in master.

Thanks! Do you all know which build of ChakraNode this will show up in?

You can get it from node-chakracore's chakracore-master branch if you want to build it yourself. The nightly builds of node-chakracore come from the master branch which tracks a stable chakracore branch, so it won't show up there until we make a new stable branch.


The enum values are not generated in any HTML document.

Looks like we need to create a separate .yml file for the enum definition.


support using Cartopy with facet grids

Currently, I don't think it is possible to specify a Cartopy projection for facet grid plots.
It would be nice to be able to specify either the subplots array including Cartopy projections (e.g. ax=axes) or a projection key word argument via (subplots_kw=dict(projection=...)) directly when using the xray's facet grid.

:+1: I got this working with Seaborn's FacetGrid, so it should be pretty straightforward to port to xray. That's what this example is all about:
http://stanford.edu/~mwaskom/software/seaborn/examples/facets_with_custom_projection.html
(The example there doesn't use cartopy to avoid a build dependency.)


no_std support

Alternative to #223.
As far as I can see, we only need std to implement Error and testing, otherwise it's completely out of the picture.
CI still needs to be adjusted.

I wasn't sure what else to do with CI, just covering all the bases here I guess.


Improve FemField evalulation and small fixes

Fixes #192 and #188

@yguclu can you pull this branch and run python -m pytest psydac/mapping/tests/test_discrete_mapping ? This test failed on github actions but works everytime on my computer.

Thank, you, there was an error in kernels.py but because I had not repycellised it, it didn't fail. It should be fixed in the commit I'm about to push.


[GUI-v2] Default color for attributes values in line, bar, and area charts

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] support request

Do you want to request a feature or report a bug?

bug

What is the current behavior?

Although there is a default color for the selected attribute, the points on the graph are shown in white.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

What is the expected behavior?

use the default color if a new color is not selected

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Version: 0.6.0-rc.1
Environment: kubernetes, docker-compose
Operating system: Ubuntu 20.04

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

#1997

Docker-compose

K8s


Try to rerender recipe

Rerender

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin , please rerender

Hi! This is the friendly automated conda-forge-webservice.
I rerendered the feedstock and it seems to be already up-to-date.

@jakirkham Do you know why it failed and now it is passing? Since I modified nothing... very weird...

@marcelotrevisani: It failed before with:
+ touch /home/conda/feedstock_root/build_artifacts/conda-forge-build-done
touch: cannot touch `/home/conda/feedstock_root/build_artifacts/conda-forge-build-done': No such file or directory
Exited with code 1

This was actually a conda bug that was fixed by conda 4.5.3, which was pulled in automatically without needing a rerender.
The failure was also just cosmetic; the build is up and accessible.

@dougalsutherland Thanks! I didn't know that! :)

FWIW triggered a fresh build to clear the failed status. Expect it should pass.