Add RecordInput documentation to tf.contrib.framework

This fix tries to address the issue raised in #10622 where the RecordInput is not available in the documentation.
As was suggested in #10622, this fix exposes RecordInput to tf.contrib (tf.contrib.framework) so that docs could shown up.
After this change and run with:
bazel run tools/docs:generate --
           --src_dir="$(pwd)/docs_src/"
           --output_dir=/tmp/tfdocs/

The documentation correctly shown up in:
/tmp/tfdocs/api_docs/python/tf/contrib/framework/RecordInput.md
This fix fixes #10622.
Signed-off-by: Yong Tang<EMAIL_ADDRESS>

Nagging Assignee @andrewharp: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

The PR has been rebased to resolve merge conflicts.

Nagging Assignee @andrewharp: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @andrewharp: It has been 36 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @andrewharp: It has been 51 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @andrewharp: It has been 66 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @andrewharp: It has been 81 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @andrewharp: It has been 111 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.


Update tekton to label committime on image for s2itekton

tekton s2i task provides no builds, buildConfig etc. The
only artifact is an image.  Enhance the labels2i tekton task
to also annotate w/ the commit time.
When creating a result in tekton for the commit time the result
has a new line.  Use strip() on the annotation label.
Testing Instructions
Use the image provider for the committime exporter, and execute
./demo-tekton.sh -g https://github.com/konveyor/pelorus -b s2i -r master

