Cache panel does not handle imported "caches" on module level

When using from django.core.cache import caches in a module, that is loaded only before a view is processed, this caches.caches instance will not be monkey-patched via CacheHandlerPatch.
One possible workaround would be to not use enable_instrumentation / disable_instrumentation for this, but do it in debug_toolbar.panels.cache on import time.
enable_instrumentation / disable_instrumentation could then be used still to enable/disable sending the signals, but caches would be wrapped always.

Any update on #800? I'm having this issue, which causes my cache clearing on save to break while using the toolbar.
    from django.core.cache import cache
    ...

    def save(self, *args, **kwargs):
        self.slug = slugify(self.name)
        cache.clear('faq_sidebar')
        super(Topic, self).save(*args, **kwargs)

File "./venv/lib/python3.5/site-packages/django/contrib/admin/options.py" in save_model
  991.         obj.save()
File "./project/faq/models.py" in save
  35.         cache.clear('faq_sidebar')
File "./venv/lib/python3.5/site-packages/debug_toolbar/panels/cache.py" in wrapped
  33.         value = method(self, *args, **kwargs)
File "./venv/lib/python3.5/site-packages/debug_toolbar/panels/cache.py" in clear
  87.         return self.cache.clear(*args, **kwargs)
Exception Type: TypeError at /admin/faq/topic/add/
Exception Value: clear() takes 1 positional argument but 2 were given

i am not sure if my problem is related to this, but i have noticed that using redis cache with the sitewide cache framework alwasys shows "0 calls in 0.0ms" on the cache panel.  django 3.1.1, django-redis 4.12.1, django-debug-toolbar 3.1.

Total calls
Total time
Cache hits
Cache misses

0
0 ms
0
0

I have noticed that the "cache" panel does not work, it shows always 0 calls to cache whereas some are done.

I have noticed that the "cache" panel does not work, it shows always 0 calls to cache whereas some are done. (django==3.2) But don't know if the problem is related to that.

I am noticing the same issue.


Generate changelog for forked repo PR

Currently, changelog-ci does not support committing changelog from a fork repo PR because of permission issues. More research is needed on this issue.
ref: https://github.com/saadmk11/changelog-ci/issues/38

GitHub added some settings for this on https://github.com/<username>/<repo>/settings/actions page

Hi @saadmk11 , I am facing this issue on Altran-PT-GDC/Robot-Framework-Mainframe-3270-Library, see e.g. this failed job.
What settings are you referring to specifically? I tried the URL you mentioned with one of my personal project, but I don't seem to find anything useful.


[Feature Request]: Respect the htmlWhitespaceSensitivity option of Prettier

Description
I hope to be able to support treating spaces as insignificant for better code readability (just like JSX).
Prettier Playground
Suggested Solution
Respect the htmlWhitespaceSensitivity option of Prettier.
https://prettier.io/docs/en/options#html-whitespace-sensitivity
Alternatives
No response
Additional Context
No response

no

bump


Functions not showing Cold Starts

Description

When using the Python agent V1.5.0 and the latest V1.6.3 Cold starts are not being reported.
When searching my python functions over 30 days I am not seeing
Steps to reproduce the issue:

Setup lambda with IOpipe agent
Run Lambda
See no coldstarts

Describe the results you received:
I looked over a 30 day period, I see new Process ID's being create (which should generate a cold start) however no cold starts displayed
Describe the results you expected:
I would expect to see cold starts.
Additional information you deem important (e.g. issue happens only occasionally):
I have this in multiple regions with the same issue.
This issue is happening on both 1.6.3 and 1.5.0

I verified other users functions are showing Python coldstarts.

Issue turned out to be using the @iopipe decorator twice in a row and was causing issues.  Verified this is rectified.  Closing issue.


[QUERY] ServiceBusSenderClient reactor onErrorDropped logs

Query/Question
Hello -- we're currently running azure-messaging-servicebus:7.17.2 and we're seeing the following errors logged fairly regularly from the ServiceBusSenderClient:
message:
Operator called default onErrorDropped
logger:
reactor.core.publisher.Operators
stack trace:
reactor.core.Exceptions$ErrorCallbackNotImplemented: com.azure.core.amqp.exception.AmqpException: onSessionRemoteClose connectionId[MF_e4d40b_1724676323518], entityName[****-events] condition[Error{condition=amqp:connection:forced, description='The connection was closed by container '3bc1b298d34848099cab325eb0cd025e_G15' because it did not have any active links in the past 300000 milliseconds. TrackingId:3bc1b298d34848099cab325eb0cd025e_G15, SystemTracker:gateway10, Timestamp:2024-08-26T15:26:30', info=null}], errorContext[NAMESPACE: ***.servicebus.windows.net. ERROR CONTEXT: N/A, PATH: ****-events]
Caused by: com.azure.core.amqp.exception.AmqpException: onSessionRemoteClose connectionId[MF_e4d40b_1724676323518], entityName[****-events] condition[Error{condition=amqp:connection:forced, description='The connection was closed by container '3bc1b298d34848099cab325eb0cd025e_G15' because it did not have any active links in the past 300000 milliseconds. TrackingId:3bc1b298d34848099cab325eb0cd025e_G15, SystemTracker:gateway10, Timestamp:2024-08-26T15:26:30', info=null}], errorContext[NAMESPACE: ****.servicebus.windows.net. ERROR CONTEXT: N/A, PATH: ****-events]
	at com.azure.core.amqp.implementation.ExceptionUtil.toException(ExceptionUtil.java:90)
	at com.azure.core.amqp.implementation.handler.SessionHandler.onSessionRemoteClose(SessionHandler.java:139)
	at org.apache.qpid.proton.engine.BaseHandler.handle(BaseHandler.java:152)
	at org.apache.qpid.proton.engine.impl.EventImpl.dispatch(EventImpl.java:108)
	at org.apache.qpid.proton.reactor.impl.ReactorImpl.dispatch(ReactorImpl.java:324)
	at org.apache.qpid.proton.reactor.impl.ReactorImpl.process(ReactorImpl.java:291)
	at com.azure.core.amqp.implementation.ReactorExecutor.run(ReactorExecutor.java:91)
	at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68)
	at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)

and
message:
Error in SendLinkHandler. Disposing unconfirmed sends.
logger:
com.azure.core.amqp.implementation.RequestResponseChannel
exception:
The connection was closed by container '3bc1b298d34848099cab325eb0cd025e_G15' because it did not have any active links in the past 300000 milliseconds. TrackingId:3bc1b298d34848099cab325eb0cd025e_G15, SystemTracker:gateway10, Timestamp:2024-08-26T15:26:30, errorContext[NAMESPACE: ****.servicebus.windows.net. ERROR CONTEXT: N/A, PATH: $cbs, REFERENCE_ID: cbs:sender, LINK_CREDIT: 98]

Is this expected behavior on inactive / low volume links? If so, should the logging be adjusted?
Why is this not a Bug or a feature Request?
Unclear if this is just unneeded / verbose logs or an actual issue producing messages.
Setup (please complete the following information if applicable):

Library/Libraries: com.azure:azure-messaging-servicebus:7.17.2

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[X] Query Added
[X] Setup information Added

Hi @rileymichael, the Service Bus broker will disconnect the sender-session and the parent TCP connection of the sender-session if there is no activity (e.g., no send operations) for 5 minutes. The logs you're seeing is printed in the background by the internal state machine when broker-side timeout happens, and when application attempt the next send, then the connectivity will be reestablished.
These appear as errors since the Service Bus library lets the Reactor library capture it, and when an error is passed to Reactor, it logs it at the error level. These logs can be ignored, and we'll look into capture in Service Bus library level and log in WARN so this won't be a noise.

Thanks for the explanation @anuchandy, that makes sense. We'll ignore them as suggested until that change can be made. Appreciate it!

Fixed in https://github.com/Azure/azure-sdk-for-java/pull/41641


Improve the Documentation

One thing that comes to mind immediatly is, that when i first started to use your lib, i was searching for things like, how to print tensors. I would be nice if you could change the doc such that users could just search for a use-case, not how the lib is built, or atleast add a chapter, saying things like, this way you can print a tensor, this way you can add two tensors, theses functions do this ... etc ... i will add more things down the line, but these were my biggest problems at the beginning

Closing this one, let's use #1434 as a global issue for documentation.


feat: support ingressClass for ApisixGlobalRule

Type of change:

[ ] Bugfix
[x] New feature provided
[ ] Improve performance
[ ] Backport patches
[ ] Documentation
[ ] Refactor
[ ] Chore
[ ] CI/CD or Tests

What this PR does / why we need it:
Part of #592

Codecov Report

Merging #1718 (2d31b3b) into master (271d89f) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 2d31b3b differs from pull request most recent head 5721c40. Consider uploading reports for the commit 5721c40 to get more accurate results

@@           Coverage Diff           @@
##           master    #1718   +/-   ##
=======================================
  Coverage   41.48%   41.48%
=======================================
  Files          89       89
  Lines        7667     7667
=======================================
  Hits         3181     3181
  Misses       4122     4122
  Partials      364      364

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Is this a place to ask about potential issues in Fiori Elements?

I have a post in SAP Q&A but it doesn't seem to get the attention of Fiori Elements Team:
https://answers.sap.com/questions/13529560/multiple-views-on-list-report-table-loads-data-eve.html
So my question is that is this a good place to raise issues on the Fiori Elements template?

Hi Jhodel,
no, unfortunately this is not a good place, as it is only regularly monitored by OpenUI5 developers, sorry.
For issues in Fiori Elements, please open regular tickets with SAP and for questions you already did the right thing by asking in the community (although results can apparently be disappointing.).
Regards
Andreas

Thanks for the response Andreas @akudev


Fixes #110 / Zend_View_Helper_HeadScript error where not View

Fixes #110

Thanks for the pr, I'll make a release in 15 minutes or so


Generic types

Still missing from #582:

