TB Management - Case Management [6h]

Issue
In a TB Management encounter, the CHW has the option for follow-up in one day or one week. Either option should create a follow-up in a new "TB Management" section of the Case Management screen.
Logic for display on the case management "pills" should follow AI case management, that is

This week: follow-up due within 7 days
This month: follow-up due in 7 days or more
Due today: follow-up due today.
Past due: followup was due in the past

Resolution of a case management follow-up should occur if the patient has a TB Management encounter when that follow-up is active (whether or not they entered through the case management screen). That is, any case management encounter should clear previous follow-ups, and a patient can only have one TB Management follow-up at a time.
Tasks

Create the follow-up infrastructure
Create the logic for the creation of a follow-up and its resolution
Render the page for TB Management on the Case Management screen

https://nutrition-ihangane.pantheonsite.io/app
QA Review
Found issues and questions:

When I create a follow up for 1 week, I don't see it under case management at all.

Checked and approved:

Case managements for TB display correctly except 'This month'

Past due
Today
This week

@anvmn I believe the issue identified avbove was fixed in another issue - can you verify?

@adamhstewart
Well, no, it wasn't fixed, but I believe this is by design.
The thing is that follow up is scheduled today, and since we don't allow multiple encounters on the same day, we don't show the entry on case management.

@anvmn Thanks - that makes sense.

@anvmn Can you recheck this? https://github.com/TIP-Global-Health/eheza-app/issues/1021#issuecomment-2000110333
I've gotten reports that even after a day the followup doesn't appear

Fixed and deployed to live


added Casted#hash

eql? was defined, but no matching hash definition

Good catch! Thanks.

Totally yoinked @sgrif's commit. :trollface:


Fix CSRF for gcloud run deployments

https://github.com/google/mesop/blob/3643e02e1b8b8924ccb2caafcf1185032f423e99/mesop/server/server.py#L169 it's not working, not sure why

Fixed in #335


Unhelpful error when saving a docbook file

I have been editing a docbook article and used command formatting in a couple of places. Now I come to save the file I get the error:
Oops!
Document is invalid systemId: myarticle.docbook; lineNumber: 234; columnNumber: 19; element "command" not allowed here; expected the element end-tag or element "address", "anchor", "annotation", "bibliography", "bibliolist", "blockquote", "bridgehead", "calloutlist", "caution", "classsynopsis", "cmdsynopsis", "constraintdef", "constructorsynopsis", "destructorsynopsis", "epigraph", "equation", "example", "fieldsynopsis", "figure", "formalpara", "funcsynopsis", "glossary", "glosslist", "important", "index", "indexterm", "informalequation", "informalexample", "informalfigure", "informaltable", "itemizedlist", "literallayout", "mediaobject", "methodsynopsis", "msgset", "note", "ns:include", "orderedlist", "para", "procedure", "productionset", "programlisting", "programlistingco", "qandaset", "refentry", "refsect1", "remark", "revhistory", "screen", "screenco", "screenshot", "section", "segmentedlist", "sidebar", "simpara", "simplelist", "simplesect", "synopsis", "table", "task", "tip", "toc", "variablelist" or "warning" (with xmlns:ns="/2001/XInclude")
I have looked at the payload sent to the server and it is pseudo-HTML so I imagine the line number is related to an intermediate file. I tracked it down by a bit of guess work and trial and error to this:

sample code

I removed formatting on this line and it saved. I think I started with an inline command format then changed to using the formatted style. It could do with validating on the client or returning errors that connect to what the user sees.

Can you provide steps to reproduce or provide the payload sent to the server that produced this error?

To reproduce:

Create a new article
In the first paragraph set the inline style to "Command"
Add some text
Change the paragraph format to "Formatted"
Save

Error
Document is invalid systemId: /Products/Enviroindex/untitled.docbook; lineNumber: 4; columnNumber: 13; element "command" not allowed here; expected element
Payload

<title>Untitled Article</title>

Untitled Article

command


global: README gitter.im button

Adds Gitter.im button on README to advertise public Invenio
chat-room.

Signed-off-by: Lars Holm Nielsen<EMAIL_ADDRESS>

See how it looks on https://github.com/lnielsen/invenio/tree/master-gitter

Nice. What about then the end of the README:
Invenio Development Team
Email<EMAIL_ADDRESS>IRC: #invenio on irc.freenode.net
Twitter: http://twitter.com/inveniosoftware
Github: http://github.com/inveniosoftware
URL: http://invenio-software.org

Shouldn't it consistently appear a link to Gitter there too?

BTW Gitter is changing its policies, our Invenio room there may not be usable for free in the future due to large number of project participants.  So let's put this on a holder for a while.


refactor: refactor logic to resolve by seqNo or timestamp

Signed-off-by: Char Howland<EMAIL_ADDRESS>

Closed in favor of #5


MINOR: Code Cleanup

Clean up includes:

Switching try-catch-finally blocks to try-with-resources when possible
Removing some seemingly unnecessary @SuppressWarnings annotations
Resolving some Java warnings
Closing unclosed Closable objects
Removing unused code

cc @ijuma for feedback. Thanks.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/5360/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/5345/
Test PASSed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/5405/
Test PASSed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/5420/
Test PASSed (JDK 7 and Scala 2.11).

@ijuma @guozhangwang @mjsax Thanks for your feedback on this PR. Do you see anything that still needs to be addressed? Thanks.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/5674/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/5660/
Test PASSed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/5689/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/5675/
Test PASSed (JDK 8 and Scala 2.12).

Any other feedback on this PR?
cc @hachikuji

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6036/
Test PASSed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6051/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6087/
Test PASSed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6072/
Test PASSed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6136/
Test FAILed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6152/
Test FAILed (JDK 7 and Scala 2.11).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6137/
Test PASSed (JDK 8 and Scala 2.12).

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6153/
Test PASSed (JDK 7 and Scala 2.11).


Add more pre-canned audits

Potential candidates:

Column values are keys in some other table.
The column value is above or below a static threshold.
The column overall average / P50 / P95 / etc. is above or below a static threshold.

Couple other suggestions:

Unique combination of columns
No empty strings ""

closing this for now as alex has contributed a ton


L10n check new strings

Add new l10n strings, add checker of new strings and documentation.

Thank you!


Update public docs with information about batching

Public documentation needs to be updated once we add support for batching.
Depends on https://github.com/microsoftgraph/msgraph-sdk-go-core/issues/11

Blocked by #142, #143, #144


tests: metrics tests fail when PYTHONWARNINGS="ignore"

What were you trying to accomplish?
Run make test when PYTHONWARNINGS="ignore"
Expected Behavior
Test should pass
Current Behavior
_____________________________________________________________________________________________________ test_log_metrics_decorator_no_metrics_warning _____________________________________________________________________________________________________

dimensions = [{'name': 'test_dimension', 'value': 'test'}, {'name': 'test_dimension_2', 'value': 'test'}], namespace = 'test_namespace', service = 'test_service'

    def test_log_metrics_decorator_no_metrics_warning(dimensions, namespace, service):
        # GIVEN Metrics is initialized
        my_metrics = Metrics(namespace=namespace, service=service)

        # WHEN using the log_metrics decorator and no metrics have been added
        @my_metrics.log_metrics
        def lambda_handler(evt, context):
            pass

        # THEN it should raise a warning instead of throwing an exception
        with warnings.catch_warnings(record=True) as w:
            lambda_handler({}, {})
>           assert len(w) == 1
E           assert 0 == 1
E             +0
E             -1

tests/functional/test_metrics.py:555: AssertionError

Possible Solution
Temp set warnings.simplefilter("default")

PR: https://github.com/awslabs/aws-lambda-powertools-python/pull/994

Steps to Reproduce (for bugs)

export PYTHONWARNINGS="ignore"
make test

Environment

Powertools version used:
Packaging format (Layers, PyPi):
AWS Lambda function runtime:
Debugging logs

@michaelbrewer could you provide more details about this issue before we merge? How did you run into it since this flag isn't set by default?
Looking at the docs, it seems we should be doing this for all utilities not just metrics: https://docs.python.org/3/library/warnings.html#overriding-the-default-filter

i was trying to disabled some setup issues with poetry on my m1 mac and it prints out warnings.

@heitorlessa this is based on pythons recommended way for testing warnings:
import warnings

def fxn():
    warnings.warn("deprecated", DeprecationWarning)

with warnings.catch_warnings(record=True) as w:
    # Cause all warnings to always be triggered.
    warnings.simplefilter("always")
    # Trigger a warning.
    fxn()
    # Verify some things
    assert len(w) == 1
    assert issubclass(w[-1].category, DeprecationWarning)
    assert "deprecated" in str(w[-1].message)


Preserve input values in cache

This change will save the values of <input>s, <textarea>s, and <select>s when creating a snapshot so that when you navigate back or forward in history, form fields will not be reset.
This behavior was already present prior to https://github.com/hotwired/turbo/commit/5dfc79ee2feba441ea9c9b486009d08336e78d76 for <input>s and <textarea>s but not <select>s (see https://github.com/turbolinks/turbolinks/issues/238).

@entretechno-jeremiah
Several questions on this PR:

With <input>, does it support all types (text, checkbox, radio, hidden, file, etc)
With <input>, does it skip caching input type="password" for security purposes.
Does it support both <select> one and <select multiple>?
Does it support <input type="reset" value="Reset"> and allow a user to reset the form to original values prior to user input?
Can I disable caching of an individual field?

<input... data-turbolinks="false">

<form data-turbolinks="false">
  <input ...>
</form>

@entretechno-jeremiah
Several questions on this PR:

With <input>, does it support all types (text, checkbox, radio, hidden, file, etc)
With <input>, does it skip caching input type="password" for security purposes.
Does it support both <select> one and <select multiple>?
Does it support <input type="reset" value="Reset"> and allow a user to reset the form to original values prior to user input?
Can I disable caching of an individual field?

<input... data-turbolinks="false">

<form data-turbolinks="false">
  <input ...>
</form>

@tleish Very good questions. It looks like they've since reverted to cloneNode(true), which makes it work with <input>s/<textarea>s, so I'll be updating this PR to account for that.

In my testing, yes it does.
No, but good thought. I'll be pushing out an update that does this.
No, good catch. I'll be updating this as well.
Yes, and I'll be adding a test to assert this.
No, but I feel like this is potentially a broader request than just the values of form fields; I think this could apply to any properties/data of any element. I'd welcome some input from the maintainers on if I should add some such functionality though.

@tleish Very good questions. It looks like they've since reverted to cloneNode(true), which makes it work with <input>s/<textarea>s, so I'll be updating this PR to account for that.