results:
warnings.warn(
08-31-2022 11:54:05 INFO     Loading ImageCommittimeConfig, inputs below:
08-31-2022 11:54:05 INFO     date_format='%a %b %d %H:%M:%S %Y %z', default value; COMMIT_DATE_FORMAT was not set
08-31-2022 11:54:05 INFO     =====Using Image Collector=====
08-31-2022 11:54:05 DEBUG    /home/whayutin/OPENSHIFT/git/KONVEYOR/PELORUS/upstream/pelorus/exporters/committime/collector_image.py:162 generate_metrics() Searching for images with label: app.kubernetes.io/name
/home/whayutin/OPENSHIFT/git/KONVEYOR/PELORUS/upstream/pelorus/.venv/lib64/python3.10/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'api.cluster-wdh07052022a.wdh07052022a.mg.dog8code.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
/home/whayutin/OPENSHIFT/git/KONVEYOR/PELORUS/upstream/pelorus/.venv/lib64/python3.10/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'api.cluster-wdh07052022a.wdh07052022a.mg.dog8code.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
08-31-2022 11:54:05 DEBUG    /home/whayutin/OPENSHIFT/git/KONVEYOR/PELORUS/upstream/pelorus/exporters/committime/collector_image.py:143 _set_commit_time_from_annotations() Commit time for image sha256:9e69d20ceeab791da3781abf263c3a2c18e850f23d5b4f9fbf964a1ec9469fb1 provided by 'io.openshift.build.commit.date' annotation: Tue Aug 30 14:13:13 2022 -0400
08-31-2022 11:54:05 DEBUG    /home/whayutin/OPENSHIFT/git/KONVEYOR/PELORUS/upstream/pelorus/exporters/committime/collector_base.py:277 _set_commit_hash_from_annotations() Commit hash for build None provided by 'io.openshift.build.commit.id' annotation: f0be306b70e9156a0a5a7f9270a8060a82e039c1
08-31-2022 11:54:05 DEBUG    /home/whayutin/OPENSHIFT/git/KONVEYOR/PELORUS/upstream/pelorus/exporters/committime/collector_image.py:202 _get_metrics_by_apps_from_images() Adding metric for app basic-python-tekton
08-31-2022 11:54:05 DEBUG    /home/whayutin/OPENSHIFT/git/KONVEYOR/PELORUS/upstream/pelorus/exporters/committime/collector_image.py:143 _set_commit_time_from_annotations() Commit time for image sha256:eabb013b89e66a8b7e717c831841ec39cafe4bfe7f5e0d678b17ad9e59141465 provided by 'io.openshift.build.commit.date' annotation: Tue Aug 30 14:13:13 2022 -0400
08-31-2022 11:54:05 DEBUG    /home/whayutin/OPENSHIFT/git/KONVEYOR/PELORUS/upstream/pelorus/exporters/committime/collector_base.py:277 _set_commit_hash_from_annotations() Commit hash for build None provided by 'io.openshift.build.commit.id' annotation: f0be306b70e9156a0a5a7f9270a8060a82e039c1
08-31-2022 11:54:05 DEBUG    /home/whayutin/OPENSHIFT/git/KONVEYOR/PELORUS/upstream/pelorus/exporters/committime/collector_image.py:202 _get_metrics_by_apps_from_images() Adding metric for app basic-python-tekton
08-31-2022 11:54:05 INFO     Collected commit_timestamp{ namespace=None, app=basic-python-tekton, commit=f0be306b70e9156a0a5a7f9270a8060a82e039c1, image_sha=sha256:9e69d20ceeab791da3781abf263c3a2c18e850f23d5b4f9fbf964a1ec9469fb1 }<PHONE_NUMBER>.0
08-31-2022 11:54:05 INFO     Collected commit_timestamp{ namespace=None, app=basic-python-tekton, commit=f0be306b70e9156a0a5a7f9270a8060a82e039c1, image_sha=sha256:eabb013b89e66a8b7e717c831841ec39cafe4bfe7f5e0d678b17ad9e59141465 }<PHONE_NUMBER>.0

/lgtm

/lgtm

/test 4.9-e2e-openshift


Does ./signin.sh still work for you?

Hi,
I'm trying to use ./signin.sh script, but it does not seem to work for me. I give it a valid phone, email and name, but it does not result in an SMS being sent to me. This is how the result curl invocation looks like:
curl --netrc-file ./netrc \
    -H 'Content-Type: application/json' \
    -H 'Device-Id: ce34e5d8aef44f1e97953bafcea9aee9' \
    -H 'Device-OS: Android 4.4.4' \
    -H 'Version: 2' \
    -H 'ClientVersion: <IP_ADDRESS>' \
    -A okhttp/3.0.1 \
    http://proverkacheka.nalog.ru:9999/v1/mobile/users/signup \
    -d '{"phone":"+79yyxxxxxxx","email":"xxx@xxx.xxx","name":"xxx"}'

curl: (52) Empty reply from server

Could you please check if it works on your side? Or do I do something wrong?
P. S. What is the official language of the project? Shouldn't it stick to either Russian or English instead of having a mixture of both?

@eisaev
Sorry for bothering you, but let me bump the question.

Yes it works, but http should be replaced with https into all scripts.


Create object has a properties field that is too narrow

https://www.notion.so/Create-object-has-a-properties-field-that-is-too-narrow-ddcfbff2844c4f5595533130083ce3a3

i did not have  notion access pls provide


SCB.ICSR.VECTACTIVE is 9 bits, not 8

Closes #332

r? @therealprof
(rust-highfive has picked a reviewer for you, use r? to override)

rebased on top of the asm PR to fix CI

Thanks! I think we can merge this now that master is explicitly for 0.8 development, but could you add a changelog entry, especially highlighting the - 16 change to irq number?

whoops, sure! I also added an entry for my change in #367 since I forgot that too.


Rename addon to ember-font-awesome

@homu r+

:pushpin: Commit 58ab333 has been approved by martndemus

:zap: Test exempted - status


Same predict

During the training,i found that the predictive value is always the same and the accuracy will not improve.why?

the learning rate is too small.


No module named src

Getting this error:
Traceback (most recent call last):
  File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\Scripts\aicommit.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'src'

Collecting src
  Using cached src-0.0.7.zip (6.3 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: src
  Building wheel for src (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [60 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib
      creating build\lib\src
      copying src\__init__.py -> build\lib\src
      running egg_info
      writing src.egg-info\PKG-INFO
      writing dependency_links to src.egg-info\dependency_links.txt
      deleting src.egg-info\entry_points.txt
      writing requirements to src.egg-info\requires.txt
      writing top-level names to src.egg-info\top_level.txt
      reading manifest file 'src.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE.rst'
      writing manifest file 'src.egg-info\SOURCES.txt'
      C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\setuptools\_distutils\dist.py:947: SetuptoolsDeprecationWarning: setup.py install is deprecated.
      !!

              ********************************************************************************
              Please avoid running ``setup.py`` directly.
              Instead, use pypa/build, pypa/installer or other
              standards-based tools.

              See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
              ********************************************************************************

      !!
        command.initialize_options()
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Ricky\AppData\Local\Temp\pip-install-nngm3wij\src_0ea15af34b754f7cb65a60607309c962\setup.py", line 70, in <module>
          setup(
        File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\setuptools\__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
        File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
          return run_commands(dist)
        File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
          dist.run_commands()
        File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\setuptools\dist.py", line 1234, in run_command
          super().run_command(command)
        File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\wheel\bdist_wheel.py", line 345, in run
          install = self.reinitialize_command("install", reinit_subcommands=True)
        File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\setuptools\__init__.py", line 220, in reinitialize_command
          cmd = _Command.reinitialize_command(self, command, reinit_subcommands)
        File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\setuptools\_distutils\cmd.py", line 311, in reinitialize_command
          return self.distribution.reinitialize_command(command, reinit_subcommands)
        File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\setuptools\_distutils\dist.py", line 953, in reinitialize_command
          for sub in command.get_sub_commands():
        File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\setuptools\_distutils\cmd.py", line 329, in get_sub_commands
          if method is None or method(self):
        File "C:\Users\Ricky\AppData\Local\Programs\Python\Python39-32\lib\site-packages\setuptools\_distutils\command\install.py", line 787, in has_lib
          self.distribution.has_pure_modules() or self.distribution.has_ext_modules()
      AttributeError: 'NoneType' object has no attribute 'has_pure_modules'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for src
  Running setup.py clean for src
Failed to build src
ERROR: Could not build wheels for src, which is required to install pyproject.toml-based projects

Ended up building from source and got new errors, but managed to fix them.
Error I had was this:
ImportError: attempted relative import with no known parent package
fix:
https://sebhastian.com/attempted-relative-import-with-no-known-parent-package/
Had to remove the extra '.' referenced in the following files:
aicommit.py
main.py


updated syncHooks to asyncHooks

resolves #4

thx for your contribution. the only thing (that wasn't really specified to be fair), is that I think we should opt for AsyncSeries instead of AsyncParallel at some points. @davidthorand thoughts?


add 26 more maps, so there are 3 acts in total

RIght now there are 13 maps with titles based off of the art of war, and designs from this list of f1 tracks:
https://en.wikipedia.org/wiki/Suzuka_International_Racing_Course
https://en.wikipedia.org/wiki/Circuito_do_Estoril
https://en.wikipedia.org/wiki/Riverside_International_Raceway
https://en.wikipedia.org/wiki/Monza_Circuit
https://en.wikipedia.org/wiki/Hungaroring
https://en.wikipedia.org/wiki/Brands_Hatch
https://en.wikipedia.org/wiki/Circuit_de_Spa-Francorchamps
https://en.wikipedia.org/wiki/Circuito_de_Jerez
https://en.wikipedia.org/wiki/Red_Bull_Ring
https://en.wikipedia.org/wiki/Zeltweg_Air_Base
https://en.wikipedia.org/wiki/Imola_Circuit
https://en.wikipedia.org/wiki/Watkins_Glen_International
https://en.wikipedia.org/wiki/Sepang_International_Circuit
However, there are no fun tracks that incorporate the bounce pad. And I feel like utilizing it as part of the map could make for some cool map design. Right now I only use them as obstacles or on the edge of the map.

For now I will close this. I might add more maps in the future.


Multiple magazines feed from the wrong bullet type

The "10rnd 7.62x54mm SVD magazine" is supposed to reload with 7.62x54mm bullets, but instead uses 7.62x39mm.
The "20rnd 6.5mm magazine" is supposed to reload with 6.5mm bullets, but instead uses 5.56x45mm.
To Reproduce

Unload the appropriate mags, and see what bullets they give you.

Expected behavior
You are supposed to be able to reload with the right bullets.
Versions

Modern Warfare Cubed: MWC-0.1-Dev-12
Forge: 1.12.2 - <IP_ADDRESS>59

@Desoroxxx Issue resolved.


FEATURE - Remove label and icon in control property editor

As an tools developer,
I want to be able to integrate the control property editor without a name/logo,
so that I so that I can more freely use it
Description
There is no need to have a name in the control property editor, its usage will be implied by the calling VSCode task or context menu entry or other link.
The browser tab will have no icon either and the document title will be: Editing <app_name>.
Acceptance Criteria
GivenWhenThen format (https://martinfowler.com/bliki/GivenWhenThen.html)
Given I start the control property editor
when it is started
then CPE will open and have no name and logo.
Tasks

[ ] Remove label and logo
[ ] Unit Tests added
[ ] Test Cases defined

We still need to support both scenarios, when it is opened via VSCode and browser.


Kubuntu is not supported

It's surprising that Dochat doesn't run on Kubuntu because I thought Kubuntu = Ubuntu + KDE.
Here's my output after running curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \   | DOCHAT_SKIP_PULL=true bash
(base) ➜  ~ curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh \
  | DOCHAT_SKIP_PULL=true bash

       ____         ____ _           _
      |  _ \  ___  / ___| |__   __ _| |_
      | | | |/ _ \| |   | '_ \ / _` | __|
      | |_| | (_) | |___| | | | (_| | |_
      |____/ \___/ \____|_| |_|\__,_|\__|

      https://github.com/huan/docker-wechat

                +--------------+
               /|             /|
              / |            / |
             *--+-----------*  |
             |  |           |  |
             |  |   盒装    |  |
             |  |   微信    |  |
             |  +-----------+--+
             | /            | /
             |/             |/
             *--------------*

      DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

      📦 a Docker image
      🤐 for running PC Windows WeChat
      💻 on your Linux desktop
      💖 by one-line of command

🚀 Starting DoChat /dɑɑˈtʃæt/ ...

docker: unknown server OS: .
See 'docker run --help'.

Running with other or no env variables set will leads to
(base) ➜  ~ curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | bash

       ____         ____ _           _
      |  _ \  ___  / ___| |__   __ _| |_
      | | | |/ _ \| |   | '_ \ / _` | __|
      | |_| | (_) | |___| | | | (_| | |_
      |____/ \___/ \____|_| |_|\__,_|\__|

      https://github.com/huan/docker-wechat

                +--------------+
               /|             /|
              / |            / |
             *--+-----------*  |
             |  |           |  |
             |  |   盒装    |  |
             |  |   微信    |  |
             |  +-----------+--+
             | /            | /
             |/             |/
             *--------------*

      DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

      📦 a Docker image
      🤐 for running PC Windows WeChat
      💻 on your Linux desktop
      💖 by one-line of command

🚀 Pulling the docker image...

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=zixia%2Fwechat&tag=<IP_ADDRESS>: dial unix /var/run/docker.sock: connect: permission denied

Never mind, it seems I didn't setup docker properly: https://www.digitalocean.com/community/questions/how-to-fix-docker-got-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket

However, I am still encountering same issue #136

@huan For some other reason, I change my OS to Elementary OS, and DoChat at least run, but it has the following issue when I click any(?) button in the app for the first time.

At least, I can successfully send Chinese text to friend :D

@leo-liuzy Thanks for the kindly reporting!
Please let me know if you have any new found, appreciate it.


Typo "Azure files service"→"Azure Files service"

https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/scenarios/wvd/eslz-network-topology-and-connectivity https://github.com/MicrosoftDocs/cloud-adoption-framework/blob/main/docs/scenarios/wvd/eslz-network-topology-and-connectivity.md #PingMSFTDocs

Docs Build status updates of commit c904dd2:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/scenarios/wvd/eslz-network-topology-and-connectivity.md
:white_check_mark:Succeeded

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

@danycontre
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off

@MicrosoftDocs/cloud-architecture-content-team-pr-reviewers - Please review the proposed changes. If you want to move forward with the content, add a sign-off.
#label:"aq-pr-triaged"
#label:"pending-content-team/business-approval"
Cc: @MicrosoftDocs/public-repo-pr-review-team

#label:"cact-review-in-progress"

CACT #sign-off
#remove-label:"do-not-merge"
#label:"ready-to-merge"


Use COUNT(*) instead of COUNT(1)

Closes #56

Codecov Report

Merging #59 (927280b) into main (e49458e) will increase coverage by 0.56%.
The diff coverage is 98.06%.

@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
+ Coverage   89.74%   90.31%   +0.56%
==========================================
  Files          42       42
  Lines        1492     1590      +98
==========================================
+ Hits         1339     1436      +97
- Misses        153      154       +1

Impacted Files
Coverage Δ

apgorm/__init__.py
100.00% <ø> (ø)

apgorm/migrations/create_migration.py
95.23% <ø> (ø)

apgorm/sql/generators/query.py
42.85% <33.33%> (ø)

apgorm/database.py
99.09% <95.45%> (-0.91%)
:arrow_down:

apgorm/connection.py
100.00% <100.00%> (ø)

apgorm/constraints/check.py
80.00% <100.00%> (+2.22%)
:arrow_up:

apgorm/constraints/constraint.py
100.00% <100.00%> (ø)

apgorm/constraints/exclude.py
100.00% <100.00%> (ø)

apgorm/constraints/foreign_key.py
64.28% <100.00%> (+0.87%)
:arrow_up:

apgorm/constraints/primary_key.py
100.00% <100.00%> (ø)

... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c93ea70...927280b. Read the comment docs.


Allow Guests to view Articles

Currently, the API on the server allows anybody (regardless if signed in or not) to retrieve a list of articles. However, the client requires the user to be logged in to view the articles. This makes it so visitors that are not authenticated to view the articles.
This goes along with #780 that makes the TopBar visible by default.

LGTM. I've tested this and it works as expected.
@codydaig As a guest (not logged in)... I did notice that if there aren't any Articles in the list, then the No articles yet... is displayed with a link to articles.create state. I don't necessarily think this is an issue. It could be a way to encourage registration/login. Just wanted to point this out, in case others have a difference of opinion.

doesn't it also require update on the server side to allow articles to be retrieved?

@lirantal The ACL for the Articles api was already configured to allow Guests to retrieve Articles. This PR is merely matching the front-end behavior to reflect this.

Got it. That PR is already merged? :) I may have lost track

@lirantal Yes, I believe the back-end ACL's have been this way for some time. Either way, it's definitely in master now.

Ahh ok, thanks Michael.
@codydaig take a look at the comments from @mleanos and I'll merge this in

@codydaig @mleanos @lirantal does anybody else feel like the view that we have now is really meant for someone managing the articles, not intended for displaying to users?
The API is configured correctly, and the UI does prevent access to the list of articles, but I feel like this is intentional?
Are we "ok" with exposing the same "admin" type of interface (list) to users?  Perhaps this is a good time to create the articles admin?

@rhutchison +1 on implementing the Admin feature for Articles.
I can see the need for a separate view for Guests. Would definitely make it more secure and could provide more focus for both views; allowing for more robust feature sets in each.

Just to make it clear that the admin module is there as an example module for the framework, so whatever we choose to enhance there on the articles area (which IMO is blessed) should be contained to that area.

@rhutchison @mleanos Is there anything that I need to change in this PR?

@codydaig I think not. Since this is technically a bug in the front-end routing config.
After this is merged, we will need to discuss the Admin feature for Articles & the separation of the articles list views for Guests, and authenticated users. Each should be it's own PR.

Ok great, I'll merge.
Thanks guys.


Will you please tell me how you created those beautiful featurettes 😙?


regression-test Fix partial update concurrency conflict case

Proposed changes
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


HDDS-4816. Add UsageInfoSubcommand to get Datanode usage information.

What changes were proposed in this pull request?
The UsageInfoSubcommand is a datanode admin sub command that can be used to query information such as Capacity, SCMUsed, and Remaining space in a datanode. IP address or UUID is used to get the datanode.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4816
How was this patch tested?
Manually tested using docker-compose. Screenshots have been attached.
Initial, before adding keys:

After adding keys:

Using UUID:

@siddhantsangwan Thanks for the contribution! I have committed the PR to master branch.


cmd/compile: index out of bounds in code the compiler can prove is never executed

What version of Go are you using (go version)?

go version devel go1.20-3a41094107 Wed Nov 9 06:30:59 2022 +0000 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ncw/.cache/go-build"
GOENV="/home/ncw/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/ncw/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/ncw/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/go/go-tip"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/go/go-tip/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="devel go1.20-3a41094107 Wed Nov 9 06:30:59 2022 +0000"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3118064585=/tmp/go-build -gno-record-gcc-switches"

What did you do?
I attempted to compile this program which implements fixed point arithmetic. The number of terms is a compile time constant and I was attempting to unroll the loop. Playground.
package main

import "math/bits"

// terms in fixed point - compile time constant
const terms = 2

// fixed point 0..1
type fixed [terms]uint64

// Add a + b mod 1
func add(a, b fixed) (result fixed) {
	var carry uint64
	// Attempt to unroll loop
	result[0], carry = bits.Add64(a[0], b[0], 0)
	if terms > 1 {
		result[1], carry = bits.Add64(a[1], b[1], carry)
	}
	if terms > 2 {
		result[2], carry = bits.Add64(a[2], b[2], carry)
	}
	if terms > 3 {
		result[3], carry = bits.Add64(a[3], b[3], carry)
	}
	// ignore carry
	return result
}

What did you expect to see?
I hoped it would compile as terms is a compile time constant (2), so the compiler should be able to prove that this code is never executed, and hence the out of bounds array accesses never happen
	if terms > 2 {
		result[2], carry = bits.Add64(a[2], b[2], carry) // line 20
	}
	if terms > 3 {
		result[3], carry = bits.Add64(a[3], b[3], carry) // line 23
	}

What did you see instead?
I get the following compiler errors
./compile-unroll-bug.go:20:35: invalid argument: index 2 out of bounds [0:2]
./compile-unroll-bug.go:23:35: invalid argument: index 3 out of bounds [0:2]

CC @golang/compiler

I believe this restriction of failing to index into fixed-length array with a constant is something that's come up before and I think it's actually part of the spec (https://go.dev/ref/spec#Index_expressions). However, I cannot find an issue discussing this in more detail.
I'm not certain there's anything to do here short of filing a proposal for a language change.

Yeah this is working according to the spec.

Just to give a slightly more satisfying answer: I believe the reason why is because the Go compiler generally disallows programs that are statically known to panic (e.g. divide by constant zero will fail to compile). (Thanks to @cherrymui for pointing that out.) While it is possible to write code that the compiler can prove won't panic statically, making the language spec depend on that mixes semantic specification and implementation in a way that's restrictive.
Perhaps someone with better knowledge of the history of this and the spec can chime in.

Thanks for the explanation.
The spec says this about index expressions of the form a[x]

For a of array type A:

a constant index must be in range

Which does indeed seem very clear.
I guess I've been writing too much Zig code!


Compile examples CSS with Sass using BS variables and mixins

Thanks, but the examples are intended to be 100% usable without compilation of any kind. Most of the examples are also not that complex and wouldn't benefit from Sass honestly.

Hi @mdo, i respect your choice and understand your motivation, but i do not agree with it. I think compiling the examples do not have any drawbacks. You can still use the compiled code as before, On the other hand it is a test for the code (mixins),  build process and people can use the examples to find out how to extend and modify the code leveraging Sass.
dashboard.scss uses the media query mixins, the hover mixin and the $enable-flex var, also see the comments of https://github.com/twbs/bootstrap/pull/18707


redefinition of 'LightingData'

Hello, I got an error like below, can you help me with that;
[Error] [None] [13:02:21] [Shader] [Shader] (7) Shader error in 'Universal Render Pipeline/SurfaceShaders/ExampleSurfaceShader': redefinition of 'LightingData' at Assets/NiloCat/NiloURPSurfaceShader/Core/NiloURPSurfaceShaderInclude.hlsl(231) (on d3d11)

...ok i've fixed it changing LightingData to NiloLightingData in your shaders. is there any way to fix it? or, is it okay?

it is ok


Hotfixes needed for 2.10.1

[x] #2439
[x] #2459
[ ] #2437
[ ] #2476

@misaochan Is #1971 also required for 2.10.1?

Responded on the issue.

Closing now 2.10.2 released and all hotfixes made


dart: 3.2.0 -> 3.2.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for dart is: Scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps
meta.homepage for dart is: https://dart.dev
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 3.2.3 with grep in /nix/store/h8x45x9bx9sycrjl1lccms02fxc4xh8d-dart-3.2.3
found 3.2.3 in filename of file in /nix/store/h8x45x9bx9sycrjl1lccms02fxc4xh8d-dart-3.2.3

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

16 total rebuild path(s)

16 package rebuild(s)

First fifty rebuilds by attrpath
dart
dart-sass
dart-sass-embedded
discourse
discourseAllPlugins
domine
protoc-gen-dart
python310Packages.nbdev
python311Packages.nbdev
quarto
quartoMinimal
rstudio
rstudio-server
rstudioServerWrapper
rstudioWrapper
shopware-cli

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/h8x45x9bx9sycrjl1lccms02fxc4xh8d-dart-3.2.3 \
  --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 dart https://github.com/r-ryantm/nixpkgs/archive/9ee82fa78d0c9750f86e6e38349dd51c20306537.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/9ee82fa78d0c9750f86e6e38349dd51c20306537#dart

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/h8x45x9bx9sycrjl1lccms02fxc4xh8d-dart-3.2.3
ls -la /nix/store/h8x45x9bx9sycrjl1lccms02fxc4xh8d-dart-3.2.3/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

3 packages failed to build:

dart-sass-embedded
discourse
discourseAllPlugins

13 packages built:

dart
dart-sass
domine
protoc-gen-dart
python310Packages.nbdev
python311Packages.nbdev
quarto
quartoMinimal
rstudio
rstudio-server
rstudioServerWrapper
rstudioWrapper
shopware-cli

Maintainer pings
cc @GRBurst for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for dart is: Scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps
meta.homepage for dart is: https://dart.dev
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 3.2.4 with grep in /nix/store/da6rhb8ad9xh5d90sdvhz9wab28w038p-dart-3.2.4
found 3.2.4 in filename of file in /nix/store/da6rhb8ad9xh5d90sdvhz9wab28w038p-dart-3.2.4

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

16 total rebuild path(s)

16 package rebuild(s)

First fifty rebuilds by attrpath
dart
dart-sass
dart-sass-embedded
discourse
discourseAllPlugins
domine
protoc-gen-dart
python310Packages.nbdev
python311Packages.nbdev
quarto
quartoMinimal
rstudio
rstudio-server
rstudioServerWrapper
rstudioWrapper
shopware-cli

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/da6rhb8ad9xh5d90sdvhz9wab28w038p-dart-3.2.4 \
  --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 dart https://github.com/r-ryantm/nixpkgs/archive/f87f329d4f5c601f9b60e98a341eba076509aa4c.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/f87f329d4f5c601f9b60e98a341eba076509aa4c#dart

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/da6rhb8ad9xh5d90sdvhz9wab28w038p-dart-3.2.4
ls -la /nix/store/da6rhb8ad9xh5d90sdvhz9wab28w038p-dart-3.2.4/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

3 packages failed to build:

dart-sass-embedded
discourse
discourseAllPlugins

13 packages built:

dart
dart-sass
domine
protoc-gen-dart
python310Packages.nbdev
python311Packages.nbdev
quarto
quartoMinimal
rstudio
rstudio-server
rstudioServerWrapper
rstudioWrapper
shopware-cli

Maintainer pings
cc @GRBurst for testing.


[BUG] Use third party class as property in pydantic schema

Describe the bug
I have a pydantic schema that needs a third party class (bson.objectid.ObjectID) as a property. For this reason I created a custom validator and encoder as per pydantic documentation.
Code

from bson.objectid import ObjectId
from pydantic import BaseModel
from pydantic import validators
from pydantic.errors import PydanticTypeError
from pydantic.utils import change_exception

class ObjectIdError(PydanticTypeError):
    msg_template = 'value is not a valid bson.objectid.ObjectId'

def object_id_validator(v) -> ObjectId:
    with change_exception(ObjectIdError, ValueError):
        v = ObjectId(v)
    return v

def get_validators() -> None:
    yield validators.not_none_validator
    yield object_id_validator

ObjectId.__get_validators__ = get_validators

def encode_object_id(object_id: ObjectId):
    return str(object_id)

class UserId(BaseModel):
    object_id: ObjectId = None

    class Config:
        json_encoders = {
            ObjectId: encode_object_id
        }

class User(UserId):
    email: str
    salt: str
    hashed_password: str

# Just for testing
user = User(object_id = ObjectId<EMAIL_ADDRESS>salt="12345678", hashed_password="letmein")
print(user.json())
# Outputs:
# {"object_id": "5c7e424225e2971c8c548a86", "email"<EMAIL_ADDRESS>"salt": "12345678", "hashed_password": "letmein"}

As you can see at the bottom of the code, the serialization seems to work just fine. But when I use this schema as an argument (and/or response type) in API operations and then open the automatic documentation, I get presented with an error.
Code

from bson import ObjectId
from fastapi import FastAPI
from user import User, UserId

app = FastAPI()

@app.post("/user", tags=["user"], response_model=UserId)
def create_user(user: User):
    # Create user and return id
    print(user)
    return UserId(objectId=ObjectId())

Log

INFO: ('<IP_ADDRESS>', 2706) - "GET /openapi.json HTTP/1.1" 500
ERROR: Exception in ASGI application
Traceback (most recent call last):
  File "<project-path>\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 373, in run_asgi
    result = await asgi(self.receive, self.send)
  File "<project-path>\venv\lib\site-packages\uvicorn\middleware\debug.py", line 83, in __call__
    raise exc from None
  File "<project-path>\venv\lib\site-packages\uvicorn\middleware\debug.py", line 80, in __call__
    await asgi(receive, self.send)
  File "<project-path>\venv\lib\site-packages\starlette\middleware\errors.py", line 125, in asgi
    raise exc from None
  File "<project-path>\venv\lib\site-packages\starlette\middleware\errors.py", line 103, in asgi
    await asgi(receive, _send)
  File "<project-path>\venv\lib\site-packages\starlette\exceptions.py", line 74, in app
    raise exc from None
  File "<project-path>\venv\lib\site-packages\starlette\exceptions.py", line 63, in app
    await instance(receive, sender)
  File "<project-path>\venv\lib\site-packages\starlette\routing.py", line 43, in awaitable
    response = await run_in_threadpool(func, request)
  File "<project-path>\venv\lib\site-packages\starlette\concurrency.py", line 24, in run_in_threadpool
    return await loop.run_in_executor(None, func, *args)
  File "C:\Program Files (x86)\Python37-32\lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "<project-path>\venv\lib\site-packages\fastapi\applications.py", line 83, in <lambda>
    lambda req: JSONResponse(self.openapi()),
  File "<project-path>\venv\lib\site-packages\fastapi\applications.py", line 75, in openapi
    openapi_prefix=self.openapi_prefix,
  File "<project-path>\venv\lib\site-packages\fastapi\openapi\utils.py", line 230, in get_openapi
    flat_models=flat_models, model_name_map=model_name_map
  File "<project-path>\venv\lib\site-packages\fastapi\utils.py", line 45, in get_model_definitions
    model, model_name_map=model_name_map, ref_prefix=REF_PREFIX
  File "<project-path>\venv\lib\site-packages\pydantic\schema.py", line 461, in model_process_schema
    model, by_alias=by_alias, model_name_map=model_name_map, ref_prefix=ref_prefix
  File "<project-path>\venv\lib\site-packages\pydantic\schema.py", line 482, in model_type_schema
    f, by_alias=by_alias, model_name_map=model_name_map, ref_prefix=ref_prefix
  File "<project-path>\venv\lib\site-packages\pydantic\schema.py", line 238, in field_schema
    ref_prefix=ref_prefix,
  File "<project-path>\venv\lib\site-packages\pydantic\schema.py", line 440, in field_type_schema
    ref_prefix=ref_prefix,
  File "<project-path>\venv\lib\site-packages\pydantic\schema.py", line 643, in field_singleton_schema
    raise ValueError(f'Value not declarable with JSON Schema, field: {field}')
ValueError: Value not declarable with JSON Schema, field: object_id type=ObjectId default=None

To Reproduce
Copy my code and follow the instrcutions given in the "Describe the bug" section.
Expected behavior
No error should occur and the documentation should be able to show the schema correctly.
Environment:

OS: Windows 10
FastAPI: 0.6.3
Python: 3.7.2

Thanks for the report, sorry for the delay.
I see/assume you are using MongoDB, right?
I hope to check and debug it soon, but it might take a bit as I have to set up a stack with mongo (and I don't have a project generator with Mongo just yet).

Thanks for your response.
You are right, I'm using MongoDB.
But the problem isn't related to MongoDB, so I don't think you'll need it to debug the error.
You just need to install the following pip packages:

FastAPI
bson

And then put my first code snippet in a file called user.py the second one into some arbitrary module (e.g. server.py). When you then start the server (e.g. server.py) and then open the automatic documentation in your browser, you should be greeted by the error in the Log accordion above.
Note: I had to slightly modify my code snippets to make it possible to just copy-paste them.

Excellent, I'll use that to debug/develop it.

Was there a conclusion to this? Trying to parse mongos _id field is proving to be quite tricky unless i just delete it before returning the response

@Charlie-iProov not yet, but it's on the backlog.

Not sure this being a bug or a feature.
I'm still digging into fastAPI, but when you're saying:
@app.post("/user", tags=["user"], response_model=UserId)
you're basically declaring that your response will be a UserId, that is:
class UserId(BaseModel):
    object_id: ObjectId = None

if I was on the other side, receiving this response, I would then have to expect this kind of json:
{
  "object_id": ObjectId("5cdc01a6d8893f59a36d9957")
}

which would be pretty strange, since I couldn't have that ObjectId there.
Moreover, having to POST to that endpoint I would have a similar problem, since User inherits from UserId:
@app.post("/user", tags=["user"], response_model=UserId)
def create_user(user: User)

class User(UserId):
    email: str
    salt: str
    hashed_password: str

again, my problem would be what to send as an object_id:
{
  "object_id": ObjectId("5cdc01a6d8893f59a36d9957"),
  "email"<EMAIL_ADDRESS>  "password": "letmein",
  "salt":"12345678"
}

That's why defining custom json_encoders wouldn't help here.

@stefanondisponibile I'm currently working on this PR in Pydantic: https://github.com/samuelcolvin/pydantic/pull/520
It will allow you to declare object_id: str and then FastAPI will take your ObjectId("5cdc01a6d8893f59a36d9957") and convert it to a string automatically.

That's great!

About https://github.com/samuelcolvin/pydantic/pull/520, it was superseded by https://github.com/samuelcolvin/pydantic/pull/562.
While reviewing it I tested with bson, and I realized that it doesn't necessarily fix the problem, but that you can fix it like this:
from bson import ObjectId
from pydantic import BaseModel

class ObjectIdStr(str):
    @classmethod
    def __get_validators__(cls):
        yield cls.validate

    @classmethod
    def validate(cls, v):
        if not isinstance(v, ObjectId):
            raise ValueError("Not a valid ObjectId")
        return str(v)

class UserId(BaseModel):
    object_id: ObjectIdStr = None

class User(UserId):
    email: str
    salt: str
    hashed_password: str

# Just for testing
user = User(object_id = ObjectId<EMAIL_ADDRESS>salt="12345678", hashed_password="letmein")
print(user.json())
# Outputs:
# {"object_id": "5c7e424225e2971c8c548a86", "email"<EMAIL_ADDRESS>"salt": "12345678", "hashed_password": "letmein"}

The trick is, there's no way to declare a JSON Schema for a BSON ObjectId, but you can create a custom type that inherits from a str, so it will be declarable in JSON Schema, and it can take an ObjectId as input.
Then, if you need the ObjectId itself (instead of the str version), you can create another model that has the ObjectId as you declared it before, and copy the values from the input/to the output.

That will do for now, thanks for you effort!
I will also test my example with the changes to Pydantic you referenced when I get around to it.

I'm using the solution proposed by @tiangolo up above, just I preferred doing this:
class ObjectIdStr(str):
    @classmethod
    def __get_validators__(cls):
        yield cls.validate

    @classmethod
    def validate(cls, v):
        try:
            ObjectId(str(v))
        except InvalidId:
            raise ValuerError("Not a valid ObjectId")
        return str(v)

this way I can either pass a valid ObjectId string or an ObjectId instance.
This works pretty nicely also with mongoengine, as you'll be able to pass that ObjectIdStr directly to the db_model, and it will convert the ObjectIdStrings to actual ObjectIds in Mongo.
What I'm striving to understand now, though, is why can't I get an ObjectId back from the jsonable_encoder by setting this in Config's json_encoders property:
from bson import ObjectId
from pydantic import BaseModel
from upabove import ObjectIdStr

class SomeItem(BaseModel):
    some_id: ObjectIdStr

    class Config:
        json_encoders = {ObjectIdStr: lambda x: ObjectId(x)}

Why wouldn't some_id be converted to an ObjectId when calling jsonable_encoder on SomeItem instance? Is it maybe because being some_id a str it won't be passed further down to the custom json_encoders? This even if ObjectIds, are not json serializable.

Okay, so pardon me if I don't make much sense. I face this 'ObjectId' object is not iterable whenever I run the collections.find() functions. Going through the answers here, I'm not sure where to start. I'm new to programming, please bear with me.
Every time I hit the route which is supposed to fetch me data from Mongodb, I getValueError: [TypeError("'ObjectId' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')].
Help

Hi @senjenathaniel ! Are you sure your problem fits this issue? If you could give some more details, and an example of the code you're using, I think someone could give the proper advice :)

from bson import ObjectId
from pydantic import BaseModel
from upabove import ObjectIdStr

class SomeItem(BaseModel):
    some_id: ObjectIdStr

    class Config:
        json_encoders = {ObjectIdStr: lambda x: ObjectId(x)}

Why wouldn't some_id be converted to an ObjectId when calling jsonable_encoder on SomeItem instance? Is it maybe because being some_id a str it won't be passed further down to the custom json_encoders? This even if ObjectIds, are not json serializable.

@stefanondisponibile  Have you solved this issue? I am also getting TypeError: Object of type 'ObjectId' is not JSON serializable though I have defined json_encoders.

+1
INFO:     <IP_ADDRESS>:42104 - "GET /docs HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:42104 - "GET /openapi.json HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/uvicorn/protocols/http/httptools_impl.py", line 372, in run_asgi
    result = await app(self.scope, self.receive, self.send)
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
    return await self.app(scope, receive, send)
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/fastapi/applications.py", line 212, in __call__
    await super().__call__(scope, receive, send)
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/starlette/applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/starlette/middleware/errors.py", line 181, in __call__
    raise exc
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/starlette/middleware/errors.py", line 159, in __call__
    await self.app(scope, receive, _send)
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/starlette/middleware/cors.py", line 84, in __call__
    await self.app(scope, receive, send)
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/opentelemetry/instrumentation/asgi/__init__.py", line 368, in __call__
    await self.app(scope, otel_receive, otel_send)
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__
    raise exc
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/starlette/exceptions.py", line 71, in __call__
    await self.app(scope, receive, sender)
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/starlette/routing.py", line 656, in __call__
    await route.handle(scope, receive, send)
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/starlette/routing.py", line 259, in handle
    await self.app(scope, receive, send)
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/starlette/routing.py", line 61, in app
    response = await func(request)
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/fastapi/applications.py", line 164, in openapi
    return JSONResponse(self.openapi())
  File "/home/gustavorps/workspace/code/sorcero-ingestion-tools/backend/./sorcero/ingestion/manager/http/server.py", line 48, in custom_openapi
    openapi_schema = get_openapi(
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/fastapi/openapi/utils.py", line 389, in get_openapi
    definitions = get_model_definitions(
  File "/home/gustavorps/.miniconda3/envs/sorcero-ingestion-manager/lib/python3.8/site-packages/fastapi/utils.py", line 24, in get_model_definitions
    m_schema, m_definitions, m_nested_models = model_process_schema(
  File "pydantic/schema.py", line 617, in pydantic.schema.model_process_schema
  File "pydantic/schema.py", line 658, in pydantic.schema.model_type_schema
  File "pydantic/schema.py", line 258, in pydantic.schema.field_schema
  File "pydantic/schema.py", line 563, in pydantic.schema.field_type_schema
  File "pydantic/schema.py", line 848, in pydantic.schema.field_singleton_schema
  File "pydantic/schema.py", line 748, in pydantic.schema.field_singleton_sub_fields_schema
  File "pydantic/schema.py", line 563, in pydantic.schema.field_type_schema
  File "pydantic/schema.py", line 947, in pydantic.schema.field_singleton_schema
ValueError: Value not declarable with JSON Schema, field: name='id_ObjectId' type=ObjectId required=True

import typing as T
from datetime import datetime

from bson.errors import InvalidId
from bson.objectid import ObjectId as BsonObjectId
from pydantic import (
    BaseModel as _BaseModel,
    Field,
)

class ObjectId(BsonObjectId):
    @classmethod
    def __get_validators__(cls):
        yield cls.validate

    @classmethod
    def validate(cls, v):
        try:
            return cls(v)
        except InvalidId:
            raise ValueError(f'{v} is not a valid ObjectId')

class BaseModel(_BaseModel):
    class Config:
        json_encoders = {ObjectId: str}

class BaseMongoCreateModel(BaseModel):
    date_created: T.Optional[datetime]
    date_updated: T.Optional[datetime]

    class Config:
        allow_population_by_field_name=True
        orm_mode=True

class BaseMongoRetrieveModel(BaseMongoCreateModel):
    id: T.Union[str, ObjectId] = Field(...)

    class Config:
        orm_mode = True
        allow_population_by_field_name=True

$ python
Python 3.8.12 | packaged by conda-forge | (default, Jan 30 2022, 23:53:36)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pydantic; pydantic.__version__
'1.9.0'
>>> import fastapi; fastapi.__version__
'0.73.0'

"Solved"

+1
...
import typing as T
from datetime import datetime

from bson.errors import InvalidId
from bson.objectid import ObjectId as BsonObjectId
from pydantic import (
    BaseModel as _BaseModel,
    Field,
)

class ObjectId(BsonObjectId):
    @classmethod
    def __get_validators__(cls):
        yield cls.validate

    @classmethod
    def validate(cls, v):
        try:
            return cls(v)
        except InvalidId:
            raise ValueError(f'{v} is not a valid ObjectId')
...

...

....
class ObjectId(BsonObjectId):
    @classmethod
    def __get_validators__(cls):
        yield cls.validate

    @classmethod
    def validate(cls, v):
        try:
            return cls(v)
        except InvalidId:
            raise ValueError(f'{v} is not a valid ObjectId')
+
+   @classmethod
+   def __modify_schema__(cls, field_schema):
+       field_schema.update(type='string')
...

But now
INFO:     <IP_ADDRESS>:42152 - "GET /docs HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:42152 - "GET /openapi.json HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/uvicorn/protocols/http/httptools_impl.py", line 372, in run_asgi
    result = await app(self.scope, self.receive, self.send)
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
    return await self.app(scope, receive, send)
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/fastapi/applications.py", line 212, in __call__
    await super().__call__(scope, receive, send)
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/starlette/applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/starlette/middleware/errors.py", line 181, in __call__
    raise exc
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/starlette/middleware/errors.py", line 159, in __call__
    await self.app(scope, receive, _send)
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/starlette/middleware/cors.py", line 84, in __call__
    await self.app(scope, receive, send)
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/opentelemetry/instrumentation/asgi/__init__.py", line 368, in __call__
    await self.app(scope, otel_receive, otel_send)
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__
    raise exc
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/starlette/exceptions.py", line 71, in __call__
    await self.app(scope, receive, sender)
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/starlette/routing.py", line 656, in __call__
    await route.handle(scope, receive, send)
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/starlette/routing.py", line 259, in handle
    await self.app(scope, receive, send)
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/starlette/routing.py", line 61, in app
    response = await func(request)
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/fastapi/applications.py", line 164, in openapi
    return JSONResponse(self.openapi())
  File "/home/gustavorps/code/issue/http/server.py", line 46, in custom_openapi
    openapi_schema = get_openapi(
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/fastapi/openapi/utils.py", line 394, in get_openapi
    result = get_openapi_path(route=route, model_name_map=model_name_map)
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/fastapi/openapi/utils.py", line 197, in get_openapi_path
    operation_parameters = get_openapi_operation_parameters(
  File "/home/gustavorps/.miniconda3/envs/python3/lib/python3.8/site-packages/fastapi/openapi/utils.py", line 101, in get_openapi_operation_parameters
    "schema": field_schema(
  File "pydantic/schema.py", line 251, in pydantic.schema.field_schema
  File "pydantic/schema.py", line 219, in pydantic.schema.get_field_info_schema
  File "pydantic/schema.py", line 986, in pydantic.schema.encode_default
  File "pydantic/json.py", line 97, in pydantic.json.pydantic_encoder
TypeError: Object of type 'ModelMetaclass' is not JSON serializable

$ python
Python 3.8.12 | packaged by conda-forge | (default, Jan 30 2022, 23:53:36)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pydantic; pydantic.__version__
'1.9.0'
>>> import fastapi; fastapi.__version__
'0.73.0'

@gustavorps' comment above works, but doesn't seem very "safe". Why are we having to monkey patch the type of the field?

Solved reading the implementation of hbusul/kucukdev_api#18

@gustavorps thanks for that code it is useful! Here is the solution I did to make it work for my arbitary type: https://github.com/tiangolo/sqlmodel/issues/235#issuecomment-1162063590

I'm getting the same issues with trying to access geoalchemy2 data through shapely geometry types.
@gustavorps' comment above works, but doesn't seem very "safe". Why are we having to monkey patch the type of the field?

are you patching the geometry type to include more classmethods? I am interested to see how you have made it work as I am also facing this issue using sqlmodel + shapely
from geoalchemy2 import Geometry
from pydantic import validator, BaseConfig
from shapely.geometry import Point, asShape
from sqlalchemy import Column
from sqlmodel import Field, SQLModel

class LocBase(SQLModel):
    class Config:
        allow_population_by_field_name = True
        arbitrary_types_allowed = True

    name: str
    [...]
    longitude: Optional[float] = None
    latitude: Optional[float] = None
    geom: Optional[Point] = Field(
        nullable=True,
        index=True,
        sa_column=Column(Geometry("POINT", srid=4326)),
        alias="point",
    )

    @validator("geom", pre=True)
    def geom_to_shape(cls, v):
        return asShape(v)

I had to add
BaseConfig.arbitrary_types_allowed = True

as arbitrary_types_allowed=True does not seem to be doing the job.
The final error that I'm getting is ValueError: Value not declarable with JSON Schema, field: name='geom' type=Optional[Point] required=False default=None alias='point'

I let Field() generate my ObjectID on POST and hide it from the docs.
Also the  PyObjectId: ObjectId mapping in json_encoders makes it possible for me to use jsonable_encoder on the data. Which I can then just insert in Mongo.
I like to maintain ObjectID type in Mongo instead of str.
On GET I have mismatching documentation unfortunately but I just use a description to identify for now.
Anyone some ideas for that perhaps?
class PyObjectId(ObjectId):
    @classmethod
    def __get_validators__(cls):
        yield cls.validate

    @classmethod
    def validate(cls, v):
        if not ObjectId.is_valid(v):
            raise ValueError("Invalid objectid")
        return ObjectId(v)

    @classmethod
    def __modify_schema__(cls, field_schema):
        field_schema.update(type="string")

class BaseModel(PdBaseModel):
    class Config:
        json_encoders = {
            ObjectId: str,
            PyObjectId: ObjectId,
        }

class ShowIdField(PdBaseModel):
    id: PyObjectId = Field(alias="_id",
                           default_factory=PyObjectId,
                           title='id',
                           description="id" is used in app, not _id',
                           )

class HideIdField(PdBaseModel):
    _id: PyObjectId = Field(alias="_id",
                            default_factory=PyObjectId,
                            )

class Base(BaseModel):
    ...

class Create(Base, HideIdField):
    pass

class Get(Base, ShowIdField):
   pass


feat(user-profile): modal saving states

Would have liked to manage the loading and disabling fields centrally in
Modal, but that would result in a weird structure like render props or
something and not really help a lot, because each individual Modal is
still responsible for passing the enabled prop to every single one of its fields,
unless we go completely crazy and make a context that
automatically disables all input fields below it or something.
The cancel state is actually not quite as unproblematic as we thought.
Yes, it's true that there is no instant at which a user can cancel the
edit saving and be sure that the edit was not yet performed,
and based on this, it seems like we do not have to care about
cancellation at all. However, the finished request triggers a navigation
to the corresponding profile tab, even if the user has meanwhile
navigated away from it.
This is huge, and can theoretically be split into react-components
first, frontend second. But the react-components changes are the same
thing over and over again, so maybe it's fine and I'll just do a
walkthrough.

We've decided that the inconvenient behavior in the navigation edge case isn't important enough to block merging this - aborting the request kind of goes into error handling territory (promise rejects) so that'll be tackled up next


Mac: ctrl + opt + o not working

I don't know if I am the only person experiencing this, but even though the keyboard shortcut is enabled, typing it has no affect on enabling or disabling.
Using the dropdown menu works.

For me isn't working neither. But my keybindings are a mess, so I'm not 100% sure.
I've seen many packages that remove these keybindings and just put a keybinding in the readme to let the users copypaste.

Works for me. I'm also on OS X.

I've removed some conflicts in my keybindings and it's working.
@halfnibble check if there is another package with the same keyboard shortcut.


feat(che-theia): Use machine-exec provided by theia

What does this PR do?
Use machine exec component provided by che-theia
What issues does this PR fix or reference?
https://github.com/eclipse/che/issues/19215
Is it tested? How?
start flattened theia and theia-nodejs, terminal should work as expected

/test v5-devworkspaces-operator-e2e

/test v5-devworkspaces-operator-e2e


Tags not created: Uncaught TypeError: Cannot read properties of null (reading 'frontmatter') { isTrusted: [Getter] }

Just setting up a hosted install and got articles to import but got this error in the developer log for each record in the import:
Uncaught TypeError: Cannot read properties of null (reading 'frontmatter') { isTrusted: [Getter] }
Next steps?

Second attempt: changed tags from # to CSV, got same error in console, but the front matter was created with the import, although all tags are prefaced with a t: as in t:first-tag, t:second-tag.

This is now solved in the latest release, please update, try and reopen if it's not working.


Add the method "startsWith" from Strings

Hello, can you please add R.startsWith() just like it is in lodash - https://lodash.com/docs#startsWith ?

If you want to create a PR, I'm sure we'd consider it.  We would not want the lodash API.  Ramda avoids optional arguments.
But I'm not sure we'd accept it, as this seems so easy to create with existing tools:
    const startsWith = R.invoker(1, 'startsWith');
    startsWith('a', 'abc'); //=> true
    startsWith('b', 'abc'); //=> false

FWIW, my personal startsWith supports both strings and arrays:
const startsWith = curry((prefix, xs) => equals(take(xs.length, xs), xs));

What's nice about that is that it plays really nice with value equality semantics..

With those semantics, I'd happily accept both startsWith and endsWith.

@asaf-romano I tried your snippet and it behaves different than expected. Am I correct that const startsWith = curry((prefix, xs) => equals(take(prefix.length, xs), prefix)); is the correct implementation? I think prefix.length is correct because you want to check prefix against xs, right?

:)

endsWith would be pretty much the same, but with takeLast.

I let the PR to someone else. I just would like to see a list of functions that is, say, longer. As I see functional methods as operators and e.g. in rx you have got lots of them. Then you are just composing them. And that's fine. ;-) Goodjob you do otherwise!

This wouldn't just be invoker(1, 'startsWith') as the browser support of the native is poor: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith

You're right.  Those pesky browsers.
I've used this one a lot in Node.  I'd be interested in something like @asaf-romano's formulation, then.  Anyone interested in creating a PR?

The only issue I have with @asaf-romano's answer is it has the parameters in the opposite order of lodash.
I'll try whipping up a PR for this tonight (about 8-10 hours from posting this), but if someone else gets to it first, feel free.

That's consistent with almost every function in ramda
On Wed, Feb 22, 2017, 5:37 AM Matt Grande<EMAIL_ADDRESS>wrote:

The only issue I have with @asaf-romano https://github.com/asaf-romano's
answer is it has the parameters in the opposite order of lodash.
I'll try whipping up a PR for this tonight (about 8-10 hours from posting
this), but if someone else gets to it first, feel free.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ramda/ramda/issues/1842#issuecomment-281670921, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAB-4DSWehmTmXQ39PCUSV3oF5PvX71Pks5rfDn-gaJpZM4JX7iq
.

@mattgrande:

The only issue I have with @asaf-romano's answer is it has the parameters in the opposite order of lodash.

One of the main reasons for starting Ramda was that we found the parameter orders in Underscore/lodash not appropriate for the composeable style we were interesting in pursuing.  There were many other reasons, and it did start as an educational exercise, not an attempt to create a competing library.  But the parameter order is quite important.

Yes, I realised my error after posting. If I end up doing the PR, I'll ensure it's composable.


Dums 44 custom header

DUMS-44-Custom-Header
Description
Added custom header to match Figma.
LocalHost:

Figma:

Notes

There isn't really a translation for the word "Scrum" in French.

Could switch the font everywhere to font-display as well. Lato is used everywhere in the Figma designs and it's already imported into the tailwind config.

We can make the font global in another PR. :)

Closing due to unsigned commits.


test if unit testing is working

copy  test to to a folder in assets
eg in the unt_tests folder

done


OIDC provider - backward incompatible outbound config

Environment Details

Helidon Version: 4 snapshot
Helidon MP
JDK version: 21
OS: Ubuntu 23.10 6.5.0-14-generic

Problem Description
While in Helidon 3 oidc outbound configuration worked like this:
security:
  providers:
    - abac:
    - oidc:
        audience: "kingdom-audience"
        client-id: "beginning-helidon-client"
        redirect: true
        client-secret: Bcx0RVWPLwXj3vP8xByv9Dwr7lCL1jjl
        identity-uri: "http://${keycloak.host}:${keycloak.port}/realms/beginning-helidon"
        frontend-uri: "${app.castle-url}"
        post-logout-uri: /
        logout-enabled: true
        propagate: true
        outbound:
          - name: "propagate-token"
            hosts: ["watchtower.local"]

In Helidon 4 outbound prefix needs to be used twice:
security:
  providers:
    - abac:
    - oidc:
        ...
        propagate: true
        outbound:
          outbound:
            - name: "propagate-token"
              hosts: [ "watchtower.local" ]

Problem is prefix being queried twice, first in here:
https://github.com/helidon-io/helidon/blob/224f99d56c7212e9d6426d7310ad1f714f6247b5/security/providers/oidc/src/main/java/io/helidon/security/providers/oidc/OidcProvider.java#L338-L341
And then again here:
https://github.com/helidon-io/helidon/blob/224f99d56c7212e9d6426d7310ad1f714f6247b5/security/providers/common/src/main/java/io/helidon/security/providers/common/OutboundConfig.java#L81-L86

It is not backwards incompatibility. It is a bug. It should be there only once.


Merge custom options with jscsrc

If I don't specify a config, JSCS will read my .jscsrc file. If I specify other options, such as esnext, grunt-jscs will only use these options—it will not attempt to merge them with my .jscsrc file.
Could we merge with the .jscsrc file?

jscs: {
    src: "path/to/files/*.js",
    options: {
        config: true,
        requireCurlyBraces: [ "if" ]
    }
}

This doesn't work for you?

It doesn't work when config: '.jscsrc'.
On Mon, 22 Jun 2015 at 01:01 Oleg Gaidarenko<EMAIL_ADDRESS>wrote:

jscs: {
src: "path/to/files/*.js",
options: {
config: true,
requireCurlyBraces: [ "if" ]
}
}
This doesn't work for you?
—
Reply to this email directly or view it on GitHub
https://github.com/jscs-dev/grunt-jscs/issues/92#issuecomment-113970837.

Hm, i added test that should check exactly this use-case - https://github.com/jscs-dev/grunt-jscs/commit/49936c602fd0ca77e1978be8680ba1b4073ebe4b
Do not see any errors, would you mind providing a pr with test or repo with this reproducible issue?

Did you resolve the issue?


linux-headers includes x86_64 tools...

Trying to compile a kernel module with DKMS fails because tools like scripts/recordmcount are compiled for x86_64 not ARM...
This is due to cross-compiling on x86.  We should probably build the package on rpi so that these tools are also rpi compatible.
For now you can re-compile them individually as a workaround...

Thanks @brendandburns for "flying" HypriotOS :-)
I tried to reproduce the problem by installing the kernel headers we also provide as a package.
I flashed the latest HypriotOS 1.7.1 and did the following steps:
$ sudo apt-get update
$ sudo apt-get install raspberrypi-kernel-headers
$ /usr/src/linux-headers-4.4.50-v7+/scripts/recordmcount
usage: recordmcount [-w] file.o...

The tool shows me the usage, so I think this is compiled for ARM. Maybe you have installed the linux headers from a different package?
Our RPI kernel is built in repo https://github.com/hypriot/rpi-kernel and the deb packages are deployed to https://packagecloud.io/Hypriot/rpi
So if a kernel module is missing, maybe we should add this to our pipeline?

I will try this again this evening...  I'm trying to build the iscsitarget module... Not sure if we want to include that or not...
--brendan

From: Stefan Scherer<EMAIL_ADDRESS>Sent: Monday, February 19, 2018 5:10:29 AM
To: hypriot/image-builder-rpi
Cc: Brendan Burns; Mention
Subject: Re: [hypriot/image-builder-rpi] linux-headers includes x86_64 tools... (#215)
Thanks @brendandburnshttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbrendandburns&data=04|01|bburns%40microsoft.com|570781c7e83c4f68dbe008d5779a26f9|72f988bf86f141af91ab2d7cd011db47|1|0|636546426320207219|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=Bvn9GaD4lD%2FOCRbl2ljgkCCmHJFZivZLXPdujGEfZBE%3D&reserved=0 for "flying" HypriotOS :-)
I tried to reproduce the problem by installing the kernel headers we also provide as a package.
I flashed the latest HypriotOS 1.7.1 and did the following steps:
$ sudo apt-get update
$ sudo apt-get install raspberrypi-kernel-headers
$ /usr/src/linux-headers-4.4.50-v7+/scripts/recordmcount
usage: recordmcount [-w] file.o...
The tool shows me the usage, so I think this is compiled for ARM. Maybe you have installed the linux headers from a different package?
Our RPI kernel is built in repo https://github.com/hypriot/rpi-kernelhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhypriot%2Frpi-kernel&data=04|01|bburns%40microsoft.com|570781c7e83c4f68dbe008d5779a26f9|72f988bf86f141af91ab2d7cd011db47|1|0|636546426320207219|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=ED2XZ8xR3xep5Kn7%2Bw3Pwhdg9eFTZJ41hZ09yyXNDeg%3D&reserved=0 and the deb packages are deployed to https://packagecloud.io/Hypriot/rpihttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpackagecloud.io%2FHypriot%2Frpi&data=04|01|bburns%40microsoft.com|570781c7e83c4f68dbe008d5779a26f9|72f988bf86f141af91ab2d7cd011db47|1|0|636546426320217233|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=ZI98KxAuOgyTq9PYbOWnmFPmoWWlayrB3M1Hh2OYmHU%3D&reserved=0
So if a kernel module is missing, maybe we should add this to our pipeline?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhypriot%2Fimage-builder-rpi%2Fissues%2F215%23issuecomment-366688897&data=04|01|bburns%40microsoft.com|570781c7e83c4f68dbe008d5779a26f9|72f988bf86f141af91ab2d7cd011db47|1|0|636546426320217233|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=JjIoidfBjGUM%2FBzk7hTW905F4My%2FFtGgDyRy%2BggtqZw%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFfDgkkSlOkWb3Rl76eGVIJiMY7XXxRxks5tWXLFgaJpZM4SJ1un&data=04|01|bburns%40microsoft.com|570781c7e83c4f68dbe008d5779a26f9|72f988bf86f141af91ab2d7cd011db47|1|0|636546426320217233|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=NOCKMbvBSIOml%2FIXfu8ZiY5eH0f13Emokwni809c0Hc%3D&reserved=0.

To use DKMS, I believe I need the following installed:
linux-headers-4.4.50-hypriotos-v7+_4.4.50-hypriotos-v7+-1_armhf.deb
https://packagecloud.io/Hypriot/rpi/packages/debian/jessie/linux-headers-4.4.50-hypriotos-v7+_4.4.50-hypriotos-v7+-1_armhf.deb
which has the x86_64 tools inside it...
Many thanks for any help here...

@StefanScherer
friendly ping on this if there is any way for me to fix/recompile this package for arm...
Thanks!
--brendan

Thanks @brendandburns for the ping. I was down with influenza short after my last reply and also had to cancel my trip to MVP Summit this week. Otherwise we had the chance to hack on this in Redmond ;-)
What I don't understand is, I can't see any x86_64 tools inside this package. As mentioned above I've installed the package (with sudo apt-get update && sudo apt-get install raspberrypi-kernel-headers) on a Raspberry Pi 3 with HypriotOS 1.7.1 installed.
When I check all tools that are in the scripts folders
$ cd /usr/src/linux-headers-4.4.50+/scripts
$ file * | grep ELF
conmakehash:                       ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=2c3a1e539429dd1d4b238562decb326faeb06e2c, not stripped
kallsyms:                          ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=94af920e5874f37a9d745ca4ba063dd06dc5b832, not stripped
pnmtologo:                         ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=31b9263651369b4f570f3a1209b9c480ec4ee424, not stripped
recordmcount:                      ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=2a87ecdd01da5e542f3e55d679e401c3d9a2a5f9, not stripped
sortextable:                       ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=b28c91f1371f766790d2f6cd69b3ad4ea2f83a3f, not stripped
HypriotOS/armv7: pirate@black-pearl in /usr/src/linux-headers-4.4.50+/scripts
$ cd ../..
HypriotOS/armv7: pirate@black-pearl in /usr/src
$ cd linux-headers-4.4.50-v7+/scripts/
HypriotOS/armv7: pirate@black-pearl in /usr/src/linux-headers-4.4.50-v7+/scripts
$ file * | grep ELF
conmakehash:                       ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=2c3a1e539429dd1d4b238562decb326faeb06e2c, not stripped
kallsyms:                          ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=94af920e5874f37a9d745ca4ba063dd06dc5b832, not stripped
pnmtologo:                         ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=31b9263651369b4f570f3a1209b9c480ec4ee424, not stripped
recordmcount:                      ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=2a87ecdd01da5e542f3e55d679e401c3d9a2a5f9, not stripped
sortextable:                       ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=b28c91f1371f766790d2f6cd69b3ad4ea2f83a3f, not stripped

every ELF binary is compiled for ARM.
Do you have any command I should check in my environment to see the error you have?
To compile this package I think the most lazy way would be to fork https://github.com/hypriot/rpi-kernel and activate the CircleCI build in that fork. Then you can adjust the two files

kernel_configs/rpi1_docker_kernel_config
kernel_configs/rpi2_3_docker_kernel_config
in the fork and let Circle build the Linux kernel and kernel modules and build the deb packages.

Circle is configured to store all deb files as artifacts, see our last build 59 in master branch and the corresponding artifacts:

So you are able to download the deb packages to your Pi and let a cloud server do the dirty task of compiling.
The compilation is done in the scripts/compile_kernel.sh, of course cross compiled on an x86_64 machine on Circle.
I haven't compiled the kernel natively on a Raspberry Pi for years, the Raspberry Pi docs have a page Kernel Building.

Ok, with the latest headers I don't see this.  I don't know what the issue was...
But sadly I'm not building compatible modules still, I will send a repro in a different issue.


Failed to connect to name_server - getaddrinfo ENOTFOUND

Issue
Versions

sequelize: 6.3.5
sequelize-typescript: 2.1.0
typescript: 3.9.9

Issue type

[x] bug report
[ ] feature request

Actual behavior
an error occurs when connecting the server to the database
Failed to connect to ANJUTA2 \ SQL2016: 1433 - getaddrinfo ENOTFOUND ANJUTA2 \ SQL2016
how to make a connection only by name (ANJUTA2 \ SQL2016), why does it tighten the port if I do not specify it?
Expected behavior
connection only by name (ANJUTA2 \ SQL2016)
Related code
tsconfig
"compilerOptions": {
      "target": "es6",
      "module": "commonjs",
      "lib": ["dom", "es6", "es2017", "esnext.asynciterable"],
      "sourceMap": true,
      "outDir": "./dist",
      "rootDir": "./source",
      "moduleResolution": "node",
      "removeComments": true,
      "noImplicitAny": true,
      "strictNullChecks": true,
      "strictFunctionTypes": true,
      "noImplicitThis": true,
      "noUnusedLocals": true,
      "noUnusedParameters": true,
      "noImplicitReturns": true,
      "noFallthroughCasesInSwitch": true,
      "allowSyntheticDefaultImports": true,
      "esModuleInterop": true,
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "resolveJsonModule": true
    },
    "exclude": ["node_modules"],
    "include": ["./source/**/*.tsx", "./source/**/*.ts"]
  }

Sequelize connection
import { Sequelize } from 'sequelize-typescript'
import { environment } from '../config'
import { normalize, join } from 'path'

export default new Sequelize({
  database: environment.database.database,
  dialect: "mssql",
  username: environment.database.username,
  password: environment.database.password,
  host: environment.database.host,
  logging: !environment.production ? console.log : false,
  models: [normalize(join(__dirname, "..", "models"))],
  dialectOptions: {
    options: {
      enableArithAbort: true,
      cryptoCredentialsDetails: {
        minVersion: "TLSv1",
      },
    },
  },
})

Good afternoon
Did you manage to fix the error ?
How did you connect to mssql
I have a similar error, I can't connect to the server
Although there is definitely access


bugfix: convert several providers stop_reason to valid openai finish_reason

Description:
Currently, we forward the anthropic stop_reason, which is not compatible with the openai finish_reason.
This can cause warnings from some OpenAI sdk.
The conversion function returns stop as a default value in case new stop_reason are added.
There was also a bug in the groq and google providers for the finish_reason
Side note:
It would probably be beneficial to update the types to we can get compilation-time validation :  https://github.com/Portkey-AI/gateway/blob/77f32e57b14bd3585169b7bc884ff9ddf38e8ea1/src/providers/types.ts#L101-L123
Proposed change :
export interface ChatChoice {
  index: number;
  message: Message;
  finish_reason: 'stop' | 'length' | 'function_call' | 'content_filter' | null;
  logprobs?: object | null;
}

export interface CompletionResponse extends CResponse {
  choices: {
    text: string;
    index: number;
    logprobs: null;
    finish_reason: 'stop' | 'length' | 'function_call' | 'content_filter' | null;
  }[];
}

see https://platform.openai.com/docs/guides/text-generation/chat-completions-response-format

hello @vrushankportkey @VisargD, i'm not sure if there is a process after opening a PR to request a review, any chance this PR could be considered ?

Thank you so much @unsync! Yes, we're checking the PR and will share review if any in some time!
I think your PR is a better candidate for merge than mine, i think my PR can be close in favour of yours ?
cc @vrushankportkey

Thanks @unsync & @narengogi!


Error on many connections to laravel-echo-server

On many connections to server(around 7000), nginx log has error:
live upstreams while connecting to upstream, request: "POST /socket.io/?EIO=3&transport=polling&t=
Why?

what did your ulimit -n say on your system ? .. u can update this (temporarily) by ulimit -n 10000 ..

what did your ulimit -n say on your system ? .. u can update this (temporarily) by ulimit -n 10000 ..

40000


Closes #30 | Add palito dataset

Closes #30
Checkbox

[x] Confirm that this PR is linked to the dataset issue.
[x] Create the dataloader script seacrowd/sea_datasets/my_dataset/my_dataset.py (please use only lowercase and underscore for dataset naming).
[x] Provide values for the _CITATION, _DATASETNAME, _DESCRIPTION, _HOMEPAGE, _LICENSE, _URLs, _SUPPORTED_TASKS, _SOURCE_VERSION, and _SEACROWD_VERSION variables.
[x] Implement _info(), _split_generators() and _generate_examples() in dataloader script.
[x] Make sure that the BUILDER_CONFIGS class attribute is a list with at least one SEACrowdConfig for the source schema and one for a seacrowd schema.
[x] Confirm dataloader script works with datasets.load_dataset function.
[x] Confirm that your dataloader script passes the test suite run with python -m tests.test_seacrowd seacrowd/sea_datasets/<my_dataset>/<my_dataset>.py.
[x] If my dataset is local, I have provided an output of the unit-tests in the PR (please copy paste). This is OPTIONAL for public datasets, as we can test these without access to the data files.

Hi @ilhamfp, mind running the code formatter first on your dataloader and ensuring no errors are thrown from there?
I found some issues when executing the formatter via
make check_file=seacrowd/sea_datasets/palito/palito.py

Formatted 👍

Not sure why the stale.yml is accidentally included in this PR, mind removing it? Thanks!

Yeah, sorry about that. Updated 👍

Hi @ilhamfp, the dataset and all of its checklist looks okay, except for one file that's misnamed on the source. I'm opening a PR to them for fixing that, then I'll approve the PR if this PR has been merged to their master.
cc @imperialite for visibility.


Depth map using Marigold, Depth-Anything

Hi Ali, I am testing your algorithm using the Replica/room0 dataset. I decided to test the depth map algorithm by Marigold: https://github.com/prs-eth/Marigold
I have replaced Replica depth maps with those from Marigold. Here is an example:
Replica depth map:

Marigold depth map:

My issue is, while running rerun_realtime_mapping.py I get a lot of detections. They seem not to get merged. The map gets bloated.
Could you hint me if the depth map is OK and what am I doing wrong?
I can generate the whole depth map for room0 and share, if you need this for your own testing.

Here is a depth map from Depth-Anything: https://github.com/LiheYoung/Depth-Anything
Faster model, results not good.
Depth-Anything map:

Hi @HennethAnnun,
Thanks for using ConceptGraphs!
Just so I understand you correctly, have you tried running the code with the ground truth depth and it works fine? As in, you're sure that it is the estimated depth map that is causing the problem?
I agree that the depth map looks fine upon first glance.

Yes, the ground truth depth map from Replica works fine. I would like to
use some other, compatible, algorithm for depth maps. Did you try any
other? Maybe you could point me to some direction?
Pozdrawiam / Best Regards / MfG
Marek Kroplewski
--- sent from mobile
wt., 28 maj 2024, 21:47 użytkownik Ali Kuwajerwala @.***>
napisał:

Hi @HennethAnnun https://github.com/HennethAnnun,
Thanks for using ConceptGraphs!
Just so I understand you correctly, have you tried running the code with
the ground truth depth and it works fine? As in, you're sure that it is the
estimated depth map that is causing the problem?
I agree that the depth map looks fine upon first glance.
—
Reply to this email directly, view it on GitHub
https://github.com/concept-graphs/concept-graphs/issues/41#issuecomment-2135990803,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGJKQH3E6X5VLJ7TYYKCQ2DZETNNNAVCNFSM6AAAAABIJA64SCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZVHE4TAOBQGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

Chiming in for a quick resolution here.
The actual issue
The depth maps predicted by these models are off by a global scale factor with respect to the real-world. i.e., the "relative" depths may all look sensible, while the "absolute" depth values (think units of "metres") are off by a scale factor, which is not known ahead of time. Further, this scale factor potentially changes for every image the network is run on.
Given this scale offset, the camera poses you have from replica ground truth are rendered incorrect (the translations in the pose matrix are off by the same scale factor, which needs to be estimated). If you're determined to make this approach work, you will need to implement your custom pose estimation framework that provides relative poses (and also scale the depth maps accordingly).
The fix
There unfortunately is no easy fix you can use off-the-shelf in this case. Perhaps newer approaches like dust3r can predict consistent depths/pointclouds. Then again, life will be much easier if you assume access to and use depthmaps.
(Closing this issue for now, since this isn't something we plan to support anytime soon)


[TA] add model version in tests in order to not break live tests.

https://github.com/Azure/azure-sdk-for-java/pull/13855#discussion_r467196795

It seems not neccessary. We have multiple API support now.


Can't add Swift package

When adding the package, I choose to target the latest commit (6eddd2c1d9072affd36d236f92a35ad79b6c559d) and it worked for me

@arthur-ver Hey, is this still an issue in the latest develop build or it have been already resolved for you?


File upload focus

With a file input question, after uploading the file, focus jumps to the top of the page.
Video here: https://civiform.slack.com/files/U057V0H2K0W/F083RP4MPSQ/screen_recording_2024-12-04_at_10.22.05___am.mov

This is a duplicate of #8719.


error after login procedure / raspbian

pi@raspberrypi ~/PokemonGo-Bot $ ./run.sh
2016-09-05 22:10:20,795 [       cli] [INFO] PokemonGO Bot v1.0
2016-09-05 22:10:20,870 [       cli] [INFO] commit: ca94424f
2016-09-05 22:10:20,982 [       cli] [INFO] Configuration initialized
2016-09-05 22:10:20,988 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-09-05 22:10:20,992 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-09-05 22:10:21,178 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
(22416) wsgi starting up on http://<IP_ADDRESS>:4000
2016-09-05 22:10:26,499 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): <IP_ADDRESS>
[2016-09-05 22:10:26] [SleepSchedule] [INFO] [next_sleep] Next sleep at 12:21:34, for a duration of 5:14:18
[2016-09-05 22:10:26] [PokemonGoBot] [INFO] [set_start_location] Setting start location.
[2016-09-05 22:10:26] [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
[2016-09-05 22:10:26] [PokemonGoBot] [INFO] [location_found] Location found: 47.2303534,-0.7666288 (47.2303534, -0.7666288, 8.0)
[2016-09-05 22:10:26] [PokemonGoBot] [INFO] [position_update] Now at (47.2303534, -0.7666288, 8.0)
[2016-09-05 22:10:26] [PokemonGoBot] [INFO] [login_started] Login procedure started.
Traceback (most recent call last):
File "pokecli.py", line 795, in
main()
File "pokecli.py", line 231, in main
report_summary(bot)
File "pokecli.py", line 279, in report_summary
metrics.capture_stats()
File "/home/pi/PokemonGo-Bot/pokemongo_bot/metrics.py", line 108, in capture_stats
response_dict = request.call()
File "/home/pi/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 223, in call
if not self.can_call():
File "/home/pi/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 128, in can_call
raise NotLoggedInException()
pgoapi.exceptions.NotLoggedInException
[2016-09-05 22:10:27] [sentry.errors] [ERROR] Sentry responded with an error: 'module' object has no attribute 'HTTPSHandler' (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/home/pi/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/home/pi/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/home/pi/PokemonGo-Bot/local/lib/python2.7/site-packages/raven/utils/http.py", line 44, in urlopen
class ValidHTTPSHandler(urllib2.HTTPSHandler):
AttributeError: 'module' object has no attribute 'HTTPSHandler'
[2016-09-05 22:10:27] [sentry.errors.uncaught] [ERROR] [u'NotLoggedInException', u'  File "pokecli.py", line 795, in ', u'  File "pokecli.py", line 231, in main', u'  File "pokecli.py", line 279, in report_summary', u'  File "pokemongo_bot/metrics.py", line 108, in capture_stats', u'  File "pokemongo_bot/api_wrapper.py", line 223, in call', u'  File "pokemongo_bot/api_wrapper.py", line 128, in can_call']
Mon Sep 5 22:10:28 UTC 2016 Pokebot  Stopped.
Press any button or wait 20 seconds to continue.

What branch?

Please use the issue template.


The Resources files need to be overhalled

This  whole folder needs to be rewrote
Resource.jsx to be moved to the components folder and the return needs to be configured into something like this:
return (
    <styleContainer className="resource">         == <Resource>
      <div className="resource_left">                  == <ResourceLeft>

resource.css needs to me reformatted into stylesResource.jsx and stored in the src/styles folder
.resource {                     == const Resource = styled.div`
    ...                                             ...
  }                                           `;

  .resource_left {             == const ResourceLeft = styled.div`
   ...                                              ...
}                                              `;

                                           export { Resource, ResourceLeft, };

Then in Resource.jsx:
import { Resource, ResourceLeft, } from "../styles/Resource";

Plus the popup.jsx and popup.css needs to be converted into ResourcePopup.jsx and stylesResourcePopup.jsx, moved and rewrote.
It's all yours if you want it but it's a big job.

working on it!


[staging-next] xapian: fix hashes

Description of changes
Most recent update only updated xapian. Targetting staging-next as that bump is already in #295458.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

What about adding a warning about this at xapian's version attribute?

@vcunat There's already a comment https://github.com/NixOS/nixpkgs/blob/655a011eb5f8a35814121bb940d60d828c006e07/pkgs/development/libraries/xapian/default.nix#L59-L61

Oh, I'm sorry 🤦🏽   I was looking at a wrong place in the file.


[SE-3583] Segregate builds into target sub-folders

I think we should probably land this initially under an experimental flag, it is going to break a lot of stuff.
If David wants to propose swift run, it might then also makes sense to wait for that before landing, since that will reduce some breakage.
There is still going to be another area of breakage, which is deployment pipelines which are grabbing our artifacts. We should probably discuss if we can land some kind of short-term solution to make that use case independent of our build locations.

I'd rather avoid having a flag for this, but waiting for swift run seems fair enough.

I just meant having a flag as a short term "feature flag" for landing it, not maintaining the flag indefinitely.

I added the creation of the symlink (with tests).

@ddunbar @aciidb0mb3r I rebased master, it's mergeable again. Is it still planned to merge this in for Swift 4?

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test


Error on get panel Info "Unexpected error"

Hello @IzakMarais .
First I would like to thank you for the great work done on this project.
I'm using to automate report generation with grafana v9.3.13 , and eventually  it renders panels with somethink like javascript errors like that in the image

There is any workaround to avoid this problem ?
Thank you very much.

Strange. Not that I know of, the image rendering is all delegated to grafana.
You could try to modify the source code to increase the delay between fetching images (or reduce the number of parallel go routines used). However if you are not comfortable with go code I would not recommend it, since I won’t be able to give more guidance than this.

On 28 Sep 2023, at 17:40, Toni Moreno @.***> wrote:
Hello @IzakMarais https://github.com/IzakMarais .
First I would like to thank you for the great work done on this project.
I'm using to automate report generation with grafana v9.3.13 , and eventually it renders panels with somethink like javascript errors like that in the image
https://user-images.githubusercontent.com/5883405/271338813-8153c9ca-5b88-4383-8ae2-21fad8c7fdf8.png
There is any workaround to avoid this problem ?
Thank you very much.
—
Reply to this email directly, view it on GitHub https://github.com/IzakMarais/reporter/issues/355, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7CHEBR4UC7L6D4RLIG5ADX4WK7DANCNFSM6AAAAAA5LFPEXE.
You are receiving this because you were mentioned.


Inline checkboxes, control labels, and vertical alignment

Seems like "control labels" are not vertically aligning properly with inline checkboxes.  Labels appear pushed down about 5 pixels relative to the checkboxes as well as any inline labels, help text, etc.
http://jsfiddle.net/77Jgx/2/

+1

I think it might be hard to get everything aligned using the current methods without having to add markup in a number of different places.  Possible solution: instead of specifying the "inline" class at the label.checkbox level, add a "inline-checkboxes" class to the div.controls class.  This could strip the 5px spacing from the top of the checkboxes, but re-add the 5px to the top of the entire div.
I've got a working example in jsfiddle, but they've got saving disabled for right now.  I'll update when it's available again.