Generic functions (partial dependency on #520, as function types would ease out implementation)
Type restrictions (depends on #575)


azure-blob-storage throw DeserializationError

Package Name: azure-storage-blob
Package Version:  12.8.1
Operating System: Ubuntu 18.04
Python Version: 3.7.9

Describe the bug
Occasionally an exception is thrown while fetching a blob from a storage container.
To Reproduce
Steps to reproduce the behavior:

Fetch blob using async blob client
An exception is thrown (quite rarely)

Expected behavior
Exception should be handled and the blob image should be re-fetched.
Additional context
Stack trace:
ERROR 2021-05-08 04:52:38,236 image_storage.training_image_storage load_image status=error, duration_ms=11.299999999999999
Traceback (most recent call last):
  File "/app/binary.runfiles/image_storage/training_image_storage.py", line 124, in load_image
    image = self._hot_storage.load_image(run_id, self._camera_position, image_timestamp_us)
  File "/app/binary.runfiles/image_storage/azure_image_storage.py", line 200, in load_image
    return self._get_shard(image_timestamp_us).load_image(run_id, camera_position, image_timestamp_us)
  File "/app/binary.runfiles/image_storage/azure_image_storage.py", line 57, in load_image
    loop=self._get_or_create_event_loop(),
  File "/app/python_runtime/python3/lib/python3.7/concurrent/futures/_base.py", line 435, in result
    return self.__get_result()
  File "/app/python_runtime/python3/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
  File "/app/binary.runfiles/image_storage/azure_image_storage.py", line 77, in _load_blob_async_into_byte_stream
    storage_stream_downloader = await blob_client.download_blob()
  File "/app/binary.runfiles/pip-services/pypi__azure_core/azure/core/tracing/decorator_async.py", line 74, in wrapper_use_tracer
    return await func(*args, **kwargs)
  File "/app/binary.runfiles/pip-services/pypi__azure_storage_blob/azure/storage/blob/aio/_blob_client_async.py", line 464, in download_blob
    await downloader._setup()  # pylint: disable=protected-access
  File "/app/binary.runfiles/pip-services/pypi__azure_storage_blob/azure/storage/blob/aio/_download_async.py", line 250, in _setup
    self._response = await self._initial_request()
  File "/app/binary.runfiles/pip-services/pypi__azure_storage_blob/azure/storage/blob/aio/_download_async.py", line 299, in _initial_request
    **self._request_options)
  File "/app/binary.runfiles/pip-services/pypi__azure_storage_blob/azure/storage/blob/_generated/aio/operations/_blob_operations.py", line 179, in download
    error = self._deserialize(_models.StorageError, response)
  File "/app/binary.runfiles/pip-services/pypi__msrest/msrest/serialization.py", line 1367, in __call__
    data = self._unpack_content(response_data, content_type)
  File "/app/binary.runfiles/pip-services/pypi__msrest/msrest/serialization.py", line 1541, in _unpack_content
    raw_data.headers
  File "/app/binary.runfiles/pip-services/pypi__msrest/msrest/pipeline/universal.py", line 226, in deserialize_from_http_generics
    return cls.deserialize_from_text(body_bytes, content_type)
  File "/app/binary.runfiles/pip-services/pypi__msrest/msrest/pipeline/universal.py", line 203, in deserialize_from_text
    raise DeserializationError("Cannot deserialize content-type: {}".format(content_type))
msrest.exceptions.DeserializationError: Cannot deserialize content-type: text/html

Hi @gdippolito
Thanks for reaching out.
Is that blob a static website? since usually the content-type is not text/html.

hi @xiafu-msft,
We are only storing images in this storage account.
I think somehow the wrong response was sent back to the client. Is it possible that a different return code from 200 was not properly handled and the html was parsed?

Hi @gdippolito
Can you call get_blob_properties() on the blob which throws error message and send me all of the result of get_blob_properties() call.
Thanks so much for your help!

HI @xiafu-msft,
I'm not able to reproduce this problem since it only happen very sporadically.
Since I have reported this problem I didn't experience it since.
I believe something went wrong while performing this specific request.
Let me know if you need anything else from me.


Review and update metadata for invasive-bullfrog-occurrences

Verify, update and republish metadata to comply with our new guidelines regarding usage norms, recourse citation, etc.

[x] Metadata verification has been indicated in our Google Spreadsheet
[x] Metadata has been updated in working document (metadata.md or Google docs)
[x] Metadata has been updated in the IPT
[x] Dataset has been republished, with publication note: Update metadata to comply with our new guidelines.

Completed. Data has not been verified yet.


Feature generic classes

Hi,
this PR enables the generator to generate code for generic classes, fixing #117 in the process. It also handels type constraints.
I had to change a few things, but the rest should work as expected. Take your time to review it.
Feel free to contact me for any questions.

Thanks for the reminder. This one slipped through the cracks. Thanks again

Is it possible to deploy a release from the main branch?

See https://github.com/reactivemarbles/ObservableEvents/releases/tag/1.2.3

Tanks!


Update BaseViewer.scrollPageIntoView to always validate the pageNumber parameter

Note that when e.g. presentation mode is active, we fail[1] to ensure that the pageNumber parameter is actually an integer before calling _setCurrentPageNumber (that method expects the argument be an integer).
Also changes the method signature, of scrollPageIntoView, to use object destructuring instead.

[1] Most likely, this is actually my oversight :-)

/botio-linux preview

Looks good!


Alternate Dockerfile approach that permits use of krill-sync CLI args

... as usual rather than using an ENV var based approach to configuring krill-sync inside the Docker container (as the current Dockerfile on main does). Also gets rid of the no longer needed docker/entrypoint.sh script.

FYI @ties @StellaV, your feedback on this would be appreciated.

Running an container with environment variables is something that I think is derived from the 12 factor apps concept. It is an easy way to provide defaults for parameters and it decouples command line arguments from how you run the container.
Effectively it creates an external API for the application encapsulated by the container.
If you wish you can always override the command or the entrypoint later. That is why I see environment variables as a more idiomatic way to run docker containers.
I guess a lithmus test is whether the arguments from krill-sync 0.1 work with 0.2. If they do not, that is a clear example that this abstraction works.

@ties @ximon18 I lost track of this one completely. Is this still desired and relevant?
In future: please poke me if you are waiting for me ;)

PR #77 removed the use of env vars as I standardized it on the way that the Krill and Routinator containers work. @ties: To your point about overcoming API changes, no it didn't help as the presence of the --format CLI argument in the entrypoint.sh script broke the invocation of krill-sync as it no longer supported it, though maybe your point was more that once entrypoint.sh was fixed one could still supply those env vars from outside and have them achieve the desired result. I dislike however having a separate API for Docker based usage compared to that of normal usage, and that that also becomes something we have to maintain and specify guarantees for. The expected way to use our app is via command line arguments, if it should support env vars the app itself should support them, not a wrapper script that we use with the Docker build process.

PR https://github.com/NLnetLabs/krill-sync/pull/77 removed the use of env vars as I standardized it on the way that the Krill and Routinator containers work. @ties: To your point about overcoming API changes, no it didn't help as the presence of the --format CLI argument in the entrypoint.sh script broke the invocation of krill-sync as it no longer supported it

True, there is a support cost there.
But keep in mind the difference between a wrapper and direct invocation here: Any direct usage of --format would break with this API change. A wrapper script could warn/ignore it when passed in.
I dislike intelligent wrapper scripts but they have their use when migrating between arguments. Of course, ideally a container does not have a shell on the filesystem => there is no idiomatic way to have the wrapper script.

I dislike however having a separate API for Docker based usage compared to that of normal usage, and that that also becomes something we have to maintain and specify guarantees for. The expected way to use our app is via command line arguments, if it should support env vars the app itself should support them, not a wrapper script that we use with the Docker build process.

I agree that the wrapper script is not a nice workaround. But when working with containers, using command line options is not idiomatic.
For example for routinetor, you would likely want the default to be server. However, you also want to inspect files in the container from time to time. Using a "bare" ENTRYPOINT without an init replacement is annoying in this case. If you also want PID reaping, you may need an init replacement like tiny anyway.
Command line arguments do not mix the well with containers. Configuration files on volumes are annoying, but they work. Environment variables are the most idiomatic way (for me) to include required settings.

Hi @ties,

PR #77 removed the use of env vars as I standardized it on the way that the Krill and Routinator containers work. @ties: To your point about overcoming API changes, no it didn't help as the presence of the --format CLI argument in the entrypoint.sh script broke the invocation of krill-sync as it no longer supported it

True, there is a support cost there.
But keep in mind the difference between a wrapper and direct invocation here: Any direct usage of --format would break with this API change. A wrapper script could warn/ignore it when passed in.

Yes, sorry, I thought my comment was clear that I acknowledged this case could have been handled by the wrapper.

I dislike intelligent wrapper scripts but they have their use when migrating between arguments. Of course, ideally a container does not have a shell on the filesystem => there is no idiomatic way to have the wrapper script.

I dislike however having a separate API for Docker based usage compared to that of normal usage, and that that also becomes something we have to maintain and specify guarantees for. The expected way to use our app is via command line arguments, if it should support env vars the app itself should support them, not a wrapper script that we use with the Docker build process.

I agree that the wrapper script is not a nice workaround. But when working with containers, using command line options is not idiomatic.

In what way is it not idiomatic? The docker run command supports passing command line arguments to the container on startup, and passing environment variables also has to be done using the --env command line argument to the docker run command so is no better than command line arguments. Perhaps you are referring to the ease with which one can define environment variables in tooling that wraps around Docker, such as docker-compose or Kubernetes?
Let's look at the Docker Hub top 10 (actually 11, see the comment below the table) suggested official Linux Docker images that are not operating systems but applications:

image
supports env var based config?
notes

nginx
✓
Only since 1.19, involves an "intelligent wrapper script" (they describe it as "a function, which will extract environment variables before nginx starts")

redis
✗

postgres
✓

httpd
✗

mongo
✓

memcached
✗

mysql
✓

traefik
✗

rabbitmq
✗
No longer supports env var based config since RabbitMQ 3.9

registry
✗

wordpress
✓