In my testing, yes it does.
No, but good thought. I'll be pushing out an update that does this.
No, good catch. I'll be updating this as well.
Yes, and I'll be adding a test to assert this.
No, but I feel like this is potentially a broader request than just the values of form fields; I think this could apply to any properties/data of any element. I'd welcome some input from the maintainers on if I should add some such functionality though.

@entretechno-jeremiah — FYI, a while back I created an addon library that addresses the above mentioned items.  Embedding it into turbo is a much better.  An embedded solution also simplifies the approach since the values do not need to be temporarily written to the dom in a data field for caching purposes.
see: https://github.com/tleish/turbo-bfcache-form
The unit tests in this lib might be helpful to consider various scenarios I ran into while creating the library.

@entretechno-jeremiah — FYI, a while back I created an addon library that addresses the above mentioned items.  Embedding it into turbo is a much better.  An embedded solution also simplifies the approach since the values do not need to be temporarily written to the dom in a data field for caching purposes.
see: https://github.com/tleish/turbo-bfcache-form
The unit tests in this lib might be helpful to consider various scenarios I ran into while creating the library.

This was left sitting for a long time. If you're still interested, I'd like to see it rebased, so we can merge.

@entretechno-jeremiah - are you able to rebase this?

Hi there. Jeremiah doesn't work here anymore. I'm his former manager. Is
there something we can do to help?
On Thu, Aug 4, 2022 at 12:35 PM tleish @.***> wrote:

@entretechno-jeremiah https://github.com/entretechno-jeremiah - are you
able to rebase this?
—
Reply to this email directly, view it on GitHub
https://github.com/hotwired/turbo/pull/70#issuecomment-1205565701, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AQQ4U26BCFKD2RIK6MWXUITVXP5ODANCNFSM4VSJ7XXA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Erin Rollenhagen |<PHONE_NUMBER> <5153185350>
CEO | Entrepreneurial Technologies Inc.
Author | Soul Uprising: It's Never Just Business
2135 NW 108th St, PO Box 71245 | Clive, IA 50325
@.*** | www.entretechno.com
Need help? Email @.*** -- we're here for you!

I'm happy to pick this branch up and move it forward.

I've opened https://github.com/hotwired/turbo/pull/666 to re-submit this changeset. It's rebased off the latest main, and retains @entretechno-jeremiah authorship.


Fix request type in helper overview

Due to backend issue https://github.com/NexdApp/nexd-backend/issues/73 the type of a help request cannot be determined so its hardcoded to "List" at the moment.
Once the backend provides this information the app needs to adapt the ui logic accordingly
This is how the information is supposed to be displayed to users (up to date specs can be found here: https://www.figma.com/file/QsK3lJrsgYLcFFIx49g23R/Nexd?node-id=552%3A45):

The HelpRequest object now contains a callSid property which we can use to determine whether this request was created from a phone call or directly from the app:

if callSid is nil -> phone call
otherwise -> List


[proposal] Add basic CLI to generate transactions

Sometimes I've to quickly generate some random transactions for some tests. This PR adds a new experimental command line interface called bigchaindb-benchmark. Right now it implements one command, send. It can be easily extended to do more things.
A benchmark should display also stats, and this tool will eventually do it. I can do one of those two things:

leave it like this, and ¯\_(ツ)_/¯
change the name from benchmark to tools

TBH I think we don't need tests here, it's just a dumb tool to quickly generate traffic, and it's not core.
bigchaindb-benchmark
 ~/a/r/bigchaindb git:(benchmarking-tools) ➜ bigchaindb-benchmark -h
usage: bigchaindb-benchmark [-h] [-l LOG_LEVEL] [-p PEER] {send} ...

[experimental] Benchmarking tools for BigchainDB.

optional arguments:
  -h, --help            show this help message and exit
  -l LOG_LEVEL, --log-level LOG_LEVEL
  -p PEER, --peer PEER

Commands:
  {send}
    send                Send a single create transaction from a random keypair

bigchaindb-benchmark send
 ~/a/r/bigchaindb git:(benchmarking-tools) ➜ bigchaindb-benchmark send -h
usage: bigchaindb-benchmark send [-h] [--open] [--size SIZE]

optional arguments:
  -h, --help   show this help message and exit
  --open       Open the transaction in the browser
  --size SIZE  Asset size in bytes

Usage
 ~/a/r/bigchaindb git:(benchmarking-tools) ➜ bigchaindb-benchmark send --size 10000 --open
2017-08-18 13:45:48 pulp bigchaindb.commands.benchmark[4511] INFO Create transaction sent. Id: 16989bafa67811ef39eaa7e8b18fc4dfdbdff356db8369fc7b74f3a1c9a6c35d

Codecov Report

Merging #1729 into master will decrease coverage by 1.17%.
The diff coverage is 5.4%.

@@            Coverage Diff            @@
##           master   #1729      +/-   ##
=========================================
- Coverage   98.58%   97.4%   -1.18%
=========================================
  Files          59      60       +1
  Lines        2896    2932      +36
=========================================
+ Hits         2855    2856       +1
- Misses         41      76      +35

This requires an install of bigchaindb_driver along with the server.
root@87d449b798ef:/data# bigchaindb-benchmark send
Traceback (most recent call last):
  File "/usr/local/bin/bigchaindb-benchmark", line 11, in <module>
    load_entry_point('BigchainDB==1.1.0.dev0', 'console_scripts', 'bigchaindb-benchmark')()
  File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/benchmark.py", line 84, in main
    callback_before=configure)
  File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/utils.py", line 207, in start
    return func(args)
  File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/benchmark.py", line 15, in run_send
    from bigchaindb_driver import BigchainDB
ModuleNotFoundError: No module named 'bigchaindb_driver'

@vrde
A weird thing happens when I install the driver inside the docker container to test this out.
root@55b43b4eaca0:/data# bigchaindb-benchmark send
Traceback (most recent call last):
  File "/usr/local/bin/bigchaindb-benchmark", line 11, in <module>
    load_entry_point('BigchainDB==1.1.0.dev0', 'console_scripts', 'bigchaindb-benchmark')()
  File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/benchmark.py", line 84, in main
    callback_before=configure)
  File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/utils.py", line 207, in start
    return func(args)
  File "/usr/local/lib/python3.6/site-packages/bigchaindb/commands/benchmark.py", line 15, in run_send
    from bigchaindb_driver import BigchainDB
ModuleNotFoundError: No module named 'bigchaindb_driver'

root@55b43b4eaca0:/data# pip3 install --upgrade bigchaindb_driver
Collecting bigchaindb_driver
  Downloading bigchaindb_driver-0.4.1.tar.gz (484kB)
    100% |████████████████████████████████| 491kB 2.0MB/s
Requirement already up-to-date: requests>=2.11.0 in /usr/local/lib/python3.6/site-packages (from bigchaindb_driver)
Collecting bigchaindb~=1.0.0 (from bigchaindb_driver)
  Downloading BigchainDB-1.0.1.tar.gz (73kB)
    100% |████████████████████████████████| 81kB 9.6MB/s