(I excluded mariadb as it is a fork of mysql, and added wordpress as I'm not sure thatregistry was a fair example, being from Docker and at a glance having seemingly no config at all)
So, I'm not sure that it's fair to say that env var based configuration is idiomatic or needed, but indeed is supported by almost half of the top 10 suggested images.

For example for routinetor, you would likely want the default to be server. However, you also want to inspect files in the container from time to time. Using a "bare" ENTRYPOINT without an init replacement is annoying in this case. If you also want PID reaping, you may need an init replacement like tiny anyway.

If you want to inspect the files in the container from time to time you should exec into the container. If you wanted to look at the files in a fresh instance of the image you don't need an INIT process to reap orphaned child processes so tini isn't needed then anyway, and if in control of running the container yourself you may be able to get tini without the image support for it by using the Docker official support through the --init argument to docker run.

Command line arguments do not mix the well with containers. Configuration files on volumes are annoying, but they work. Environment variables are the most idiomatic way (for me) to include required settings.

With the "(for me)" caveat we agree ;-)
The biggest issue for me here is that we had some sort of support for env var based configuration of the krill-sync Docker image (though that image wasn't building nor was the passing of settings to the application working once image building was fixed) and now with PR #77 that is no longer the case.
However, if we were to do environment variable based configuration of one image I think we should do it for our other images too, and we don't support them for the routinator image and have only limited support for configuring the krill image via env vars. It's unclear to me that this is really a priority and my time is unfortunately needed on other tasks so while I put the effort in to PR #77 I'd rather not invest more time at this point with changes to support env var based configuration. A PR to support it would be acceptable (to me at least, as I do see there is an argument for it), I'm just not sure I can get to this myself at the moment.

Let's look at the Docker Hub top 10 (actually 11, see the comment below the table) suggested official Linux Docker images that are not operating systems but applications:
image	supports env var based config?	notes
nginx	✓	Only since 1.19, involves an "intelligent wrapper script" (they describe it as "a function, which will extract environment variables before nginx starts")
redis	✗
postgres	✓
httpd	✗
mongo	✓
memcached	✗
mysql	✓
traefik	✗
rabbitmq	✗	No longer supports env var based config since RabbitMQ 3.9
registry	✗
wordpress	✓
(I excluded mariadb as it is a fork of mysql, and added wordpress as I'm not sure thatregistry was a fair example, being from Docker and at a glance having seemingly no config at all)
So, I'm not sure that it's fair to say that env var based configuration is idiomatic or needed, but indeed is supported by almost half of the top 10 suggested images. I find it interesting that RabbitMQ stopped supporting env var based configuration.

Thanks for this deep dive!
What I see happening is that:

for superficial configuration, environment variables are often used
very complicated configuration often uses files
many systems have a hierarchy (e.g. default > config > environment variable > arguments) in which they resolve settings.

This hierarchy is powerful: I can apply the same configuration file (or default configuration) in two environments while overriding a single setting (e.g. a URL). The alternative of applying the same change in multiple configuration files is quite fragile in practice :).
Command line arguments are very powerful but also fragile (parsing failures are rejected). Unknown environment variables (or typo's) are ignored.

The biggest issue for me here is that we had some sort of support for env var based configuration of the krill-sync Docker image (though that image wasn't building nor was the passing of settings to the application working once image building was fixed) and now with PR #77 that is no longer the case.
However, if we were to do environment variable based configuration of one image I think we should do it for our other images too, and we don't support them for the routinator image and have only limited support for configuring the krill image via env vars. It's unclear to me that this is really a priority and my time is unfortunately needed on other tasks so while I put the effort in to PR #77 I'd rather not invest more time at this point with changes to support env var based configuration. A PR to support it would be acceptable (to me at least, as I do see there is an argument for it), I'm just not sure I can get to this myself at the moment.

I agree with the cost/benefit analysis and not prioritising this type of configuration. If I end up re-creating environment based configuration I will make sure there is a PR. Furthermore, adding custom code for this in a dockerfile does not seem the best use of time, adding it to the main executable feels like a better way to go.

I am closing this PR for now as it seems to be obsoleted by events. Feel free to re-open if needed.


Added DRLK_2_13 for Aliro Feature

Added python script for DRLK_2_13 test case in accordance with updated spec from https://github.com/sumaky/chip-test-plans/blob/DRLK2.13-Fixes/src/cluster/door_lock_Cluster.adoc

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


j2objc-0.9.5 Translation errors - Redefinition in generated code

I get the following errors:
In file included from ./build/j2objc-out//test/Maybe.m:6:
./build/j2objc-out/test/Maybe.h:30:12: error: redefinition of 'TestMaybe_Just' as different kind of symbol
@interface TestMaybe_Just : TestMaybe {
           ^
./build/j2objc-out/test/Maybe.h:24:30: note: previous definition is here
FOUNDATION_EXPORT TestMaybe *TestMaybe_Just();
                             ^
./build/j2objc-out/test/Maybe.h:39:12: error: redefinition of 'TestMaybe_Nothing' as different kind of symbol
@interface TestMaybe_Nothing : TestMaybe {
           ^
./build/j2objc-out/test/Maybe.h:25:30: note: previous definition is here
FOUNDATION_EXPORT TestMaybe *TestMaybe_Nothing();
                             ^
./build/j2objc-out//test/Maybe.m:19:10: error: reference to 'TestMaybe_Just' is ambiguous
  return TestMaybe_Just();
         ^
./build/j2objc-out/test/Maybe.h:30:12: note: candidate found by name lookup is 'TestMaybe_Just'
@interface TestMaybe_Just : TestMaybe {
           ^
./build/j2objc-out/test/Maybe.h:24:30: note: candidate found by name lookup is 'TestMaybe_Just'
FOUNDATION_EXPORT TestMaybe *TestMaybe_Just();
                             ^
./build/j2objc-out//test/Maybe.m:23:10: error: reference to 'TestMaybe_Nothing' is ambiguous
  return TestMaybe_Nothing();
         ^
./build/j2objc-out/test/Maybe.h:39:12: note: candidate found by name lookup is 'TestMaybe_Nothing'
@interface TestMaybe_Nothing : TestMaybe {
           ^
./build/j2objc-out/test/Maybe.h:25:30: note: candidate found by name lookup is 'TestMaybe_Nothing'
FOUNDATION_EXPORT TestMaybe *TestMaybe_Nothing();
                             ^
./build/j2objc-out//test/Maybe.m:28:29: error: reference to 'TestMaybe_Nothing' is ambiguous
    TestMaybe_Nothing__ = [[TestMaybe_Nothing alloc] init];
                            ^
./build/j2objc-out/test/Maybe.h:39:12: note: candidate found by name lookup is 'TestMaybe_Nothing'
@interface TestMaybe_Nothing : TestMaybe {
           ^
./build/j2objc-out/test/Maybe.h:25:30: note: candidate found by name lookup is 'TestMaybe_Nothing'
FOUNDATION_EXPORT TestMaybe *TestMaybe_Nothing();
                             ^
./build/j2objc-out//test/Maybe.m:48:12: error: redefinition of 'TestMaybe_Just' as different kind of symbol
TestMaybe *TestMaybe_Just() {
           ^
./build/j2objc-out/test/Maybe.h:30:12: note: previous definition is here
@interface TestMaybe_Just : TestMaybe {
           ^
./build/j2objc-out//test/Maybe.m:50:12: error: reference to 'TestMaybe_Just' is ambiguous
  return [[TestMaybe_Just alloc] init];
           ^
./build/j2objc-out/test/Maybe.h:30:12: note: candidate found by name lookup is 'TestMaybe_Just'
@interface TestMaybe_Just : TestMaybe {
           ^
./build/j2objc-out/test/Maybe.h:24:30: note: candidate found by name lookup is 'TestMaybe_Just'
FOUNDATION_EXPORT TestMaybe *TestMaybe_Just();
                             ^
./build/j2objc-out//test/Maybe.m:53:12: error: redefinition of 'TestMaybe_Nothing' as different kind of symbol
TestMaybe *TestMaybe_Nothing() {
           ^
./build/j2objc-out/test/Maybe.h:39:12: note: previous definition is here
@interface TestMaybe_Nothing : TestMaybe {
           ^
./build/j2objc-out//test/Maybe.m:58:17: error: cannot find interface declaration for 'TestMaybe_Just' [-Werror]
@implementation TestMaybe_Just
                ^
./build/j2objc-out//test/Maybe.m:61:11: error: 'TestMaybe_Just' cannot use 'super' because it is a root class
  return [super init];
          ^
./build/j2objc-out//test/Maybe.m:58:17: error: class 'TestMaybe_Just' defined without specifying a base class
      [-Werror,-Wobjc-root-class]
@implementation TestMaybe_Just
                ^
./build/j2objc-out//test/Maybe.m:58:31: note: add a super class to fix this problem
@implementation TestMaybe_Just
                              ^
                               : NSObject
./build/j2objc-out//test/Maybe.m:74:17: error: cannot find interface declaration for 'TestMaybe_Nothing' [-Werror]
@implementation TestMaybe_Nothing
                ^
./build/j2objc-out//test/Maybe.m:77:11: error: 'TestMaybe_Nothing' cannot use 'super' because it is a root class
  return [super init];
          ^
./build/j2objc-out//test/Maybe.m:74:17: error: class 'TestMaybe_Nothing' defined without specifying a base class
      [-Werror,-Wobjc-root-class]
@implementation TestMaybe_Nothing
                ^
./build/j2objc-out//test/Maybe.m:74:34: note: add a super class to fix this problem
@implementation TestMaybe_Nothing
                                 ^
                                  : NSObject
14 errors generated.

when translating and compiling:
package test;

public abstract class Maybe {
    private Maybe() {
    }

    public static Maybe Just() {
        return new Just();
    }

    private static final class Just<T> extends Maybe {
    }

    public static Maybe Nothing() {
        return Nothing;
    }

    private static final Maybe Nothing = new Nothing<Object>();

    private static final class Nothing<T> extends Maybe {
    }
}

This is a shortened example of the class Maybe.java from the Dropbox Java API, which currently, cannot be compiled with j2objc-0.9.5. I know that j2objc-0.9.3 can correctly translate the source. I haven't tested with 0.9.4.

Still a problem with 0.9.6

This may be a good reason to switch to using "$" instead of "_" for delimiting inner classes.


installation problem

What is your question?
A clear and concise description of what the problem is.
Additional context
Add any other context about the problem here.
Any suggestions for the docs?
Describe how would you fix the documentation to solve the problem.

facing this problem while i am installing camover,
camover : command not found


Documentation Link Broken

The link to documentation in the readme file 404s.
Start with the documentation.

Thanks for ticketing this. Should be fixing this afternoon.
On Tue, Aug 8, 2017 at 1:20 PM, Cyrus Sethna<EMAIL_ADDRESS>wrote:

The link to documentation in the readme file 404s.
Start with the documentation.
https://city-bureau.gitbooks.io/chicago-documenters-event-aggregator/
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/City-Bureau/documenters-aggregator/issues/27, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAmuzJHFFvIsSh-dscIgNInBTa-LX0xoks5sWKbfgaJpZM4OxG0E
.

--
David Eads | http://recoveredfactory.net
"Medical statistics will be our standard of measurement: we will weigh life
for life and see where the dead lie thicker, among the workers or among the
privileged." -- Rudolf Virchow


Pass token

Codecov Report

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

@@           Coverage Diff           @@
##           master       #6   +/-   ##
=======================================
  Coverage   49.37%   49.37%
=======================================
  Files           8        8
  Lines         241      241
=======================================
  Hits          119      119
  Misses        105      105
  Partials       17       17

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 f7716cd...75ce300. Read the comment docs.


Add Holocene activation timestamps for Sepoila devnets and testnets

Adds Holocene activation timestamps for Sepolia devnets and testnets.

Sepolia devnets: Wed Nov 13 15:00:00 UTC 2024, unix ts<PHONE_NUMBER>, in 2 days
Sepolia testnets: Thu Nov 21 15:00:00 UTC 2024, unix ts<PHONE_NUMBER>, next week Thursday

For discussion, see public discord thread.
Checklist

[x] I have run just codegen to ensure that the chainlist and other generated files are up-to-date and include my chain.

Possibly a few more Sepolia chains want to join the Holocene upgrade, namely
# cd superchain/configs/sepolia
# rg granite_time
lisk.toml
13:granite_time =<PHONE_NUMBER> # Mon 12 Aug 2024 16:00:00 UTC

superchain.toml
10:granite_time =<PHONE_NUMBER> # Mon Aug 12 16:00:00 UTC 2024

tbn.toml
12:granite_time =<PHONE_NUMBER> #Monday June 12 2024 1:57:35 PM UTC

ethernity.toml
13:granite_time =<PHONE_NUMBER> # Mon 12 Aug 2024 16:00:00 UTC

unichain.toml
13:granite_time = 0 # Thu 1 Jan 1970 00:00:00 UTC

shape.toml
13:granite_time =<PHONE_NUMBER> # Tue 24 Sep 2024 17:00:00 UTC

worldchain.toml
12:granite_time =<PHONE_NUMBER> # Tue 17 Sep 2024 11:00:00 UTC

All those chains already activated Grainte at, or after the superchain granite time, so my guess is that they also want to join the Holocene upgrade. Need confirmation @sbvegan.
Note that per Superchain inheritance, the following chains will activate @emilianobonassi
# rg superchain_time
zora.toml
8:superchain_time = 0 # Missing hardfork times are inherited from superchain.toml

base.toml
8:superchain_time = 0 # Missing hardfork times are inherited from superchain.toml

op.toml
7:superchain_time = 0 # Missing hardfork times are inherited from superchain.toml

mode.toml
8:superchain_time =<PHONE_NUMBER> # Fri 22 Dec 2023 00:00:00 UTC

@sebastianst if you update the validation -> optimism dependency on this PR, this should trigger the bot to post a nonzero diff on the op-node configs.

I followed up in the public discord thread and would like a thumbs up from Conduit and the smart contract team to confirm on the Base side.


How to update to 0.8.0 and keep the same LogPrinter

On version 0.7.0+1 I have the following LogPrinter extension to simplify the logs.
Logger getLogger() {
  return Logger(printer: SimpleLogPrinter());
}

class SimpleLogPrinter extends LogPrinter {
  @override
  void log(LogEvent event) {
    final color = PrettyPrinter.levelColors[event.level];
    final emoji = PrettyPrinter.levelEmojis[event.level];
    println(color('$emoji - ${event.message}'));
  }
}

which prints the following image
Is it possible to have this functionality in 0.8.0? If so any code example would be much appreciated.

+1 here
As I can see there is SimplePrinter(), but it does not have the colors or emojis =/

On version 0.7.0+1 I have the following LogPrinter extension to simplify the logs.
Logger getLogger() {
  return Logger(printer: SimpleLogPrinter());
}

class SimpleLogPrinter extends LogPrinter {
  @override
  void log(LogEvent event) {
    final color = PrettyPrinter.levelColors[event.level];
    final emoji = PrettyPrinter.levelEmojis[event.level];
    println(color('$emoji - ${event.message}'));
  }
}

which prints the following image
Is it possible to have this functionality in 0.8.0? If so any code example would be much appreciated.

Bet you came here after watching the FilledStacks video 🤣
Here, try this:
import 'package:logger/logger.dart';

Logger getLogger(String className) {
  return Logger(printer: SimpleLogPrinter(className));
}

class SimpleLogPrinter extends LogPrinter {
  final String className;
  SimpleLogPrinter(this.className);

  @override
  List<String> log(LogEvent event) {
    AnsiColor color = PrettyPrinter.levelColors[event.level];
    String emoji = PrettyPrinter.levelEmojis[event.level];
    return [color('$emoji [$className]: ${event.message}')];
  }
}

Haha yeah thanks a lot.

logger: ^1.1.0 // add in your pubspec.yaml
Make common method for whole project
import 'package:flutter/foundation.dart';
import 'package:logger/logger.dart';
printLog(String className, String message, String logType) {
final log = Logger(
printer: PrettyPrinter(
methodCount: 0,
errorMethodCount: 3,
lineLength: 50,
colors: true,
printEmojis: true,
printTime: false));
if (kDebugMode) { //if you want in debug mode only
switch (logType) {
case "v":
return log.v("[$className]: ${message}");
case "d":
return log.d("[$className]: ${message}");
case "i":
return log.i("[$className]: ${message}");
case "w":
return log.w("[$className]: ${message}");
case "e":
return log.e("[$className]: ${message}");
}
}
}
call this as below
import 'package:../common_components/logger.dart';
printLog("Your class name or title of log",
"Your message", "v"); //in last params you should pass log type like v, d, i, w, e


Constantly getting a 504 Gateway Time-out Error while trying to tunnel ReactJS from manjaro.

Hey all,
I wanna try and start using this package, since lot of friends speak so highly of it.
however - i have tried making if work for me, and I am constantly getting a "504 Gateway Time-out" error from nginx.
more technically -
I am running a Manjaro OS, and am trying to tunnel a ReactJS app that is successfully running on my localhost and being accessed over lan.
I have successfully installed lt globally as in the description, and I seem to manage to run it, and get a link,
but, after I get into the link and click on the continue button, the browser (both gchrome an firefox) seem to wait for a minute, and then return said error.
I have tried changing ports, specifying sub-domains, local host addresses and other solutions I could find online, but the proccess stays the same.
perhaps it has something to do with a minor update to npm I got earlier today?
thanks in advance!

I have the same issue. Did you find a solution?


Uninstalling Twitch Leecher 1.8.4 not working

I can't found TL.msi

[x] Windows Installer not working

There are 3 possibilities:

An anti virus software deleted the TL.msi from the Windows package cache (which holds installers for the sole purpose of uninstalling). This could happen if the anti virus software is bad and interprets the unsigned .msi file as hostile (which it is not).
You have some kind of cleanup tool running that (wrongly) "cleans up" the Windows package cache (some do, which is stupid)
You or something else accidentally deleted the package cache files

Either way, it's not possible that TL itself deletes its installer package cache. The package cache is managed by the Windows installer system. If files get deleted from there, applications are not able to uninstall anymore obviously.


Configure grafana to use TimescaleDB as a database for itself

The chart allows a configurable way to create a separate user
and schema that grafana will use for it's data. The same
mechanism is used to create a user that grafana will use for
the TimescaleDB provisioned data source.

@cevian Updated, grafna user inherits prom_reader, db->database, connection notes depend on install/upgrade


Rails importmap and v0.3.0

I endeavored to move up to v0.3.0 just by manually adjusting the Rails config/importmap.rb turbo_power version, which after its setting yielded a browser console error of:

Uncaught TypeError: Failed to resolve module specifier "turbo-morph". Relative references must start with either "/", "./", or "../".

There was an error with either of the below CDNs.
# config/importmap.rb
pin 'turbo_power', to<EMAIL_ADDRESS># pin 'turbo_power', to<EMAIL_ADDRESS>

I figured it was a missing turbo-morph dependency so I just re-enabled the jspm.io CDN in  config/importmap.rb and made an attempt to use the Rails' bin/importmap script to handle fetching the correct turbo-morph dependency and that venture yielded these errors:

bin/importmap unpin turbo_power
Couldn't find any packages in ["turbo_power"] on jspm
bin/importmap pin turbo_power
Couldn't find any packages in ["turbo_power"] on jspm

Thanks @marcoroth.

Thanks for bringing this up @minimul!
This is exactly where Importmaps fall short. Dependency management isn't trivial for the end-user, because the end-user needs to manage all the dependencies by themselves, which is exactly why a bundler is good!
I'm looking into how we can improve this for the future, though.
In the meantime I published https://github.com/marcoroth/turbo_power/releases/tag/v0.3.1 which restores how it was before in v0.2.0.

Seems like jspm needed a moment to generate the file on the CDN<EMAIL_ADDRESS>

The decision to use importmaps wasn't mine so I'm stuck with it but I certainly have the influence to persuade in moving to a bundler if issues like this continue to come up. In the meantime, we are heads down in implementation so I thank you for the continued support.
Should we close?

Seems like jspm needed a moment to generate the file on the CDN<EMAIL_ADDRESS>
Working now – no errors.


Updated URL to fix broken link

I got married, changed my last name, and therefore changed my GitHub name. This is updating the URL to match my new GitHub URL. Nothing else changed and this fixes a broken link.

Codecov Report

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

@@          Coverage Diff           @@
##           master   #8298   +/-   ##
======================================
  Coverage    62.2%   62.2%
======================================
  Files         266     266
  Lines       10673   10673
  Branches     2596    2596
======================================
  Hits         6639    6639
  Misses       3445    3445
  Partials      589     589

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 0684263...eb39669. Read the comment docs.


DOC: Add 'gedmo_sluggable' to mappings tree

this does not make sense. there is no entity mapping to load in sluggable.

this does not make sense. there is no entity mapping to load in sluggable.

Closed.
Having problem to get it to work after migrating from Symfony 5.1 to 5.2, also I have to clear Doctine Cache before trying it.
All is needed is to add sluggable in stof_doctrine_extensions.yaml:
stof_doctrine_extensions:
    default_locale: en_US
    orm:
        default:
            sluggable: true

Closed.
Having problem to get it to work after migrating from Symfony 5.1 to 5.2, also I have to clear Doctine Cache before trying it.
All is needed is to add sluggable in stof_doctrine_extensions.yaml:
stof_doctrine_extensions:
    default_locale: en_US
    orm:
        default:
            sluggable: true


Ninja 0 20 upgrade

Codecov Report

Merging #44 (9e9d507) into master (5294a60) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #44   +/-   ##
=======================================
  Coverage   99.52%   99.52%
=======================================
  Files          44       44
  Lines        1695     1695
=======================================
  Hits         1687     1687
  Misses          8        8

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Okta to Auth0 migration - Round 1 Components

Description
Motivation for the feature:

We are migrating all the listed components from using Okta to Auth0.

DrawingSubContainer + Tests
WeeklySubmissions
EditPlayersContainer
HelpContainer + Tests
GalleryContainer
FamilySettingsContainer + Tests

What changes were made?

Replaced all instances of {useOktaAuth} hook with the now imported hook, {useAuth0}.
Replaced {authState} with {user}, per Auth0 documentation
Removed extra code that was required with Okta, but no longer necessary with Auth0
Tests updated to mock Auth0

What issues were fixed?

Okta will no longer be used and Auth0 will be the replacement.
This is part of a larger, ongoing task to migrate all components away from Okta

Outside Reference:
Trello Card for task
Commits Checklist

[x] Commits have clear title names
[x] Commit has descriptive message of what has changed
[x] More small commits than less big commits

Code Checklist

[x] Code is formatted appropriately
[x] Code meets DRY standards
[x] No dead code (check for logs and print statements)
[x] No TODOS instead necessary comments
[x] Code follows Story Squad standards for:

Language
Framework
Libraries

Great Job Seth! Very clean organized code and commits


Support Basic authentication header

As per the OAuth 2.0 Standard Section 2.3.1:

The authorization server MUST support the HTTP Basic authentication scheme for authenticating clients that were issued a client password.

As far as I can tell, this is not supported in the OAuth 2.0 Strategy.
I can create a PR for you to look at!

Do you know when this PR will be merged ? thx

Does @sergiodxa have a minute to take a look at it?


add concurrency option or annotation override for ingressgateway

The concurrency value is default, which is number of cores. It's terrible if ingressgateway is deployed on a 1 core pod while the node is 64 core.

@lambdai why just ingress gateway? Why not do generically do it for sidecars as well?

@ramaraochavali Istio-proxy should already have it global.proxy.concurrency as install option
Not ideal but somewhat an option.

+1 for @ramaraochavali
I think istio should support the user to specific concurrency from annotation just like other options like proxy_image.

This is supported by proxy.istio.io/config option now in istio 1.6

@howardjohn  but how to set concurrency, would do you mind to give some samples to show the correct way to do it?
I have add the annotation to the deployment of ingressgateway, but it can not work。
1：
proxy.istio.io/config: '{"concurrency" : "32" }'
2：
proxy.istio.io/config: '{"defaultConfig" : {"concurrency" : "32" } }'
Neither works.


About us menu - menu bar disappears on Contact form page

Hi,
If you go to the 'Contact us' menu item in the drop down menu on the about us page, you are directed to a page where the brown menu bar disappears:
https://landportal.info/about

https://landportal.info/webform/2016/04/contact-form

Is it possible to include the brown menu bar to the contact form page?
(and perhaps change the url to something more permanent, not including the date - I thought that was done at some point already?)

the link was incorrect, and  shouldn't have brought to this page.
fixed.


Prioritize entries in the schema

Should we put in order or priority, mark priority, or otherwise prioritize entries in the schema? I know that what people put in will largely be dependent on what they can find in the time they allocate to the task, but maybe some simple nudges would help people spend a minimum of additional effort to gather the most important data.

It depends on what's most useful for researchers who want to use this to categorize by, I think?
As a practical matter, prioritizing data fields that can more easily be quantified and verified (i.e. by including a URL to the board listing page, that shows the number of directors) is where I'd tend to start.
But you do make me realize we need better support for editing/updating/adding new organizations.  A minimum must have verified data list of fields, and perhaps some better focused recommendations on how to verify data by including links or describing how people are expected to have verified data.

Proposed tooling addition: simplistic data quality score for each foundation entry.

Add "category" field to _data/foundations-schema.json, which can also help inform assets/ruby/schema_utils.rb generators, to bucket the different kinds of fields stored.
Add "categoryWeight" field or similar to show the relative importance of different categories.
Build data scanner to create a "% of data fields filled in / data quality" score for each foundation document, by checking how many fields are filled in, and adding some sort of scoring number.

This could be displayed in a section on foundation pages/listings as a hint for newcomers and researchers which foundation listings need more fields filled in.


Scan Response Checksum Depends on Endianess

For the scan respone packet's checksum the spec. says:

adding the six bytes of data

isn't this endianness-dependant for the two-byte uint16_t types? That is, the current way of sliding over the chunk of memory is little-endian specific. Should this at least be documented in the spec?
Relevant location

The byte order should be irrelevant given that we are adding the six bytes individually. That is to say, when performing the checksum, the azimuth pair or distance pair are not added to a growing sum as a uint16_t, but rather the individual bytes of each pair are added as uint8_t. Check out this article for more info:
https://support.scanse.io/hc/en-us/articles/115001403947-Parsing-Sensor-Reading-Data


How to down NordLand test dataset

Hi, I really appreciate for the work you've done.
I want to test PatchNetvlad on NordLand dataset , so I download NordLand dataset from here, but the dataset seems not the the same as your provided nordland_imageNames_query.txt, nordland_imageNames_index.txt . besides,  the datasets I have downloaded do not provide ground truth file, so could  you please tell me how can I get NordLand test dataset?

Hi,
You can download the full dataset from here: https://nrkbeta.no/2013/01/15/nordlandsbanen-minute-by-minute-season-by-season/
You can then extract 1 frame per second using e.g. ffmpeg (see https://nikosuenderhauf.github.io/assets/papers/openseqslam.pdf). The videos are pre-synchronised, such that frame X in one traverse is the same place as frame X in any of the other traverses.

Thanks


Dropdown on hover does not work properly on firefox 37.0.1 OSX 10.7.5

On the release v0.96.1, on hover dropdown the dropdown-content close automatically.

+1
On firefox, with hover and below origin, the dropdown disappears before user can navigate to it. Windows too.

+1
Same problem as described above. Only when hover is set to true.

+1
Same issue!

+1
Same issue here, the button blinks on hover

I created a PR for this bug: https://github.com/Dogfalo/materialize/pull/1482


chore(scripts/mk_all): gracefully run loadWorkspace

Changes scripts/mk_all to run loadWorkspace using Lake's toBaseIO utility. In addition to being a bit cleaner, this adaption will also be necessary once leanprover/lean4#5684 lands.

bors merge


feat(entc/gen): add preallocate for scope map

Thanks for the contribution @sashamelentyev. Please, squash all these small commits into one.
Closing.


fix: model first not checking model properties

[x] Added or updated tests

Changes
Closes #1824
This corrects the eloquent builder stubs for the first method.
Also, I noticed that the select method wasn't working---it looks like this is only defined on the QueryBuilder which doesn't have the model generics
Thanks!

Hi,
We can actually just keep d948f42 (#1845) the other commits are not needed.

Also, I noticed that the select method wasn't working---it looks like this is only defined on the QueryBuilder which doesn't have the model generics

Yeah, so we cannot fix it with the model-property type. It'd need another extension.
Also please don't include any code style fixes in the PRs. I appreciate it, but CS can be handled by tools and not anything to be concerned manually. I'll set it in the CI this week 👍🏽

done

Thank you @calebdw for this PR.
This PR should fix "select" method too: https://github.com/larastan/larastan/pull/1854


Made necesary changed to AIMovement and to AIDuke to get a slower orientation speed when the Duke himself is shielding

Made necesary changed to AIMovement and to AIDuke to get a slower orientation speed when the Duke himself is shielding

Task linked: CU-p1btku Boss mechanics

Task linked: CU-1da4x21 Make the rotation towards player direction slower


WIP: major updates

Pretty major overhaul. Open to suggestions for sure. Also untested ATM :)

makes the basic object the Controller object
ensures station and program objects remain persistent
stations and programs are now dict instead of list
initiate with actual password instead of md5 password
initiate with url instead of host (to support https and crazy ports etc)
support for http basic auth
can disable ssl verification
remove update call from object instantiation
rename update to refresh as update sort of implies making changes

All great improvements, I agree with update -> refresh. Shows that a second set of eyes and hands can really improve the codebase :)

While you are testing can you update the httplib2 library as well?

Yeah, planned on that actually.

OK, this is about what I would expect it to be for an initial stab. We can change names etc but I think it pretty well has the core feature set.

I ran the black formatter on your branch, looks like the only issue is double quotes for everything instead of single quotes

I changed the formatter to black in vscode so hopefully that's better now..

Still need to update version numbers, docs, etc at this point.

Great! Just need to update docs and test. Thanks so much again

Yup. Hopefully you can run with it on hass side...particularly on the GUI bits. I can probably help a bit with the plumbing though in hass and definitely code review and testing.
If you do should we move the hass plugin to it’s own repo (similar to the hass-opensprinkler repo or even in that repo in a new branch or something) until it’s merged? Might be easier for testing/collaborating.

Yes I have been thinking for a now now bring the custom component (hass-opensprinkler) up to speed with the PR I have for hass since it will probably take a while for the official integration to get in and like you said its easier for wider testing etc. But just haven't gotten around to it yet.

Yeah ok. I guess just shout out when you've got it moved over or something. I forked it originally and started hacking it like crazy in my own repo but probably easiest at this point to trash that and work jointly on it in a dev branch in your main repo for now.
I'm pretty motivated to get it over the finish line at this point as it's one of the few remaining items for my hass setup to get buttoned up.

Poking at docs a little bit now. Hopefully I'll have those fleshed out sometime tomorrow and we'll do a final review before snapping a release.

I just did some testing, all the properties seem to work but I couldn't get the auto refresh to work.
os = Controller(...) # also tried os = OpenSprinkler(..., {"auto_refresh_on_update": True})
os.refresh()
os.station[0].run() # works, station runs
os.station[0].status # still shows 'idle' even though station is running
os.refresh()
os.station[0].status # now shows correct value 'once_program'

Can you check?

Yeah I’ll have a look.

Should we use something like this for the docs? https://pypi.org/project/pydoc-markdown/

Ok, station issue is what I feared, literally os it too slow and doesn't return the proper values yet because it's happening so quickly. We can put a sleep(1) or something in there I suppose although I'm not entirely sure that's the right idea either.

        update_paths = ["/cv", "/co", "/cs", "/cm", "/mp", "/cp", "/dp", "/up", "/cr"]
        if self._opts["auto_refresh_on_update"]["enabled"] and path in update_paths:
            #  .1 was not enough settle time
            # .25 was mostly good but still too fast at times
            #  .5 was mostly good but still too fast at times
            # .75 was mostly good but still too fast at times
            #   1 was consistently enough time
            time.sleep(float(self._opts["auto_refresh_on_update"]["settle_time"]))
            self.refresh()

I'm happy to go with pydoc-markdown

Messing with it right now and can't seem to get the output sane (or at least what I would expect to be sane).

I give up with the auto-generation tools. If you want to try it out that'd be cool, otherwise I guess we'll just hand-write docs or provide a sample file. Something like this:
from pyopensprinkler import Controller as OpenSprinklerController

# instantiate controller
controller = OpenSprinklerController("http://host", "password")
# initial load of state
controller.refresh()

# controller
if True:
    # properties
    print(f"##### starting controller info dump")
    print(f"firemware version: {controller.firmware_version}")
    print(f"hardware version: {controller.hardware_version}")
    print(f"last run station: {controller.last_run_station}")
    print(f"last run program: {controller.last_run_program}")
    print(f"last run duration: {controller.last_run_duration}")
    print(f"last run end time: {controller.last_run_end_time}")
    print(f"rain delay enabled: {controller.rain_delay_enabled}")
    print(f"rain delay stop time: {controller.rain_delay_stop_time}")
    print(f"rain sensor enabled: {controller.rain_sensor_enabled}")
    print(f"sensor 1 enabled: {controller.sensor_1_enabled}")
    print(f"sensor 2 enabeld: {controller.sensor_2_enabled}")
    print(f"operation enabled: {controller.operation_enabled}")
    print(f"water level: {controller.water_level}")
    print(f"stations count: {len(controller.stations)}")
    print(f"programs count: {len(controller.programs)}")

    # methods
    if False:
        controller.disable()
        controller.enable()

# stations
if False:
    # properties
    for i, station in controller.stations.items():
        print(f"##### starting station {i} info dump")
        print(f"name: {station.name}")
        print(f"index: {station.index}")
        print(f"is runnng: {station.is_running}")
        print(f"running program id: {station.running_program_id}")  # 1-indexed
        print(f"seconds remaining: {station.seconds_remaining}")
        print(f"start time: {station.start_time}")
        print(f"max name length: {station.max_name_length}")
        print(f"master 1 operation enabled: {station.master_1_operation_enabled}")
        print(f"master 2 operation enabled: {station.master_2_operation_enabled}")
        print(f"rain delay ignored: {station.rain_delay_ignored}")
        print(f"sensor 1 ignored: {station.sensor_1_ignored}")
        print(f"sensor 2 ignored: {station.sensor_2_ignored}")
        print(f"disabled: {station.disabled}")
        print(f"sequential operation: {station.sequential_operation}")
        print(f"station type: {station.station_type}")
        print(f"status: {station.status}")

        # methods
        if False:
            station.run()
            station.stop()
            station.toggle()

# programs
if False:
    # properties
    for i, program in controller.programs.items():
        print(f"##### starting program {i} info dump")
        print(f"name: {program.name}")
        print(f"index: {program.index}")
        print(f"enabled: {program.enabled}")
        print(f"is running: {program.is_running}")
        print(f"use weather adjustments: {program.use_weather_adjustments}")
        print(f"odd even restriction: {program.odd_even_restriction}")
        print(f"odd even restriction name: {program.odd_even_restriction_name}")
        print(f"program schedule type: {program.program_schedule_type}")
        print(f"program schedule type name: {program.program_schedule_type_name}")
        print(f"start time type: {program.start_time_type}")
        print(f"start time type name: {program.start_time_type_name}")

        # methods
        if False:
            program.run()
            program.enable()
            program.disable()

The library is pretty simple so I think we can just update the README and add your example file and we are good to go

Yeah agreed. Should we draw up a clear idea (here or on the other project) about how we want all this represented in hass? ie: do we want to expand the available methods to set the various enabled/ignored properties so they can be manifest as switches instead of binary sensors etc etc

I think we should start with the basics which we already have, If there are requests to add switches for those (or even the sensors) we can add them as we go. I don't think we should flood HASS with a ton of sensors and switches. When we add them we can include configs to filter unwanted ones

Yeah I especially don’t want to double up like we have now (binary sensor and switch entities for the same thing). Maybe let’s map out exactly what we want it to look like and just include those data points as device attrs in hass so people can see them but not interact with them beyond the basic switches?

This is what I was thinking:

sensors: station status with other station properties as attributes
switches: controller operation (with controller properties as attributes, water level, last run etc), program operation (with program properties as attributes)

No more binary sensors, scenes or switches for stations, instead:

services: run program, run station (can provide run seconds as data)

I am considering water level might be worth it as its own sensor though, but I don't use it not sure if any other people have use cases for it. But in the end they can still use a sensor template.

I like the direction a lot. Should we do switches for stations as well (to be able to turn off a running station)? One trouble with that is what do we do for turn on in terms of duration?
Hypothetically water level could be a light allowing the user to alter the current level. I’m not sure what the upper and lower bounds are for it (and not sure what on/off should do).

If the user wants a switch for station, they can create it using a switch template using the run/stop service and its up to them how they want to provide the run time, through an input number for example. that way the user isn't locked down but have the flexibility to still do it.
I am not a fan of using platforms for stuff they were menat to bem for water level, we can also have a service to set water levels and a sensor for it then the user can create their own entities
I will create some issues in the hass-opensprinkler repo so we can keep track of these, feel free to assign yourself to the ones you want to work on

Yeah ok cool. I’m pretty new to hass so not entirely sure the best way to do things yet but mixing with provided services seems like a great route! We could probably add a few more services over time to allow even greater management capabilities.

Should we merge this and do a release since the release doesn't need the docs? The README update can be a new PR.

I’ll update it shortly, then we can merge.

OK, implemented pretty much everything else at this point. I'm good to merge when you are. Probably a final review would be good since I've made some minor adjustments to property names etc.

Great work on the new methods. Merging...

Huzzah! Now to the fun part :)


dependency issue with 1.0.0-pre.1

amazing library, looking to incorporate this and try it out in our prod phx application.
running into the following error
#Incompatibility<#Term<your app>, cause: {:conflict, #Incompatibility<#Term<phoenix >= 1.7.0-rc.0>, cause: {:conflict, #Incompatibility<#Term<phoenix >= 1.7.0-rc.0>, #Term<not bandit ~> 0.5.9 or ~> 0.6 (optional)>, cause: {:conflict, #Incompatibility<#Term<phoenix >= 1.7.0-rc.0>, #Term<not websock_adapter ~> 0.4>, cause: :dependency>, #Incompatibility<#Term<not bandit ~> 0.5.9 or ~> 0.6 (optional)>, #Term<websock_adapter>, cause: {:conflict, #Incompatibility<#Term<websock_adapter >= 0.4.5>, #Term<not bandit ~> 0.6 (optional)>, cause: :dependency>, #Incompatibility<#Term<websock_adapter < 0.4.5>, #Term<not bandit ~> 0.5.9 (optional)>, cause: :dependency>}>}>, #Incompatibility<#Term<your app>, #Term<not bandit ~> 1.0.0-pre.1>, cause: :dependency>}>, #Incompatibility<#Term<your app>, #Term<not phoenix ~> 1.7.2>, cause: :dependency>}>
Resolution completed in 0.884s
Because websock_adapter >= 0.4.5 depends on bandit ~> 0.6 and websock_adapter < 0.4.5 depends on bandit ~> 0.5.9, websock_adapter requires bandit ~> 0.5.9 or ~> 0.6.
And because phoenix >= 1.7.0-rc.0 depends on websock_adapter ~> 0.4, phoenix >= 1.7.0-rc.0 requires bandit ~> 0.5.9 or ~> 0.6.
And because your app depends on bandit ~> 1.0.0-pre.1, phoenix >= 1.7.0-rc.0 is forbidden.
So, because your app depends on phoenix ~> 1.7.2, version solving failed.

we did delete the mix.lock file just to try to resolve the deps, looks like its a core issue with websock_adaptor, any guidance is greatly appreciated!

Almost certainly a bug on my part with dependency numbering (there are a ton of gotchas with pre versions). I'm AFK until Monday but will fox this straight away!

for now I am using 0.7 version and it compiles fine, there are other issue which I can raise another issues request. thanks again for all your amazing work!


mysql-stats3: Switch from mysql.connector to PyMySQL

Hi,
Is it possible to have a new version of the plugin to use the new python module as mysql-connector is no more available in Debian repository.
Maybe you would need to switch to
python3-pymysql - Pure-Python MySQL Driver - Python 3.x

Thanks you for the hint.

There are currently a bunch of new mysql checks on the way (which will replace mysql-stats3. We have to adapt them, too.

On RHEL, this is python3-mysql.

mysql-stats is deprecated and will be removed. Instead, use the bunch of new mysql-* plugins in this repository.
Changed the db_mysql3.py library from using mysql.connector to pymysql. Have a look at https://github.com/Linuxfabrik/lib/commit/cbf7a6ad906d7711d448d3b80e622f8c7a0d93b3


Query: Flatten out subquery models at query optimizer

  'from Customer c in
      from Customer c in DbSet<Customer>
      where c.City == "Seattle"
      order by c.CustomerID asc
      select c
  where c.CustomerID == "ALFKI"
  select c'

Query model like above can be optimized by merging the bodyclauses.
Points to consider:

Inner selector is selecting query source directly.
No multiple from clauses inside subquery
Presently ReLinq blocks lifting of subquery if there is orderby clause due to possible ambiguity in ordering. We can still lift if only one (inner or outer) contains OrderBy clause.
outer selector can be anything.
No result operator on subquery.

Would this scenario be covered by such optiimization?
 var entities = context.Set<Entity>();

var info = entities.Select(x => new
                                {
                                   MaxId = entities.Max(x => x.Id),
                                   Count = entities.Count()
                                })
                   .FirstOrDefault();

In this case the generated query is
SELECT TOP 1
     (SELECT MAX(ID) FROM Entities),
     (SELECT COUNT(*) FROM Entities)
FROM Entities

while the optimal result would be
SELECT TOP 1
     MAX(ID),
     COUNT(*)
FROM Entities

@maumar - Assigning this to you as this is lifting of order by.

fixed in f022d66bc3a461851a6250536399cd3b8f8bf8d2


Make bitmask_binop! return the wrapper type

Before this commit, the invocation bitmask_binop!(ConfigWindow, u8);
would expand to the following:
    impl std::ops::BitOr for ConfigWindow {
        type Output = u8;
        fn bitor(self, other: Self) -> Self::Output {
            Self::Output::from(self) | Self::Output::from(other)
        }
    }
    impl std::ops::BitOr<u8> for ConfigWindow {
        type Output = u8;
        fn bitor(self, other: u8) -> Self::Output {
            Self::Output::from(self) | other
        }
    }
    impl std::ops::BitOr<ConfigWindow> for u8 {
        type Output = u8;
        fn bitor(self, other: ConfigWindow) -> Self::Output {
            self | Self::Output::from(other)
        }
    }
    impl std::ops::BitOrAssign<ConfigWindow> for u8 {
        fn bitor_assign(&mut self, other: ConfigWindow) {
            *self |= Self::from(other)
        }
    }

This commit changes the code to instead expand to:
    impl std::ops::BitOr for ConfigWindow {
        type Output = ConfigWindow;
        fn bitor(self, other: Self) -> Self::Output {
            Self::from(<u8>::from(self) | <u8>::from(other))
        }
    }
    impl std::ops::BitOr<u8> for ConfigWindow {
        type Output = ConfigWindow;
        fn bitor(self, other: u8) -> Self::Output {
            self | Self::from(other)
        }
    }
    impl std::ops::BitOr<ConfigWindow> for u8 {
        type Output = ConfigWindow;
        fn bitor(self, other: ConfigWindow) -> Self::Output {
            <ConfigWindow>::from(self) | other
        }
    }
    impl std::ops::BitOrAssign<ConfigWindow> for u8 {
        fn bitor_assign(&mut self, other: ConfigWindow) {
            *self |= Self::from(other)
        }
    }
    impl std::ops::BitOrAssign<u8> for ConfigWindow {
        fn bitor_assign(&mut self, other: u8) {
            *self = *self | Self::from(other)
        }
    }

The main differences are:

Previously, the Output type of BitOr was u8, while now it is
ConfigWindow.
There is a new implementation for "ConfigWindow |= u8".

Both of these changes are only possible due to recent change to
represent enums as newtypes around an integer. Previously, they were
Rust enums, which meant that we could not represent combinations of
masks. The new newtypes allow this.
Signed-off-by: Uli Schlachter<EMAIL_ADDRESS>

Rebased on #558 to make CI (hopefully) suceed.


Edit Functionality (Frontend)

Edit form can only support editing vendors with one account

My next PR will have validation on the form to prevent invalid data types, but I think the form should stay hidden until a valid vendor is selected?


pip install fails

This is the error when I try to follow instruction pip install -e . :
Running setup.py develop for Binoculars
    error: subprocess-exited-with-error

    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [27 lines of output]
        /opt/conda/lib/python3.10/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
        !!

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

                See https://github.com/pypa/setuptools/issues/917 for details.
                ********************************************************************************

        !!
          easy_install.initialize_options(self)
        /opt/conda/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
        !!

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

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

        !!
          self.initialize_options()
        error: could not create 'Binoculars.egg-info': Read-only file system
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
    /opt/conda/lib/python3.10/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
    !!

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

            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************

    !!
      easy_install.initialize_options(self)
    /opt/conda/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
    !!

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

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

    !!
      self.initialize_options()
    error: could not create 'Binoculars.egg-info': Read-only file system
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

You're getting this error because you don't have write access to your working directory (perhaps you're doing this inside a Docker container). Pip is unable to create the package egg file when you do pip editable (-e) install. I would recommend using either of pip install - . (installing in non-edit mode) or pip install -e --user . (install locally). Hope this works, closing issue now. :)


galen: 2.3.6 -> 2.3.7

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/galen/versions.
These checks were done:

built on NixOS
Warning: no invocation of /nix/store/s5whrksq3l5xnv6m5jqbpgmycgj8f9n6-galen-2.3.7/bin/galen.jar had a zero exit code or showed the expected version
/nix/store/s5whrksq3l5xnv6m5jqbpgmycgj8f9n6-galen-2.3.7/bin/galen passed the binary check.
1 of 2 passed binary check by having a zero exit code.
0 of 2 passed binary check by having the new version present in output.
found 2.3.7 with grep in /nix/store/s5whrksq3l5xnv6m5jqbpgmycgj8f9n6-galen-2.3.7
directory tree listing: https://gist.github.com/c69a7c8c8a31e5b3b0d3243ea03c777f
du listing: https://gist.github.com/a6d7632f5a3c34d8c20c3f24715aa6a3

meta.description for galen is: '"Automated layout testing for websites"'.

Success on x86_64-darwin (full log)
Attempted: galen
Partial log (click to expand)
configuring
no configure script, doing nothing
building
installing
post-installation fixup
strip is /nix/store/r5mcn9vqq80v5pfqp45d7290cis7dwp4-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/aqsi5mblgqacshz6f7g7fm0p9wv0m19i-galen-2.3.7/bin
patching script interpreter paths in /nix/store/aqsi5mblgqacshz6f7g7fm0p9wv0m19i-galen-2.3.7
/nix/store/aqsi5mblgqacshz6f7g7fm0p9wv0m19i-galen-2.3.7/bin/galen: interpreter directive changed from "/bin/bash" to "/nix/store/i9g6883w05pyj9aa4sl8hn945qyy6j53-bash-4.4-p19/bin/bash"
/nix/store/aqsi5mblgqacshz6f7g7fm0p9wv0m19i-galen-2.3.7

Success on x86_64-linux (full log)
Attempted: galen
Partial log (click to expand)
building
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/s5whrksq3l5xnv6m5jqbpgmycgj8f9n6-galen-2.3.7
strip is /nix/store/92d2ifxcni4n3zx9s8wnkcjlvnx5ajlc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/s5whrksq3l5xnv6m5jqbpgmycgj8f9n6-galen-2.3.7/bin
patching script interpreter paths in /nix/store/s5whrksq3l5xnv6m5jqbpgmycgj8f9n6-galen-2.3.7
/nix/store/s5whrksq3l5xnv6m5jqbpgmycgj8f9n6-galen-2.3.7/bin/galen: interpreter directive changed from "/bin/bash" to "/nix/store/m47apl3hq3i52fzy2cz24378p0xn4lyx-bash-4.4-p19/bin/bash"
checking for references to /build in /nix/store/s5whrksq3l5xnv6m5jqbpgmycgj8f9n6-galen-2.3.7...
/nix/store/s5whrksq3l5xnv6m5jqbpgmycgj8f9n6-galen-2.3.7

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: galen
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


Roll engine 5aff31194809..f6435de88c7a (8 commits)

https://github.com/flutter/engine/compare/5aff31194809...f6435de88c7a
git log 5aff31194809..f6435de88c7a --first-parent --oneline
2020-03-06<EMAIL_ADDRESS>Roll fuchsia/sdk/core/mac-amd64 from J6ct_... to 95geB... (flutter/engine#16982)
2020-03-06<EMAIL_ADDRESS>[web] Fixes IE11 crash due to missing canvas ellipse support and font polyfill failure (flutter/engine#16965)
2020-03-06<EMAIL_ADDRESS>Fix issue viewdidload call while init FlutterViewController (flutter/engine#16672)
2020-03-06<EMAIL_ADDRESS>[fuchsia] fix broken flows when under high load (flutter/engine#16834)
2020-03-06<EMAIL_ADDRESS>Roll src/third_party/skia 93a2a6b8badb..74055566bd14 (2 commits) (flutter/engine#16981)
2020-03-06<EMAIL_ADDRESS>Roll src/third_party/skia 012f8497802e..93a2a6b8badb (4 commits) (flutter/engine#16974)
2020-03-06<EMAIL_ADDRESS>fix shadows and mask filter blurs (flutter/engine#16963)
2020-03-06<EMAIL_ADDRESS>Roll fuchsia/sdk/core/linux-amd64 from cXgMr... to cTw2C... (flutter/engine#16970)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Gold has detected one or more untriaged digests on patchset 8.
Please triage them at https://flutter-gold.skia.org/search?issue=52135.

Commit queue failed; closing this roll.


feat: add type for response

and other chore fixes.
I've added some configurations to help the unit tests run properly, but I haven't really executed all of them in their entirety. This is because there is a 2s wait per request and this library doesn't have a proper flow limiting strategy right now.

@kerolloz please review this


Object have not been declared

The project does not compile.

These objects: Cofffee, Egg, Bacon, Toast and Juice have not been declared.
What are the expectation of these classes to have?

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

ID: 17d27a0d-c072-8c9f-7e31-3de60bee9ae8
Version Independent ID: e0c09794-e712-19ff-cb9f-12648d60d4f6
Content: Asynchronous programming in C#
Content Source: docs/csharp/programming-guide/concepts/async/index.md
Product: dotnet-csharp
Technology: csharp-async
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

There is a note in the article saying:

The Coffee, Egg, Bacon, Toast, and Juice classes are empty. They are simply marker classes for the purpose of demonstration, contain no properties, and serve no other purpose.

I supposed we should figure it out ourselves to get the code running before making enhancing it with tasking.


[ToggleGroup] Use role=radio when type=single

Originally spotted here https://github.com/radix-ui/primitives/issues/949
The WAI ARIA toolbar example shows the expectation https://www.w3.org/TR/wai-aria-practices/examples/toolbar/toolbar.html

Is that only when used in a toolbar or by itself too?
I'm confused why we're talking about toolbar, when we're talking about toggle group too.
I know we're re-exporting it there, but just want to understand where the issue lies.

I assumed both as the current implementation seems it wouldn't make it clear to SRs that only one item can be selected.


wiki/Articles#chinese: many pages cant found

What did you do?

I want read some articles to improve my understanding of Go. Then I found many article in https://github.com/golang/go/wiki/Articles#chinese cant found:

Test Go module
Why you PHP guys should learn Golang
Function Call by Name in Golang
Golang: Funny Play with Channel
Using MyMySQL - A interface of database/sql
Go did what on the Stack?

Most of these acticles belongs to one people.
Can you contact him and fix this.
And, I found many articles in English are very great.
How can I put the translation to the wiki.

We have no special contact info for the author of the articles.
The wiki is also open for anyone to edit directly.
Feel free to contact the original author directly


Can not set default value to 0 in make_attrgetter

Hi,
When I add default parameter to groupby filter locally, I just found that make_attrgetter ignore the default value 0.
make_attrgetter should allow setting the default value to 0, False, [] etc.
I can send a PR if you agree with it.
thanks.

Duplicate of #1331


Works perfectly in admin but I can't have it on my pages (crispy-forms)

Hi everyone, the plugin works for the admin, but not for my pages. I checked the html and is the ckeditor widget, but is render as a normal TextField.
The javascript is accessible, no error in the javascript console. On admin works fine.
The jquery is already loaded in my settings through django-pipeline.
I use django-crispy-forms. Is it a problem?

Maybe the form media are affected/overridden and no initialization code is available? or maybe you have to explicitly add {{ myform.media }} tag?

yes, I have to explicit add it... thank you!


FIXED Delete empty item bug and new language text editing bug

related in issues #424  and maybe #374
Deleting elements shows empty buttons that, if pressed, deletes all entries in the dictionary.
Fixed an issue that causes new language texts to be removed when saving

I have done a fix on master and merged back, so this is now in conflict.

Reviewed where "" used. I decided to change the 2 remove selectionItems with null and keep the others as "".


Hi, are you interested in participating in the Open-CD TRP program?

https://github.com/likyoo/open-cd/tree/main/projects/open-cd_technical_report

Nice to hear from you, since ChangeFormer is already supported in open-cd, you only need to provide a description of ChangeFormer. You can send it to me via email (likyoo@sdust.edu.cn). Thank you!!!

@wgcban Hi, Chaminda, I sent you an invitation email and look forward to your reply!

@wgcban Hi, wgcban, how's it going? We plan to release the first version of the technical report on arXiv in the near future, and we would very much appreciate it if you could provide a short description of ChangeFormer. If you don't have time for this, please let us know by 20 July, thank you!


How to create a task and workflow for uploading a file from your path.

Could you please provide a sample workflow json.

@v1r3n Could you please provide a way to upload a file in a task within a workflow .Also can you also provide a way to do it programatically

Can anyone please update on this @v1r3n  ? We are stuck at this point and we need a help on this .Please reply

Should be straightforward unless I misunderstood the question.

Register a simple workflow and task with conductor
Implement your worker code base that uploads the file.
Use the task polling capabilities to register that code base to the associated Registered task
Then, execute that task poller.

Thanks @saidatta for your response.
@amitprakash30 @APrakash1989 Please refer the documentation here to learn more about how to create tasks and workflows.
Please go through the beginner labs to get a quick feel about how conductor can be used in your use-case.


WIP - episode duration tag / attribute

Hello all,
It is very useful for podcasts listeners if the duration of episodes can be shown at podcast players.
The RSS enclosure tag has an attribute for length, which is the size of the enclosure in bytes, but it does not support duration for media files natively.
Since the namespace also support alternate enclosures that could have a different duration, these scenario should also be considered.
Existing Tags
<itunes:duration>
From A Podcaster’s Guide to RSS

The duration of an episode.
Different duration formats are accepted however it is recommended to convert the length of the episode into seconds.

References

RSS 2.0 enclosure tag
Alternate Enclosure tag
A Podcaster’s Guide to RSS - at https://help.apple.com/
RSS feed guidelines for Google Podcasts

What's the issue with <itunes:duration>?

Hello @jamescridland ,

What's the issue with <itunes:duration>?

Not much, my understanding is that the podcast namespace aimed also to consolidate features from other namespaces.
One think that I don't like with <itunes:duration> is its lack of format definition for the value:

Different duration formats are accepted...

Which formats? Empirically I know that hh:mm:ss is often used, but there is no clear definition. Personally it makes it easier for me as app developer if only the duration in seconds is accepted - although, I understand that the feed is also supposed to be as human readable as possible, and hh:mm:ss is human-friendlier.
Another aspect, as mentioned in the issue description:

Since the namespace also supports alternate enclosures that could have a different duration, these scenario should also be considered.

This is something where <itunes:duration> would not help, as it is only supposed to be used directly under the <item>.

I really don't think we should limit ourselves based on making the RSS feed "human-readable." It's a coding style intended to be read by apps, not humans. And it's already rather unreadable simply because of the existence of tags.


Fix use of deprecated AbsolutePath.init

Non-throwing AbsolutePath.init(_:) is deprecated, we should use AbsolutePath.init(validating:) throws instead.

Windows CI failure looks unrelated:

CMake Error: File C:/Users/swift-ci/jenkins/workspace/sourcekit-lsp-PR-windows/llvm-project/llvm/stdlib/public/Cxx/std/libstdcxx.modulemap does not exist.
CMake Error at C:/Users/swift-ci/jenkins/workspace/sourcekit-lsp-PR-windows/swift/unittests/ClangImporter/CMakeLists.txt:1 (configure_file):
  configure_file Problem configuring file

CMake Warning at C:/Users/swift-ci/jenkins/workspace/sourcekit-lsp-PR-windows/swift/unittests/runtime/CMakeLists.txt:19 (message):
  Building the swift runtime using the host compiler, and not the just-built
  clang.


Unexpected stop at iteration 2 - again

Like others before me, I am experiencing an unexpected stop at iteration 2, but I don't think I am making the mistakes that were previously reported. I am running this on a machine with 64 CPU and 256 GB memory.
Here is my command line:
python ~/local/src/SALSA/run_pipeline.py -a genome.scf.fasta -l genome.scf.fasta.fai -b alignment-Hi-C.bed -e AAGCTT -o SALSA-out
Here is the commands.log:
/home/broe.1/local/src/SALSA/break_contigs_start -a SALSA-out/alignment_iteration_1.bed -l SALSA-out/scaffold_length_iteration_1 > SALSA-out/input_breaks -s 100python /home/broe.1/local/src/SALSA/correct.py  genome.scf.fasta SALSA-out/input_breaks SALSA-out/alignment_iteration_1.bed SALSA-outpython /home/broe.1/local/src/SALSA/RE_sites.py -a SALSA-out/assembly.cleaned.fasta -e AAGCTT > SALSA-out/re_counts_iteration_1 python /home/broe.1/local/src/SALSA/make_links.py -b SALSA-out/alignment_iteration_1.bed -d SALSA-out -i 1 -x abc python /home/broe.1/local/src/SALSA/fast_scaled_scores.py -d SALSA-out -i 1 sort -k 5 -gr SALSA-out/contig_links_scaled_iteration_1 > SALSA-out/contig_links_scaled_sorted_iteration_1 python /home/broe.1/local/src/SALSA/layout_unitigs.py -x abc -l SALSA-out/contig_links_scaled_sorted_iteration_1 -c 1000 -i 1 -d SALSA-out /home/broe.1/local/src/SALSA/break_contigs -a SALSA-out/alignment_iteration_2.bed -b SALSA-out/breakpoints_iteration_2.txt -l SALSA-out/scaffold_length_iteration_2 -i 2 -s 100   > SALSA-out/misasm_iteration_2.report python /home/broe.1/local/src/SALSA/refactor_breaks.py -d SALSA-out -i 2 python /home/broe.1/local/src/SALSA/make_links.py -b SALSA-out/alignment_iteration_2.bed -d SALSA-out -i 2 python /home/broe.1/local/src/SALSA/fast_scaled_scores.py -d SALSA-out -i 2 sort -k 5 -gr SALSA-out/contig_links_scaled_iteration_2 > SALSA-out/contig_links_scaled_sorted_iteration_2
And here are the contents of my SALSA-out directory:
alignment_iteration_1.bed alignment_iteration_2.bed assembly.cleaned.fasta breakpoints_iteration_2.txt commands.log contig_links_iteration_1 contig_links_iteration_2 contig_links_scaled_iteration_1 contig_links_scaled_iteration_2 contig_links_scaled_sorted_iteration_1 contig_links_scaled_sorted_iteration_2 input_breaks links_avoid_iteration_2 misasm_2.DONE misasm_iteration_2.report re_counts_iteration_1 re_counts_iteration_2 scaffold_length_iteration_1 scaffold_length_iteration_2 scaffolds_iteration_1.p
Let me know if you need more info. Thanks in advance for any help.
Cheers,
Michael

Hi,
Looks like your scaffolding didn't run all the way till the end as there's no scaffolds_FINAL.fasta file. Do you mind sharing the data with us so that we can try debugging it better?

That's fine. The assembly is 1.6G and the .bed file is 2.7G. What's the best way to get them to you?

Any update on this?

Hi again, can you confirm you received the data?

Yes, the data transferred OK but have not yet run it.

Great, thanks for the confirmation.

Hi,
There was a function in the code that was exiting if there are no HiC links without printing the final scaffolds. We have fixed this and you can use the latest commit to reach to final fasta file. Please let us know if you run into any other issues.

The general issue was that you have very low HiC coverage and low count links in the input. Salsa will warn you now about the low coverage rather than terminating but I wouldn't expect much scaffolding to happen here.


Provide Repository Changelog

Hi,
thanks for your work!
I noticed that the repository has just been updated to its latest version, moving it from v2.5.2 to v5.2.3.
Would it be possible to provide a CHANGELOG.md file, similar to the one proposed in keepachangelog website to briefly explain the changes that are introduced with each new tag?
Moreover, would it be possibile to describe the reason why repository version moved of three major versions? Is it possible that is just a typo?

Ok, thank you for the clarification @ThomasAribart
Github releases are also perfectly fine, even though they are not platform agnostic.
I believe this issue can be closed as soon as next release is published.

Hi @danibix95 ! v5.2.3 has been unpublished and v2.5.3 is now available 👍


Cerberus cop enhancement similar to OCP build cop

@jtaleric came up with an idea to add support to tag specific people on slack in case of cluster failures instead of everyone in the channel. The cerberus cop responsible for taking a look to fix/file a bz for the failures on the cluster. We can provide a config with a list of people/slack handles along with specific people assigned as cops for each day of the week for cerberus to read and only ping the active cop for the day.

Fixed by https://github.com/openshift-scale/cerberus/pull/33.