Requirement already up-to-date: idna<2.7,>=2.5 in /usr/local/lib/python3.6/site-packages (from requests>=2.11.0->bigchaindb_driver)
Requirement already up-to-date: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests>=2.11.0->bigchaindb_driver)
Requirement already up-to-date: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/site-packages (from requests>=2.11.0->bigchaindb_driver)
Requirement already up-to-date: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests>=2.11.0->bigchaindb_driver)
Requirement already up-to-date: rethinkdb~=2.3 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: pymongo~=3.4 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: pysha3~=1.0.2 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: cryptoconditions~=0.6.0.dev in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: python-rapidjson==0.0.11 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: logstats~=0.2.1 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: flask>=0.10.1 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: flask-cors~=3.0.0 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: flask-restful~=0.3.0 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: gunicorn~=19.0 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: multipipes~=0.1.0 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: jsonschema~=2.5.1 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: pyyaml~=3.12 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: aiohttp~=2.0 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: python-rapidjson-schema==0.1.1 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: statsd==3.2.1 in /usr/local/lib/python3.6/site-packages (from bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: base58~=0.2.2 in /usr/local/lib/python3.6/site-packages (from cryptoconditions~=0.6.0.dev->bigchaindb~=1.0.0->bigchaindb
_driver)
Requirement already up-to-date: PyNaCl~=1.1.0 in /usr/local/lib/python3.6/site-packages (from cryptoconditions~=0.6.0.dev->bigchaindb~=1.0.0->bigchaindb
_driver)
Requirement already up-to-date: pyasn1~=0.2.3 in /usr/local/lib/python3.6/site-packages (from cryptoconditions~=0.6.0.dev->bigchaindb~=1.0.0->bigchaindb
_driver)
Requirement already up-to-date: cryptography~=1.9 in /usr/local/lib/python3.6/site-packages (from cryptoconditions~=0.6.0.dev->bigchaindb~=1.0.0->bigcha
indb_driver)
Requirement already up-to-date: Werkzeug>=0.7 in /usr/local/lib/python3.6/site-packages (from flask>=0.10.1->bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: itsdangerous>=0.21 in /usr/local/lib/python3.6/site-packages (from flask>=0.10.1->bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: Jinja2>=2.4 in /usr/local/lib/python3.6/site-packages (from flask>=0.10.1->bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: click>=2.0 in /usr/local/lib/python3.6/site-packages (from flask>=0.10.1->bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: Six in /usr/local/lib/python3.6/site-packages (from flask-cors~=3.0.0->bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: pytz in /usr/local/lib/python3.6/site-packages (from flask-restful~=0.3.0->bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: aniso8601>=0.82 in /usr/local/lib/python3.6/site-packages (from flask-restful~=0.3.0->bigchaindb~=1.0.0->bigchaindb_driv
er)
Requirement already up-to-date: multidict>=2.1.4 in /usr/local/lib/python3.6/site-packages (from aiohttp~=2.0->bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: async-timeout>=1.2.0 in /usr/local/lib/python3.6/site-packages (from aiohttp~=2.0->bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: yarl>=0.11 in /usr/local/lib/python3.6/site-packages (from aiohttp~=2.0->bigchaindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: cffi>=1.4.1 in /usr/local/lib/python3.6/site-packages (from PyNaCl~=1.1.0->cryptoconditions~=0.6.0.dev->bigchaindb~=1.0.
0->bigchaindb_driver)
Requirement already up-to-date: asn1crypto>=0.21.0 in /usr/local/lib/python3.6/site-packages (from cryptography~=1.9->cryptoconditions~=0.6.0.dev->bigch
aindb~=1.0.0->bigchaindb_driver)
Requirement already up-to-date: MarkupSafe>=0.23 in /usr/local/lib/python3.6/site-packages (from Jinja2>=2.4->flask>=0.10.1->bigchaindb~=1.0.0->bigchain
db_driver)
Requirement already up-to-date: python-dateutil in /usr/local/lib/python3.6/site-packages (from aniso8601>=0.82->flask-restful~=0.3.0->bigchaindb~=1.0.0
->bigchaindb_driver)
Requirement already up-to-date: pycparser in /usr/local/lib/python3.6/site-packages (from cffi>=1.4.1->PyNaCl~=1.1.0->cryptoconditions~=0.6.0.dev->bigch
aindb~=1.0.0->bigchaindb_driver)
Building wheels for collected packages: bigchaindb-driver, bigchaindb
  Running setup.py bdist_wheel for bigchaindb-driver ... done
  Stored in directory: /root/.cache/pip/wheels/85/20/58/21d8714696b648de741698ce8ffb0a9998d45035ddd1003de3
  Running setup.py bdist_wheel for bigchaindb ... done
  Stored in directory: /root/.cache/pip/wheels/b7/ea/9b/e24af21db1199daed6bdb3d18ed9ea6fef4bca390d39f02621
Successfully built bigchaindb-driver bigchaindb
Installing collected packages: bigchaindb, bigchaindb-driver
  Found existing installation: BigchainDB 1.1.0.dev0
    Uninstalling BigchainDB-1.1.0.dev0:
      Successfully uninstalled BigchainDB-1.1.0.dev0
Successfully installed bigchaindb-1.0.1 bigchaindb-driver-0.4.1

root@55b43b4eaca0:/data# bigchaindb-benchmark
bash: /usr/local/bin/bigchaindb-benchmark: No such file or directory

root@55b43b4eaca0:/data# ls /usr/local/bin/bigchaindb*
/usr/local/bin/bigchaindb

I've moved this thing to its own repo:

https://github.com/bigchaindb/benchmark

Closing the PR now.


Check min max

Make sure that max_images and min_images are within workable bounds.

OCD run https://ocd.appscale.com:8080/job/Daily Build/1836/


Binding generation for module provide methods

Is your feature request related to a problem? Please describe.
Definition annotations can be applied to a module functions (provide methods), though they don't generate bind code block if method return type is an abstraction:
@Single(binds = [NetworkAdapter::class])
internal fun provideRetrofitAdapter(...): NetworkAdapter {
    return RetrofitAdapter(...)
}

class RetrofitAdapter(...) : NetworkAdapter

Generated code:
single(qualifier=null) { moduleInstance.provideRetrofitAdapter(...) }

Describe the solution you'd like
I expect that the specified return type (NetworkAdapter) will be automatically binded, e.g.:
single(qualifier=null) { moduleInstance.provideRetrofitAdapter(...) } bind(<classpath>.NetworkAdapter::class)

I've just realised that the actual inferred type in the definition body is method return type. So no issue there


Action Metadata Example

Hey Pi,
I started learning about json-ld and wanted to start making some mock data so we can start building tooling. So I created this mock action example.
Thought this may help😎.

Cross tagging https://github.com/cardano-foundation/CIPs/pull/556.

Ooo, fantastic, thank you :)
I think there's a way to specify that you're importing all of the definitions from a file in the @context, rather than importing each one explicitly.
FWIW Sundae Labs has been offered a grant to build a Rust client library for dealing with this governance metadata; just wanted to make sure we aren't duplicating effort there!

Im glad to help.

I think there's a way to specify that you're importing all

I had assumed so, but I couldn't figure it out, Im sure there is also other obvious errors.


Multi-machine sync

See/consider https://github.com/Azure/azure-storage-azcopy/issues/667#issuecomment-602014481

Unfortunately, we are not going to add this functionality.  We are focused on documentation, testing, and quality, and this feature would represent a large increase in scope for the product.


Research how to leverage the Flux CLI from the Weave GitOps CLI

Leveraging the Flux CLI Functionality from Weave GitOps Core
History
During the original implementation of WGCore, we researched the possibility of calling directly into the flux code base to invoke flux functionality. This turned out to be a non-starter since the flux2 code base is not structures as a set of libraries. It's organized as a set of commands, most of which either construct resources or query system state. So, the initial implementation directly executed the flux command in order access the flux functionality.
In retrospect, we made some choices that led to increased complexity and made things a bit less user-friendly:

The GitOps binary embedded a flux binary that it installed during GitOps installation and the state of the flux installation was mostly hidden from the user.
Access to flux command other than the ones used internally was provided via a gitops flux subcommand.
GitOps used the wego-system namespace rather than flux-system.

New Approach
Going forward, we would like to:

Make the handling of the flux CLI more transparent and less error-prone
Make flux and Weave GitOps Core more consistent (e.g. use flux-system everywhere)
Make everything from flux that is useful to Weave GitOps directly accessible via the gitops CLI

New Handling of the Flux CLI
Rather than embedding a flux binary inside of the Weave GitOps binary, we can simply let the Weave GitOps binary call out the flux version range it supports and look in the PATH for flux. If no binary is available, or the available binary doesn't match the specified range, Weave GitOps will exit with a useful error message.
Exposing Flux CLI Functionality through the Weave GitOps CLI
There are three pass-through cases to consider when exposing an underlying CLI through a "wrapper" CLI:

The wrapper provides access to an unmodified command from the underlying CLI
The wrapper provides a command absent from the underlying CLI
The wrapper provides a modified version of an underlying command

In case (1), other than invoking the command via the underlying CLI, the only extra work is dealing with help. Since the wrapper CLI has no knowledge of the underlying command, it can't provide help on its own. The prototype associated with this issue covers this by running the underlying help and replacing the underlying CLI name with the wrapper name in the three places the CLI name shows up:

Usage
Examples
Final line

In case (2), nothing needs to be done. The normal Cobra machinery will work correctly. This leaves only case (3). In case (3) we have to deal with both the help issue and getting access to the underlying command output if extra processing must be done by the wrapper. In the prototype, this is handled by performing a WrapCommand on the modified command:
func init() {
	Cmd.Flags().BoolVarP(&zeta, "zeta", "z", true, "perform only the pre-installation checks")

	internal.WrapCommand(
		Cmd,
		internal.BackingCLI{CmdName: "flux", Alias: "gitops", VersionPath: "version", Version: "v0.27.3"},
		internal.Wrapper{
			Before: func(fs *pflag.FlagSet, args []string) error {
				fmt.Printf("BEFORE...\n")
				return nil
			},
			After: func(fs *pflag.FlagSet, args []string, wrappedOutput []byte) error {
				fmt.Printf("AFTER...\n%s\n", wrappedOutput)
				return nil
			},
		},
		[]string{"endpoint", "git-host-types", "insecure-skip-tls-verify", "override-in-cluster", "zeta"})
}

The arguments are:

The Cobra command
A description of the underlying CLI
A function to run before the underlying command
A function to run after the underlying command that gets passed the output from the underlying command
A list of flags being added to the command (so that we know which flags to not pass on

Invoking a wrapped command consists of:

Running the before command
Checking for the proper version of the underlying CLI and, if found, invoking the underlying command -- both capturing and displaying the output
Running the after command with the captured output.

The branch: gitops-support-for-flux-cli (https://github.com/weaveworks/weave-gitops/tree/gitops-support-for-flux-cli) contains a prototype for this support. The "cmd/gitops/bootstrap" provides an example of case (3). Case (1) may be examined by invoking any flux command for which gitops has no counterpart.
The main pass-through support is in cmd/gitops/main.o.

I am closing this issue, we are exploring other options for making the Flux CLI commands available in the CLI application.


[Bug]: HTML files have css code even though style is a different folder

Give a brief about the bug ✍
All the CSS should be part of the style folder with proper naming as to which file contains which css
What is the expected behavior? 🤔
All the CSS should be part of the style folder with proper naming as to which file contains which css
Provide step by step information reproduce the bug 📄
simply open index.html
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

@ayush-t02 Is it open??

nope no error, just cleaning out the code

nope no error, just cleaning out the code

ok


Fixing issue with table viz for table with no metrics (#5205)

(cherry picked from commit b60ac5f160e49a31e87e56c9ee163f57a16af948)
@john-bodley @graceguo-supercat @timifasubaa

Codecov Report

Merging #53 into airbnb-master will not change coverage.
The diff coverage is 0%.

@@              Coverage Diff               @@
##           airbnb-master      #53   +/-   ##
==============================================
  Coverage          63.66%   63.66%
==============================================
  Files                260      260
  Lines              19681    19681
  Branches            1970     1970
==============================================
  Hits               12530    12530
  Misses              7142     7142
  Partials               9        9

Impacted Files
Coverage Δ

superset/assets/src/visualizations/table.js
9.73% <0%> (ø)
:arrow_up:

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 8887517...f57530c. Read the comment docs.


Add conformer generation tool

Description
Much of this was already done in https://github.com/openforcefield/openforcefield/pull/661 before we decided to move it here

The module structure is temporary and likely to live elsewhere in the future It has a home now!
I'd like us to think about how to test these utilities more rigorously than we might normally do in a unit test, i.e. add some safeguards that the results are reasonable in addition to ensuring that meet the requirements of the spec

[x] Tag issue being addressed
[ ] Add tests
[ ] Update docstrings/documentation, if applicable
[ ] Update changelog

TODO:

[ ] De-duplicate conformers after OpenMM minimization
[x] Fix return_topology issue with partial charges
[ ] Ensure it works with OFFTK 0.7.1 but can take advantage of https://github.com/openforcefield/openforcefield/pull/670 (0.8.0+)

Tests to include
Function calls

[x] loading one molecule from a .sdf file WITHOUT charges
[x] loading one molecule from a .sdf file WITH charges
[x] (OE only) loading one molecule from a .mol2 file WITH charges
[ ] (OE only) loading one molecule from a .mol2 file WITHOUT charges (is this even possible)
[ ] loading a molecule with a defined name (from any format) and ensuring the output file has that prefix
[ ] loading a molecule with a defined name (from any format), and providing a -f option and ensuring the output file has the -f prefix
[ ] loading a molecule with a defined name (from any format) and ensuring the output file has that prefix
[ ] loading multiple molecules from a .sdf file
[x] loading one molecule from SMILES in a .smi file
[x] loading multiple molecules from SMILES in a .smi file
[x] loading a molecule with ambiguous stereo from SMILES and enumerating stereoisomers
[x] loading a molecule with defined stereo from SMILES and preserving that stereochemistry

Direct CLI calls

[x] Ensure --prefix overrides original filename
[ ] Ensure conformers are enumerated
[ ] Ensure stereoisomers are enumerated?
[ ] Ensure SD data tags are accurately written
[x] Test different forms of --forcefield
[x] Test different forms of --toolkit
[x] Gracefully handle cases  of arguments requesting unavailable resources (force field versions, un-installed/licensed toolkits)
[ ] Sanity checks on piping several calls together

Codecov Report

Merging #4 into master will decrease coverage by 8.15%.
The diff coverage is 0.00%.

@j-wags some discrete questions for clarification:

For tests loading a molecule with a defined name (from any format) ... do you mean name like my_cool_mol.sdf or what populates the Molecule.from_file('mol.sdf').name attribute?
Should a multi-molecule SDF file be returned as separate SDF files, one for each molecule?
Can we get away with just testing the functions, or should we also have tests that directly call python  /path/to/scripy.py --args args? It seems most CLIs only do the former and trust click/argparse/etc do behave as expected - alone this seems reasonable but I'm getting hung up on how the user experience isn't directly tested.

Ah, these are hard. Thanks for digging into this.

For tests loading a molecule with a defined name (from any format) ... do you mean name like my_cool_mol.sdf or what populates the Molecule.from_file('mol.sdf').name attribute?

Let's do file name/prefix. Various file formats may or may not populate mol.name, so any behavior dependent on that will be undefined/sporadic.

Should a multi-molecule SDF file be returned as separate SDF files, one for each molecule?

Yes. I'd also encourage the output conformers to be different files as well, since that will mirror our "SDFs are never mutli-conformer" input behavior as well.

Can we get away with just testing the functions, or should we also have tests that directly call python /path/to/scripy.py --args args? It seems most CLIs only do the former and trust click/argparse/etc do behave as expected - alone this seems reasonable but I'm getting hung up on how the user experience isn't directly tested.

I'd still like to have a few direct tests of the UX., but we don't need tons. Maybe a minimal number is:

One with as few arguments as possible so that we can ensure that any default arguments are hitting their marks
One with as many arguments as possible, to ensure they're all wired up correctly.

@j-wags couple more

Would it be ok to require OpenFF Toolkit  > 0.7.1?
I have to admit I don't fully understand how conformer generation is supposed to work; is it supposed to start with mol.generate_confomers(n_conformers=some_large_number), minimizing against Parsley, and then screening out bad conformers? What are the criteria for these steps?
Should we support non-mainline force fields? In particular, SMIRNOFF99Frosst (hooking in other things like GAFF via openmmforcefields would be a nice feature but out of scope here)
The current setup is exclusively file I/O, i.e. taking in some file and writing out. Should there eventually be an option to instead pipe the contents of the SDF file(s) to STDOUT?

Would it be ok to require OpenFF Toolkit > 0.7.1?

Yes. Thanks for asking.

I have to admit I don't fully understand how conformer generation is supposed to work; is it supposed to start with mol.generate_confomers(n_conformers=some_large_number), minimizing against Parsley, and then screening out bad conformers? What are the criteria for these steps?

Yup, you've pretty much got it right. I might not even bother with screening out "bad conformers" in the first edition of this script. Without it, the workflow should look something like (with a lot of handwaving):
for mol in dataset:
    # We set the rms_cutoff arg here to a small value, so we get lots of starting conformers
    mol.generate_conformers(n_conformers=some_large_number, rms_cutoff=0.25*unit.angstrom)
    sys = ff.create_openmm_system(mol)
    min_confs = []
    for conf in mol.conformers:
        new_conf = minimize_coords(sys, conf)
        new_energy = calc_energy(sys, new_conf)
        min_confs.append([new_conf, new_energy])
    # Sort from low to high energy, so the minimum energy confs are written first
    min_confs.sort(key=lambda x: x[1])
    # If we want to add logic to remove high-energy conformers in a subsequent release, we'd do the filtering here
    mol_copy = Molecule(mol)
    for idx, (min_conf, energy) in enumerate(min_confs):
        mol_copy.conformers = None
        mol_copy.add_conformer(min_conf)
        mol_copy.properties['minimized_energy_kcal_mol'] = energy / unit.value_in_unit(unit.kilocalorie_per_mole)
        mol_copy.write(f'{mol_name}_conf{idx}.sdf', file_format='sdf')

(note the setting of a low RMS cutoff in generate_conformers, so we get lots of closely-spaced conformers)
(and I also forgot to add the conditional logic for pre-existing molecule charges,a nd teh grab the final ones from return_topology)

Should we support non-mainline force fields? In particular, SMIRNOFF99Frosst (hooking in other things like GAFF via openmmforcefields would be a nice feature but out of scope here)

Let's try to support everything that we can dig up from get_available_force_fields. But we can save openmmforcefields integration/GAFF, for a subsequent release.

The current setup is exclusively file I/O, i.e. taking in some file and writing out. Should there eventually be an option to instead pipe the contents of the SDF file(s) to STDOUT?

Eventually, yes. It's not clear exactly what format would be intended from the piping (since the file name is important in the context of the output -- It indicates the parent molecule and the energy ranking of this conformer)

I'd recommend using click (probably with click-option-group) rather than argparse.
Very nice to use, creates nice help pages, and can easily and programatically create new CLI's e.g. I programmatically create some in nonbonded.

@j-wags thanks again for all the feedback. I think I've addressed everything, but the changes are enough to justify another pass through

Thanks for the detailed spec and thorough reviews @j-wags!


[stable/mssql-linux] Added support for SQL Agent and loadBalancerIP

What this PR does / why we need it:
Added support for SQL Agent and loadBalancerIP
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

Mentioning @thomasliddledba for review

@maorfr Hi, can you have a quick look over this small PR, please?

/assign @thomasliddledba

i just added @thomasliddledba as a trusted collaborator, lets give him a chance to accept and review


Suggestion: Add Permissions-Policy as configurable option to SecureHeaders GatewayFilter

Hello,
i would like to suggest to add Permissions-Policy as an option toSecureHeaders GatewayFilter,
so that it's part of existing security component and easy to apply when sensible.
Motivation:
As part of a penetration test report we received a suggestion to apply Permissions-Policy. Unfortunately, this does not seem to be an option available via the SecureHeaders GatewayFilter.
To  quote from https://developer.chrome.com/en/docs/privacy-sandbox/permissions-policy/
"Permissions Policy, formerly known as Feature Policy, allows the developer to control the browser features available to a page, its iframes, and subresources, by declaring a set of policies for the browser to enforce."
I'd be happy to contribute

we need it too!
it would be great having it by default as part of the existing SecureHeaders GatewayFilter

PRs welcome

Cheers. I'll look into it.


Redirect/additional files to download latest version

Gogs has a set of "latest" files (e.g. gogs_latest_linux_amd64.tar.gz) available for download, which makes getting the latest version easier. It would be nice if dl.gitea.io had this feature as well.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41763446-redirect-additional-files-to-download-latest-version?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github).

Since we are also backporting fixes it's pretty difficult to declare latest within an automated publishing process.

In fact, you can find them in https://dl.gitea.io/gitea/master/

In fact, you can find them in https://dl.gitea.io/gitea/master/

But it's not exactly the same. I think he refers to latest stable release and not to the master release. But this is difficult to do it automatically since we are also backporting to older minor releases, in terms of the CI server this backport should be latest stable release even if we already released a new minor version.


delete unused translations entries

( fix #311 )

remove unused
specification keys name
order by keys ASC

Could you include a script in package.json for finding duplicates entries?

please as mentioned by @decentraliser, add a package.json script to identify keys that are never used in src/
"lint:i18n": "...."

There is a problem when i use plug-ins for testing.
When i18n is used in a function, the variable is marked as missing and the actual value is marked as unused.
I don't have a good way to solve it,  do you have any suggestions
@evias @decentraliser

Yeah, I'm pretty sure a perfect solution doesn't exist .
As long as the script is not in the lint / build workflow, it's ok. Try to
check how other people handle this case
On Wed, May 20, 2020, 16:13 Karma<EMAIL_ADDRESS>wrote:

please as mentioned by @decentraliser https://github.com/decentraliser,
add a package.json script to identify keys that are never used in src/
"lint:i18n": "...."
There is a problem when i use plug-ins for testing.
When i18n is used in a function, the variable is marked as missing and the
actual value is marked as unused.
I don't have a good way to solve it, do you have any suggestions
@evias https://github.com/evias @decentraliser
https://github.com/decentraliser
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nemfoundation/symbol-desktop-wallet/pull/364#issuecomment-631314899,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIWPBP3LRFIYHVW34ZAGUPLRSOGKPANCNFSM4ND6ZN7Q
.

Now in pr, I manually clean up the useless i18n keys, using ASC sorting and normalizing the naming of keys. ASC sorting can provide a convenient way to sort out more languages in the future, and if we follow this rule later, it will be easier to manage i18n files. However, there is no lint method that works for i18n for the time being, because i18n may appear in the enumeration of TS or the variable of VUE in the program. Even if the check can be achieved, it needs to be proofread manually, not to mention the fact that none of the three languages are complete.
therefore.
Please help review and merge PR, for further optimization on this basis. For i18n file script management, I will build a new issue for processing, otherwise more merge may invalidate the current work.
we have not found a solution, if you have a good script implementation,  please recommend, I will take the time to study the implementation and complete the modification.


Docker build failed version 10.7 Step 5/24

Docker build failed with version 10 of Dockerfile into step 5/24

Step 5 is package installation and verification with gpg, if you try building the image a few more times it will probably work
https://github.com/docker-library/official-images/issues/4252#issuecomment-381783035

TLDR; GPG servers are extremely flaky . . .

This is what we do for GPG issues https://github.com/docker-library/official-images/issues/4252#issuecomment-405749749

See also https://github.com/docker-library/faq#openpgp--gnupg-keys-and-verification


Directory Doesn't Exist

If the 'xorg.conf.d' directory isn't already present, an error is thrown.

This is because the use of 'touch', does not create directories, only files.
Instead use 'mkdir' to create the directory before attempting 'touch'.


ZVM: Instance UI optimization

When creating new instance, optimize the "Image" display, for example, use "Image_name/OS_version/Hypervisor_type"
Instance page which shows all instances:

Move actions out of "ChangeStatue"
For z/VM instance, actions are "Start" and "Stop"

We have redesigned the UI. Close this issue now.

We have redesigned the UI. Close this issue now.


Re-Added and Fixed Mori Page

Fixed one

Please check out: https://wiki-uripl2bib-hyper-star-labs.vercel.app/ to make sure it looks good.

@kamilatte Please make sure your commit it not being blocked.


one at a time sensitivity analysis

This PR has the set up dakota and cyclus scripts for one at a time sensitivity analysis of introduction date of advanced reactors

Hello @gwenchee! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file dakota/oat/cooling-time/cooling-time.py:

Line 24:46: E261 at least two spaces before inline comment

In the file dakota/oat/fleet-share/fleet-share.py:

Line 24:46: E261 at least two spaces before inline comment
Line 24:47: E262 inline comment should start with '# '
Line 25:56: E231 missing whitespace after ','
Line 25:73: E231 missing whitespace after ':'
Line 25:80: E501 line too long (97 > 79 characters)

In the file dakota/oat/transition-year/transition-year.py:

Line 4:1: E402 module level import not at top of file
Line 6:1: E402 module level import not at top of file
Line 7:1: E402 module level import not at top of file
Line 8:1: E402 module level import not at top of file
Line 24:46: E261 at least two spaces before inline comment
Line 24:47: E262 inline comment should start with '# '

@pep8speaks pep8ify

Here you go with the Pull Request ! The fixes are suggested by autopep8.
@gwenchee


Container restarting and I can't connect to UI of openvp-ui

After deploying the docker containers for openvpn-server and openvpn-ui, the containers are a status restarting.
#docker logs -f openvpn
Notice
'init-pki' complete; you may now create a CA or requests.
Your newly created PKI dir is:

/usr/share/easy-rsa/pki

Using Easy-RSA configuration:

undefined

EasyRSA path: /usr/share/easy-rsa OVPN path: /etc/openvpn
Setting up public key infrastructure...
Also I can't connect to openvpn-ui
#docker logs -f openvpn-ui
Init. OVPN path: /etc/openvpn
Starting OpenVPN UI!
Config file: conf/app.conf
table user already exists, skip
table settings already exists, skip
table o_v_config already exists, skip
table o_v_client_config already exists, skip
table easy_r_s_a_config already exists, skip
[ORM]2024/05/29 13:50:35  -[Queries/default] - [  OK / db.QueryRow /     0.0ms] - [SELECT id, login, is_admin, name, email, password, lastlogintime, created, updated FROM user WHERE name = ? ] - Administrator
2024/05/29 13:50:35.556 [D] [models.go:66]  {1  true Administrator root@localhost $s2$16384$8$1$K7jKDSNqzVv23wDF9mAboziv$sXkbaZJERFdKMr7oIK8hW5U4B5xaHddm0Au+z/fpcfw=  0001-01-01 00:00:00 +0000 UTC 2024-05-29 11:32:12.49214737 +0000 UTC 2024-05-29 11:32:12.492148552 +0000 UTC}
[ORM]2024/05/29 13:50:35  -[Queries/default] - [  OK / db.QueryRow /     0.0ms] - [SELECT id, profile, m_i_address, m_i_network, o_v_config_path, easy_r_s_a_path, created, updated FROM settings WHERE profile = ? ] - default
2024/05/29 13:50:35.556 [D] [models.go:106]  {1 default openvpn:2080 tcp /etc/openvpn /usr/share/easy-rsa 2024-05-29 11:32:12.49317661 +0000 UTC 2024-05-29 11:32:12.493177311 +0000 UTC}
[ORM]2024/05/29 13:50:35  -[Queries/default
Thank you to help me.

Hi @Koudoussou,
Your logs output end on Setting up public key infra... means OpenVPN server starting first time and need some time to generate everything:
EasyRSA path: /usr/share/easy-rsa OVPN path: /etc/openvpn
Setting up public key infrastructure...

Just be patient and it will create all the infrastructure.
OpenVPN-UI logs also fine.

Hi @Koudoussou how is it going? Could we close this one?

Hi @d3vilh
Still same output. Container are still restarting.

Still same output. Container are still restarting.

Could you share the docker logs openvpn and docker logs openvpn-ui
Openvpn server logs should give us understanding why it is restarting.
Your docker-compose.yml content would help as well.

$docker logs openvpn
EasyRSA path: /usr/share/easy-rsa OVPN path: /etc/openvpn
Setting up public key infrastructure...

Notice
------
'init-pki' complete; you may now create a CA or requests.

Your newly created PKI dir is:
* /usr/share/easy-rsa/pki

Using Easy-RSA configuration:
* undefined

cp: can't stat '/etc/openvpn/config/easy-rsa.vars': No such file or directory
EasyRSA path: /usr/share/easy-rsa OVPN path: /etc/openvpn
Setting up public key infrastructure...

=====================
$ docker logs openvpn-ui
Init. OVPN path: /etc/openvpn
Starting OpenVPN UI!
Config file: conf/app.conf
table `user` already exists, skip
table `settings` already exists, skip
table `o_v_config` already exists, skip
table `o_v_client_config` already exists, skip
table `easy_r_s_a_config` already exists, skip
[ORM]2024/06/24 11:52:52  -[Queries/default] - [  OK / db.QueryRow /     0.0ms] - [SELECT `id`, `login`, `is_admin`, `name`, `email`, `password`, `lastlogintime`, `created`, `updated` FROM `user` WHERE `name` = ? ] - `Administrator`
2024/06/24 11:52:52.087 [D] [models.go:66]  {1  true Administrator root@localhost $s2$16384$8$1$K7jKDSNqzVv23wDF9mAboziv$sXkbaZJERFdKMr7oIK8hW5U4B5xaHddm0Au+z/fpcfw=  0001-01-01 00:00:00 +0000 UTC 2024-05-29 11:32:12.49214737 +0000 UTC 2024-05-29 11:32:12.492148552 +0000 UTC}
[ORM]2024/06/24 11:52:52  -[Queries/default] - [  OK / db.QueryRow /     0.0ms] - [SELECT `id`, `profile`, `m_i_address`, `m_i_network`, `o_v_config_path`, `easy_r_s_a_path`, `created`, `updated` FROM `settings` WHERE `profile` = ? ] - `default`
2024/06/24 11:52:52.088 [D] [models.go:106]  {1 default openvpn:2080 tcp /etc/openvpn /usr/share/easy-rsa 2024-05-29 11:32:12.49317661 +0000 UTC 2024-05-29 11:32:12.493177311 +0000 UTC}
[ORM]2024/06/24 11:52:52  -[Queries/default] - [  OK / db.QueryRow /     0.0ms] - [SELECT `id`, `profile`, `func_mode`, `management`, `script_security`, `user_pass_verify`, `device`, `port`, `proto`, `o_v_config_topology`, `keepalive`, `max_clients`, `o_v_config_user`, `o_v_config_group`, `o_v_config_client_config_dir`, `ifconfig_pool_persist`, `ca`, `cert`, `key`, `crl`, `dh`, `t_l_s_control_channel`, `t_l_s_min_version`, `t_l_s_remote_cert`, `cipher`, `o_v_config_ncp_ciphers`, `auth`, `server`, `route`, `push_route`, `d_n_s_server1`, `d_n_s_server2`, `redirect_g_w`, `o_v_config_logfile`, `o_v_config_log_verbose`, `o_v_config_status_log`, `o_v_config_status_log_version`, `custom_opt_one`, `custom_opt_two`, `custom_opt_three` FROM `o_v_config` WHERE `profile` = ? ] - `default`
2024/06/24 11:52:52.088 [D] [models.go:163]  {1 default {0 openvpn:2080 tcp   tun 1194 udp subnet 10 120 100 nobody nogroup /etc/openvpn/staticclients pki/ipp.txt pki/ca.crt pki/issued/server.crt pki/private/server.key pki/crl.pem pki/dh.pem tls-crypt pki/ta.key tls-version-min 1.2 remote-cert-tls client AES-256-GCM AES-256-GCM:AES-192-GCM:AES-128-GCM SHA512 server <IP_ADDRESS> <IP_ADDRESS> route <IP_ADDRESS> <IP_ADDRESS> push "route <IP_ADDRESS> <IP_ADDRESS>" push "dhcp-option DNS <IP_ADDRESS>" push "dhcp-option DNS <IP_ADDRESS>" push "redirect-gateway def1 bypass-dhcp" /var/log/openvpn/openvpn.log 3 /var/log/openvpn/openvpn-status.log 2 # Custom Option One # Custom Option Two
# client-to-client # Custom Option Three
# push "route <IP_ADDRESS> <IP_ADDRESS> net_gateway"
# push block-outside-dns}}
[ORM]2024/06/24 11:52:52  -[Queries/default] - [  OK / db.QueryRow /     0.0ms] - [SELECT `id`, `profile`, `func_mode`, `device`, `server_address`, `port`, `resolve_retry`, `o_v_client_user`, `o_v_client_group`, `persist_tun`, `persist_key`, `remote_cert_t_l_s`, `open_vpn_server_port`, `proto`, `ca`, `cert`, `key`, `ta`, `cipher`, `redirect_gateway`, `auth`, `auth_no_cache`, `tls_client`, `verbose`, `auth_user_pass`, `t_f_a_issuer`, `custom_conf_one`, `custom_conf_two`, `custom_conf_three` FROM `o_v_client_config` WHERE `profile` = ? ] - `default`
2024/06/24 11:52:52.088 [D] [models.go:210]  {1 default {0 tun <IP_ADDRESS> 1194 resolv-retry infinite nobody nogroup persist-tun persist-key remote-cert-tls server 1194 udp     AES-256-GCM redirect-gateway def1 SHA512 auth-nocache tls-client 3  MFA%20OpenVPN-UI #Custom Option One #Custom Option Two #Custom Option Three}}
[ORM]2024/06/24 11:52:52  -[Queries/default] - [  OK / db.QueryRow /     0.0ms] - [SELECT `id`, `profile`, `easy_r_s_a_d_n`, `easy_r_s_a_req_country`, `easy_r_s_a_req_province`, `easy_r_s_a_req_city`, `easy_r_s_a_req_org`, `easy_r_s_a_req_email`, `easy_r_s_a_req_ou`, `easy_r_s_a_req_cn`, `easy_r_s_a_key_size`, `easy_r_s_a_ca_expire`, `easy_r_s_a_cert_expire`, `easy_r_s_a_cert_renew`, `easy_r_s_a_crl_days` FROM `easy_r_s_a_config` WHERE `profile` = ? ] - `default`
2024/06/24 11:52:52.088 [D] [models.go:247]  {1 default {org UA KY Kyiv SweetHome<EMAIL_ADDRESS>MyOrganizationalUnit server 2048 3650 825 30 180}}
2024/06/24 11:52:52.097 [I] [server.go:280]  http server Running on http://:8080

Kindly find my docker-compose.txt

It can't find /etc/openvpn/config/easy-rsa.vars file, which is here by default.:
cp: can't stat '/etc/openvpn/config/easy-rsa.vars': No such file or directory

We have to be sure that file is there by the volume path:
papa@hiphop:~/build/openvpn-server $ ls -l ./config/easy-rsa.vars
-rwxr-xr-x 1 papa papa 488 Jun  6 19:49 ./config/easy-rsa.vars
papa@hiphop:~/build/openvpn-server $

With correct local permissions: chmod 644 ./config/easy-rsa.vars
And listed inside the container:
``bash
papa@hiphop:~/build/openvpn-server $ docker exec -it openvpn /bin/bash -c "ls -l /etc/openvpn/config"
total 12
-rwxr-xr-x    1 1000     1000           467 Jun  6 16:49 client.conf
-rwxr-xr-x    1 1000     1000           488 Jun  6 16:49 easy-rsa.vars
-rwxr-xr-x    1 1000     1000          1062 Jun  6 16:49 old-server.conf
papa@hiphop:~/build/openvpn-server $

Here is [the tree](https://github.com/d3vilh/openvpn-server/tree/main?tab=readme-ov-file#openvpn-server-pstree-structure) container expects to run (./pki will be created during the init).

What do you store in this volume:
```bash
    volumes:
      - ./openvpn-data/conf:/etc/openvpn

Ok I will follow your step and get back to you.
Thank you for your support.

Thank your support.
It work now.
however, I would to implement to VPN server in failover, how can support me to do it.
May be a good documentation to implement (Load balancing). The client will use the same profile (when one server will be down the second will be used as main server so the clients can continue to use their same profile. no need to have more profile.
Thank you again


optimize: replace if..else by match

Thanks @harlanc

what's the difference between this one and https://github.com/webrtc-rs/rtp/pull/10?

@rainliu the contents are the same but I use different users to commit, @metaclips  know the reasons.

@harlanc I don't think its possible to delete PR records. We could delete the commit from the PR though.


can we not use jquery-datepicker transalations?

can you provide transalation js too?

There is only one translation which comes with plugin, it's English:
https://github.com/digaev/jquery-time-duration-picker/blob/0c04182b4803dd5726ced844f3614006e0f0a26e/src/jquery-time-duration-picker.js#L33
If you want to add any other language you should translate it by yourself (according to plural rules of desired language).
Here is example of Russian translation: https://gist.github.com/digaev/e7d92abad1d410372189711f94369237
HTML:
<!-- First include plugin -->
<script src="jquery-time-duration-picker.js"></script>

<!-- Then include translation file -->
<script src="jquery-time-duration-picker_ru.js"</script>

<!-- And initialize widget -->
<script>
 // Set global options
$.timeDurationPicker.defaults({ lang: 'ru_RU' });

// Or set it for each widget
$('#duration').timeDurationPicker({
  lang: 'ru_RU'
});
</script>


Add stripe checkout

Initially we'll use Stripe for financial donations. Notes:

[ ] Link to Stripe checkout
[ ] Must be able to take payments of $5, $50, or variable depending on user submission
[ ] Secrets keys to be controlled by environment variables

For an example of how to execute on this, see this API file.
Dependent on #1 and #4

Imported the API file from 2784440. Not tested in any way.


Add GRPCRoute e2etest cases

What type of PR is this?

Which issue does this PR fix:

Add GRPCRoute e2etest cases
Make sure test framework could load GRPCRoute CRD and TargetGroupPolicy CRD

Testing done on this change:

Automation added to e2e:

Newly added e2etest cases can pass, all e2etest cases can pass
------------------------------

Ran 15 of 15 Specs in 1844.288 seconds
SUCCESS! -- 15 Passed | 0 Failed | 0 Pending | 0 Skipped

Will this PR introduce any new dependencies?:

Will this break upgrades or downgrades. Has updating a running cluster been tested?: No
Does this PR introduce any user-facing change?: No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
4003

Relevant Lines:
10214

💛  - Coveralls

when we call testFramework.ExpectCreated(ctx, grpcRoute) is it expected that HttpRules should be available
immediately? If yes, we should not use eventually

Controller need some time to reconcile and create them, need to use Eventually, to wait for creating rules


Update Drone YML

Drop mustache syntax for $$
Update slack to use webhooks
Signed-off-by: Dave Tucker<EMAIL_ADDRESS>

Do not merge. Still having issues :(


Remove v1 telemetry from Cody

Test plan

CI
Test that pnpm run dev runs without error and the Cody extension response to user interactions (e.g. a chat) without error

Sorry @umpox if you're not the right reviewer from the Cody team, you were just suggested by GitHub 😅 —feel free to tag someone else.


React Content Query - Fetching results recursively across folders

Category

[ ] Question
[ ] Bug
[x] Enhancement

Expected or Desired Behavior
When querying a list/library with some folders in it, it would nice to be able to configure the Content Query WebPart to either return items/documents and root folders only (without returning items/documents inside folders), or return recursive results with all items/documents inside subfolders.
Observed Behavior
Right now, the React Content Query only returns items and folder at the first level of the a list or library. It works great when items/documents are all flat within the list/library, but when they are located within folders, the WebPart returns the folders and ignores the elements inside the folders.
Steps to Reproduce
Use the Content Query WebPart to query a library with the following structure :

Document 1
Document 2
Folder 1

SubDocument 1
SubDocument 2

Currently, instead of returning 4 results, the WebPart will return 3 results :

Document 1
Document 2
Folder 1.

Fixed with pull #463
Closing this issue.

the recursive toggle with "{0}" in caml xml is actually working?

Well yes it does it is an OOTB option for CAML queries?


Help with I2C_eeprom_cyclic_store

I'd like to use the I2C_eeprom_cyclic_store example as a template for a project I need to port:
// default values at startup, if nothing is stored in the eeprom
int DryTemperature = 35;    // Destination Dry Temperature in degree celsius
int DryTime_Hours = 1;
int DryTime_Minutes = 30;
int curDryTime_Hours = 1;
int curDryTime_Minutes = 30;

// port to external eeprom
// I2C_eeprom ee(0x50, I2C_DEVICESIZE_24LC64);

/***
 * Saves the current settings for temperature, drying hours and minutes
 */
void SaveSettings() {
  EEPROM.write(0, (uint8_t) 17);
  EEPROM.write(1, (uint8_t) DryTemperature);
  EEPROM.write(2, (uint8_t) DryTime_Hours);
  EEPROM.write(3, (uint8_t) DryTime_Minutes);
}

/***
 * Reads the last saved settings for temperature, drying hours and minutes
 */
void ReadSettings() {
  uint8_t isInit = EEPROM.read(0);

  if (isInit == 17) {
    DryTemperature = EEPROM.read(1);
    DryTime_Hours = EEPROM.read(2);
    DryTime_Minutes = EEPROM.read(3);
  }
}

but it's hard to figure out how to use that I2C_eeprom_cyclic_store example in a way that matches the old EEPROM library.
These lines for example:
#define MEMORY_SIZE 0x2000 // Total capacity of the EEPROM
#define PAGE_SIZE 64 // Size of write page of device, use datasheet to find!

I have no idea what to use here for my AT24C64D device on 0x50.
It feels a lot of the examples are more unit test type of examples and I'm missing simple hello world kind of stuff.

I found a table in the readme (Test results determineSize()), indicating the page size for my 24LC64 is 32:

Type
returns
Memory
Page Size
Notes

-
0

connect error, check device address / wiring

24LC512
65536
64 KB
128

24LC256
32768
32 KB
64

24LC128
16384
16 KB
64

24LC64
8192
8 KB
32

24LC32
4096
4 KB
32
not tested with hardware

24LC16
2048
2 KB
16

24LC08
1024
1 KB
16

24LC04
512
512 b
16

24LC02
256
256 b
8

24LC01
128
128 b
8

so I defined:
#define PAGE_SIZE 32

the default MEMORY_SIZE is 0x2000 :
#define MEMORY_SIZE 0x2000 // Total capacity of the EEPROM

which, according to https://www.rapidtables.com/convert/number/hex-to-decimal.html?x=0x2000, equates to 8192, the correct size (when looking at table).

It feels a lot of the examples are more unit test type of examples and I'm missing simple hello world kind of stuff.

Most examples come indeed from sketches testing the library, and yes, tutorials are not included.
Also not all platforms/boards are supported and / or tested. Time is a scarce resource..

you could also used
#define MEMORY_SIZE 8192  // Total capacity of the EEPROM

would work as it is just another representation of the same number.

Yes, a lot of documentation can be improved. I'll add a note in my local copy so it will come with the next update.

@thijstriemstra
If the question seems to be solved you may close the issue.

thanks!


This library spams the log with debug messages

D/PageIndicator: dot 1 fraction:	0.01759255

I've just commented the line with this log in the latest version. Thank you!


Combine MRE with other  extensions

Feature Request:
MRE-product should be able to load and execute code in external DLLs, typically an existing MVextension.dll.
MIM-2016 (and earlier versions) can only have one DLL defined for "Metaverse Rule Extension". If this DLL is already being used, it is a blocking situation with regards to bringing thedynamic flexibility of MRE into the configuration.
I wish MRE can have it's existing rule methods extended with the ability to execute another DLL for provisioning against one or more spcific MA's and still use its own rules for other MA's. This would significantly add to the flexibility and usability of the MRE product, in particular for old FIM/MIM installations with an exisiting MVextension.dll which can not be easily abandoned.
MRE with this funcionality could then maybe also completely replace the old "Metverse Router" solution that was introduced by Microsoft many years ago.

If I put out a draft release shortly, will you be able to test and give feedback before final release?

There is a draft release out. See if it fits your needs. Input are very welcome - also for documentation :-)
Find it here

Hi,
Genereally, it seems to be doing exactly what I was hoping for, but I have a few questions. See attached PDF.
MRE-test01.pdf

Quick answers to above PDF

Fixed
rule names are only for convenience. can be duplicate
New tracing functionality has been added; old registry key is deprecated and not supported. I updated the Logging page in the Wiki. Thanks for noticing.
You can only have one target MA per rule. No check done for this. Guess MRE will pick the first. You need a rule per MA.

Thank you, looks better now, but I have attached another file for you. I have a feeling this is in our own legacy code, but let me know what you think. Just remember; there are no errors when using the legacy MVextension directly.
MRE-test02.pdf

Theres a logging statement in MRE that refers to the displayName attribute. I guess the error occurs when the displayname attribute is not bound to particular objects. It’s not your code. It’s MRE. Are things otherwise working as expected besides an error being logged ? If so, I’ll fix it in next release

Could you try binding the displayName attribute to the object in question in the Metaverse Designer and see if error goes away?

I've changed the logging statement to not use the displayName and added a new .zip to the release.
Could you test that - get the <IP_ADDRESS> zip here

Perfect! Provisioning now updates both AD and our Shift-planning system for both people and their positions!  I still have some work to do to integrate with other custom MA's, but this looks very promising! Thank you very much!
I have attached a small part of a log-file, and I'd appreciate if you have the time to explain why the rule "GAT-Job" add more log-information than the two rules for "AD-Person" and "GAT-Person". I made them all exactly the same, except they trigger on different object in Metaverse. RTFM?
mre.20180914-001.LOG

Great. I cannot see why there is a difference in logging but looks like something with some rules having conditions and others not. I dont think you need to worry about that if things are working. I would have to spend time on your installation to further investigate and right now I'm quite booked :-)

If there is nothing further by tomorrow, I'll close this thread - or you can do it if you're happy with the current version


CP-304: Critical Path

Form unknown CodePlex user on Sunday, 13 May 2007 12:31:53
It is a DAG. I build a database schema representation as a graph. Vertexes are tables, edges are foreign key constraints.
I'm really illiterate on graph theory, hence why I'm asking if there is a way to find the critical path using the existing framework or if I have to modify one of the algorithms (DijkstraShortestPathAlgorithm perhaps) to do this. A DAG exactly represents my problem hence why I chose it.
As for the exact path, won't the DFS algorithm give me the shortest path to a node? Assuming, that I have multiple paths to a node, I need the critical path, not the shortest path.
Thank you.
-Nick

Importer error


boards: arm64: Add support for Intel SoC FPGA Agilex5 platform.

The Intel Agilex® 5 FPGA product family extends the innovations of the Intel Agilex® FPGA portfolio to midrange FPGA applications.
Added support for Intel SoC FPGA Agilex5 platform in the Zephyr with the following sub-modules and updates.

Add 'intel_socfpga_agilex5_socdk' board
Add 'agilex5' soc to Intel Agilex soc series
Reset manager for Intel SoC FPGA Agilex5 platform
Clock manager for Intel SoC FPGA Agilex5 platform
UART, add an optional module reset line functionality
PSCI, add support for multiple PSCI versions 0.2v and 1.1v
A simple and generic CLI sample application to interact with Intel Agilex5 platform drivers

Also, could you use samples/subsys/shell/shell_module/ instead of creating a new sample? The shell_module should also provide a shell which you can use to query devices.

We wanted to keep simple and light CLI application for Intel SoC FPGA products line and that's where we introduce this application.
Sure, will try out the suggested sample and test. Will keep you updated. Thank you.

Hello @carlocaione
All the review comments are addressed and all the required CI checks are passed.
Kindly let me know your inputs on the further steps.
Thank you.
Regards,
Girisha Dengi

@fabiobaltieri Addressed all the review comments. Kindly take a look. Thank you.

All the required approvals are in place - kindly take a look and help us to merge. Thank you.

Unfortunately I don't have that power. But the mighty @fabiobaltieri has it.

@dcpleung Kindly review and provide your feedback. Thank you.

All the required approvals are in place - kindly take a look and help us to merge. Thank you.

Unfortunately I don't have that power. But the mighty @fabiobaltieri has it.
Also @dcpleung needs to review this again.

Thank you @carlocaione for the info.

@fabiobaltieri  All the review comments are addressed and all the approvals are in place.
Kindly take a look and help us to merge.
Thank you.


Way to be notified that server has closed websocket

Hi,
We are using this library  in order to test at acceptance level our websocket application.
We've tests like "if your are connected to the app through the websocket and don't send anything in 5 seconds, server will close the communication".
Is there a way to be notified through the WebsocketClient when server close the websocket or communication is broken?
Regards,
Sergi

Hello!
Have you tried WebsocketHandler.onFailure?

It looks fine in the code and seems what I need. Unfortunately the method onFailure is not in last version tagged of the websocket client (0.2.2).
Do you plan to release this soon?
Lots of thanks for your work, impressive project 💃

Well, I've spent some time recently trying to reproduce this situation and discovered that onFailure didn't help. So I had to add test-server which is able to drop connection if client asks and extended examples to show how it is possible to handle exceptions onFailure and feature like onClose using builder semantic. Hope it will help. And yes I am going to release it today.

I've just published v0.2.3. Please take a look. All the best!

Lots of thanks Andy!

I will wait until version is published in maven repository, test it and let you know if it works fine.
Thanks for your effort!
Regards from Letgo Chat team!

I've downloaded it thourgh bintray and it works like charm!
Thank you!

Good! All the best!
чт, 25 мая 2017 г. в 16:16, Sergi GP<EMAIL_ADDRESS>
I've downloaded it thourgh bintray and it works like charm!
Thank you!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/andyglow/websocket-scala-client/issues/9#issuecomment-304007434,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AELJ3vR6ARNR2bVW8NhXjHBOGkk9gPGKks5r9X8jgaJpZM4NjmDS
.


[Question] Where are the functions that parse module, and function information per log message? (hashtag566)

None

Hey
These informations are extracted from a Python [frame]( object, you can probably find the implementation you're looking fore here:


Hover states and right alignment do not apply using altImports

Issue report
Expected Behavior

Hover states and right alignment apply while using the altImport CSS.
Current Behavior

Hover states and right alignment do not apply while using the altImport CSS.
Possible Solution

The CSS is not being applied due to the :host pseudo-class. Either do not use :host in the CSS or replace it when generating the altImports.
Steps to Reproduce (for bugs)

Use the following HTML. The button HTML was copied from the demo's rendering of ods-button.

    <link rel="stylesheet" href="style.css">

        <button aria-labelledby="odsButtonString" aria-label="Default state" title="Default state" class="button   ">

                Default state

        </button>

Copy altImportsCanonical/style.css into the same folder as the HTML file.
Open the HTML file in your browser.
Notice that the button does not react to hovers.

Your Environment

Version used: 1.0.521026034
Browser Name and version: Chrome 73.0.3683.103
Operating System and version (desktop or mobile): Windows 7
Link to your project: n/a

closed with https://github.com/AlaskaAirlines/OrionStatelessComponents__ods-button/commit/205cacfeba670a09c2727a93efe00f7f7099ed33


Max number of simultaneous connections

I can't find this info anywhere else, so I thought I would ask the writers of this connector.  When using DBPool what is the max number of simultaneous connections to my IBM i?  I realize the answer depends.  The application I need to support can have the possibility of at least 100 connections going on at the same time.  I know in theory 100 sounds trivial.  I would hope it could handle thousands, but it seems there was a 120 max on numbers of connections made??
Also is there any documentation on what takes place on the IBM i DBPool is created and used.  What job does it run under?  Is there a new job for each connection that is made and that job goes to standby when idle? One job per connection, or can multiple connections run in single job?  How do i safeguard against threading issues....can multiple connections ever run in same job causing issues?
I had an issue yesterday where I called a stored procedure (calling RPGLE) using DBPool.prepareExecute. The rpgle program had an exception and halted needing message answered.  This caused major issues with my DBPool.  How do I handle an exception in my stored procedure call....its like it just hangs and never returns...thus never closing the connection.
Again, I can't find this info on the web anywhere and really need to understand how DBPool works so I can design the best way possible.
Thanks for any info you can give.

Each connection and statement object requires a CLI database handle. CLI has a max limit of 32k handles per job, so conceivably the absolute max connections you could get is 32k, but you wouldn't be able to do anything with them, so more likely the max would be 16k connections + 16k statements.
These are the absolute max, however, and not indicative of actual results, though.

Each connection and statement object requires a CLI database handle. CLI has a max limit of 32k handles per job, so conceivably the absolute max connections you could get is 32k, but you wouldn't be able to do anything with them, so more likely the max would be 16k connections + 16k statements.
These are the absolute max, however, and not indicative of actual results, though.

Thanks @kadler for the info.  I figured it had to be way more than I needed but just needed to understand how it worked.
Can you tell me how I can see this CLI information on my IBM i.... when I do a work active job I do see QP0ZSPWP jobs running node, but how do I view handles, etc....or does the system do this for me...I think I am going to simple script that will allow me throw alot of connections at my node server using the idb p connector and see how far i can take it.

Thanks @kadler for the info.  I figured it had to be way more than I needed but just needed to understand how it worked.
Can you tell me how I can see this CLI information on my IBM i.... when I do a work active job I do see QP0ZSPWP jobs running node, but how do I view handles, etc....or does the system do this for me...I think I am going to simple script that will allow me throw alot of connections at my node server using the idb p connector and see how far i can take it.

AFAIK you cannot inspect the number of open CLI handles from anywhere. I don't think CLI keeps a count or anything - it's just if you try to allocate one and it can't find an open slot, it gives an error that you're out of handles.

AFAIK you cannot inspect the number of open CLI handles from anywhere. I don't think CLI keeps a count or anything - it's just if you try to allocate one and it can't find an open slot, it gives an error that you're out of handles.

There are a lot of interesting points to dive in to in regards to threading and whatnot, but I don't have time to look at those at the moment. AFAIK, calling in to the database takes place in an async worker thread, so it should not tie up the event loop - even if a connection goes in to MSGW. Of course, the connection going in to MSGW may cause problems with timeouts and whatnot, I'm not sure. If it somehow made its way back in to the connection pool while still stuck in MSGW, that would be a problem. @abmusse would know more about the connection pool behavior.

There are a lot of interesting points to dive in to in regards to threading and whatnot, but I don't have time to look at those at the moment. AFAIK, calling in to the database takes place in an async worker thread, so it should not tie up the event loop - even if a connection goes in to MSGW. Of course, the connection going in to MSGW may cause problems with timeouts and whatnot, I'm not sure. If it somehow made its way back in to the connection pool while still stuck in MSGW, that would be a problem. @abmusse would know more about the connection pool behavior.

One job per connection, or can multiple connections run in single job?

idb-connector runs SQL CLI in SQL Server Mode, where  Each connection runs in its own job.

Is there any documentation on what takes place on the IBM i DBPool is created and used?

There some docs on DBPool here
The default for the pool is to create 8 connections on when its created. This is can be adjusted by setting incrementSize config option:
const pool = new DBPool({ url: '*LOCAL' }, { incrementSize: 3 })

pool.attach inds and returns the first available Connection and sets availability to false. If no available connection is found, connections will be incremented by the incrementSize, which defaults to 8.
When you call pool.detach sets the connection availability back to true and closes/cleans up statements on the connection.

The rpgle program had an exception and halted needing message answered.

As for the MSGW scenario, From a pool stand point that connection in MSGW should be unavailable to be reused until pool.detach is called on it. I've ran had a MSGW scenerio before attempting to delete a schema using idb-connector, see  https://github.com/IBM/nodejs-idb-connector/issues/128. I think we need to further test the MSGW scenerio to make sure things are working properly and that we are not tying up the event loop.
@beckhamrryyaann
Did the connection in MSGW completely tie up the event loop not allowing further lines of codes to process?

One job per connection, or can multiple connections run in single job?

idb-connector runs SQL CLI in SQL Server Mode, where  Each connection runs in its own job.

Is there any documentation on what takes place on the IBM i DBPool is created and used?

There some docs on DBPool here
The default for the pool is to create 8 connections on when its created. This is can be adjusted by setting incrementSize config option:
const pool = new DBPool({ url: '*LOCAL' }, { incrementSize: 3 })

pool.attach inds and returns the first available Connection and sets availability to false. If no available connection is found, connections will be incremented by the incrementSize, which defaults to 8.
When you call pool.detach sets the connection availability back to true and closes/cleans up statements on the connection.

The rpgle program had an exception and halted needing message answered.

As for the MSGW scenario, From a pool stand point that connection in MSGW should be unavailable to be reused until pool.detach is called on it. I've ran had a MSGW scenerio before attempting to delete a schema using idb-connector, see  https://github.com/IBM/nodejs-idb-connector/issues/128. I think we need to further test the MSGW scenerio to make sure things are working properly and that we are not tying up the event loop.
@beckhamrryyaann
Did the connection in MSGW completely tie up the event loop not allowing further lines of codes to process?

Thank you for the info.  I'm not really sure how to confirm it tied up my
event loop.  I did have debug=true set to my pool and this is the log it
generated during the msgw time period...
I am attaching just a small subset of the log but it basically created new
connections for each request that hit the server.  It got stuck in this
loop.  I was able to answer the msgw and fix error inmy rpg code and the
job ended...then restarted my node server and it began to work as
expected.
I plan on creating a test server and will replicate this issue again with
hopefully more info.
Finding available Connection...
Maximum available connections reached.
Creating Connection 104...
Connection 104 created
Creating Connection 105...
Connection 105 created
Creating Connection 106...
Connection 106 created
Creating Connection 107...
Connection 107 created
Creating Connection 108...
Connection 108 created
Creating Connection 109...
Connection 109 created
Creating Connection 110...
Connection 110 created
Creating Connection 111...
Connection 111 created
Increased connections by 8 to 112 (total).
Connection 104 found
Preparing Statement...
Prepare().
****BATCH
Finding available Connection...
Connection 105 found
Preparing Statement...
Prepare().
****BATCH
Finding available Connection...
Connection 106 found
Preparing Statement...
Prepare().
****BATCH
Finding available Connection...
Connection 107 found
Preparing Statement...
Prepare().
****INTERACTIVE
Finding available Connection...
Connection 108 found
Preparing Statement...
Prepare().
****INTERACTIVE
Finding available Connection...
Connection 109 found
Preparing Statement...
Prepare().
****BATCH
Finding available Connection...
Connection 110 found
Preparing Statement...
Prepare().
****BATCH
Finding available Connection...
Connection 111 found
Preparing Statement...
Prepare().
On Wed, Jan 27, 2021 at 1:40 PM Abdirahim Musse<EMAIL_ADDRESS>wrote:

One job per connection, or can multiple connections run in single job?
idb-connector runs SQL CLI in SQL Server Mode
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_72/cli/rzadpsqlapd.htm,
where Each connection runs in its own job.
Is there any documentation on what takes place on the IBM i DBPool is
created and used?
There some docs on DBPool here
https://github.com/IBM/nodejs-idb-pconnector/tree/master/docs#class-dbpool
The default for the pool is to create 8 connections on when its created.
This is can be adjusted by setting incrementSize config option:
const pool = new DBPool({ url: '*LOCAL' }, { incrementSize: 3 })
pool.attach
https://github.com/IBM/nodejs-idb-pconnector/tree/master/docs#dbpoolattach
inds and returns the first available Connection and sets availability to
false. If no available connection is found, connections will be incremented
by the incrementSize, which defaults to 8.
When you call pool.detach http://DBPool.detach(connection) sets the
connection availability back to true and closes/cleans up statements on the
connection.
The rpgle program had an exception and halted needing message answered.
As for the MSGW scenario, From a pool stand point that connection in MSGW
should be unavailable to be reused until pool.detach is called on it.
I've ran had a MSGW scenerio before attempting to delete a schema using
idb-connector, see IBM/nodejs-idb-connector#128
https://github.com/IBM/nodejs-idb-connector/issues/128. I think we need
to further test the MSGW scenerio to make sure things are working properly
and that we are not tying up the event loop.
@beckhamrryyaann https://github.com/beckhamrryyaann
Did the connection in MSGW completely tie up the event loop not allowing
further lines of codes to process?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/IBM/nodejs-idb-pconnector/issues/111#issuecomment-768490805,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABOFOHBSIUXC5IFHDMO6BSDS4BM2PANCNFSM4WVG656Q
.

Thank you for the info.  I'm not really sure how to confirm it tied up my
event loop.  I did have debug=true set to my pool and this is the log it
generated during the msgw time period...
I am attaching just a small subset of the log but it basically created new
connections for each request that hit the server.  It got stuck in this
loop.  I was able to answer the msgw and fix error inmy rpg code and the
job ended...then restarted my node server and it began to work as
expected.
I plan on creating a test server and will replicate this issue again with
hopefully more info.
Finding available Connection...
Maximum available connections reached.
Creating Connection 104...
Connection 104 created
Creating Connection 105...
Connection 105 created
Creating Connection 106...
Connection 106 created
Creating Connection 107...
Connection 107 created
Creating Connection 108...
Connection 108 created
Creating Connection 109...
Connection 109 created
Creating Connection 110...
Connection 110 created
Creating Connection 111...
Connection 111 created
Increased connections by 8 to 112 (total).
Connection 104 found
Preparing Statement...
Prepare().
****BATCH
Finding available Connection...
Connection 105 found
Preparing Statement...
Prepare().
****BATCH
Finding available Connection...
Connection 106 found
Preparing Statement...
Prepare().
****BATCH
Finding available Connection...
Connection 107 found
Preparing Statement...
Prepare().
****INTERACTIVE
Finding available Connection...
Connection 108 found
Preparing Statement...
Prepare().
****INTERACTIVE
Finding available Connection...
Connection 109 found
Preparing Statement...
Prepare().
****BATCH
Finding available Connection...
Connection 110 found
Preparing Statement...
Prepare().
****BATCH
Finding available Connection...
Connection 111 found
Preparing Statement...
Prepare().
On Wed, Jan 27, 2021 at 1:40 PM Abdirahim Musse<EMAIL_ADDRESS>wrote:

One job per connection, or can multiple connections run in single job?
idb-connector runs SQL CLI in SQL Server Mode
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_72/cli/rzadpsqlapd.htm,
where Each connection runs in its own job.
Is there any documentation on what takes place on the IBM i DBPool is
created and used?
There some docs on DBPool here
https://github.com/IBM/nodejs-idb-pconnector/tree/master/docs#class-dbpool
The default for the pool is to create 8 connections on when its created.
This is can be adjusted by setting incrementSize config option:
const pool = new DBPool({ url: '*LOCAL' }, { incrementSize: 3 })
pool.attach
https://github.com/IBM/nodejs-idb-pconnector/tree/master/docs#dbpoolattach
inds and returns the first available Connection and sets availability to
false. If no available connection is found, connections will be incremented
by the incrementSize, which defaults to 8.
When you call pool.detach http://DBPool.detach(connection) sets the
connection availability back to true and closes/cleans up statements on the
connection.
The rpgle program had an exception and halted needing message answered.
As for the MSGW scenario, From a pool stand point that connection in MSGW
should be unavailable to be reused until pool.detach is called on it.
I've ran had a MSGW scenerio before attempting to delete a schema using
idb-connector, see IBM/nodejs-idb-connector#128
https://github.com/IBM/nodejs-idb-connector/issues/128. I think we need
to further test the MSGW scenerio to make sure things are working properly
and that we are not tying up the event loop.
@beckhamrryyaann https://github.com/beckhamrryyaann
Did the connection in MSGW completely tie up the event loop not allowing
further lines of codes to process?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/IBM/nodejs-idb-pconnector/issues/111#issuecomment-768490805,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABOFOHBSIUXC5IFHDMO6BSDS4BM2PANCNFSM4WVG656Q
.

I have replicated this issue...Here is what I know...I have included screen shots of the jobs that get hung when the stored procedure call to RPGLE gets hung with an exception.  If four jobs get hung in MSGW status then the node server cannot communicate with my db2 database.  The idb p connector goes into loop trying to make more connections in my pool (defaults to 8 at a time).  (see my last previous post above)  So it appears my node event loop is not getting tied up but once I get four jobs with MSGW status then my pool connections cease to work.  I don't know enough about the CLI server mode just yet to know why it stops at four.  Again I know the right answer is to never have my stored procedure call hang but in case it does happen I would like to know how to handle so my server can continue handling requests without me having to shut down server.

I have replicated this issue...Here is what I know...I have included screen shots of the jobs that get hung when the stored procedure call to RPGLE gets hung with an exception.  If four jobs get hung in MSGW status then the node server cannot communicate with my db2 database.  The idb p connector goes into loop trying to make more connections in my pool (defaults to 8 at a time).  (see my last previous post above)  So it appears my node event loop is not getting tied up but once I get four jobs with MSGW status then my pool connections cease to work.  I don't know enough about the CLI server mode just yet to know why it stops at four.  Again I know the right answer is to never have my stored procedure call hang but in case it does happen I would like to know how to handle so my server can continue handling requests without me having to shut down server.


feat: message system_content property

What type of pull request is this?

[x] Non-breaking code change
[ ] Breaking code change
[ ] Documentation change/addition
[ ] Tests change

Description

Discord hates you so welcome messages don't have content. This pr lets you get the content of system messages like that and others. Ig this is more a quality of life thing
Changes

message system_content property

Example Usage
import dis_snek as dis
@dis.listen(dis.events.Ready)
async def ready():
    channel = await bot.fetch_channel(780435741650059268)
    message = await channel.fetch_message(965107675828465694)
    if message.type == dis.MessageTypes.GUILD_MEMBER_JOIN:
        print(message.system_content) # Yay you made it, <@324504908013240330>!

Checklist

[x] I've formatted my code with Black
[x] I've ensured my code works on Python 3.10.x
[x] I've tested my code

Is this waiting on any changes before merge?

If only one person has reviewed a pr, I prefer to wait a reasonable time frame one someone else to review. I only reviewed this 14 hours ago

This is a soft deny. There are a ton of situations not covered by this, though many of them won't appear in normal situations, to be fair.
discord.py, for example, has quite a bit more.

Lol, I think "a ton" was overexaggerating but I added the rest that might occur in servers. I did not add the things related to group dms. And ya tbh I have never seen these before 😅