text:
missing 1 requirement

the syntax "from saio.boundaries import bkg_vg250_2_lan as BkgVg250Lan" is giving a TypeError back with the missing argument 'generated'
even the table BkgVg250Lan is still existing in the boundaries schema

Sorry for the long latency. I lost track with Github notifications during the pandemic.
Is this still a problem? On which python version? Please include the full exception!

Sorry for the long latency. I lost track with Github notifications during the pandemic.
Is this still a problem? On which python version? Please include the full exception!

I think I discovered the same error when using that Jupyter Notenbook OEP-oedialect_MaStR_region.ipynb in Python 3.8.
After executing
from saio.boundaries import bkg_vg250_2_lan as BkgVg250Lan
from saio.boundaries import bkg_vg250_4_krs as BkgVg250Krs
from saio.boundaries import bkg_vg250_6_gem as BkgVg250Gem

I get the following message:
`---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
 in
----> 1 from saio.boundaries import bkg_vg250_2_lan as BkgVg250Lan
2 from saio.boundaries import bkg_vg250_4_krs as BkgVg250Krs
3 from saio.boundaries import bkg_vg250_6_gem as BkgVg250Gem
~/anaconda3/envs/py38_open_mastr/lib/python3.8/importlib/_bootstrap.py in handle_fromlist(module, fromlist, import, recursive)
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/saio.py in memoizer(*args)
60     def memoizer(*args):
61         if args not in cache:
---> 62             cache[args] = func(*args)
63         return cache[args]
64     return memoizer
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/saio.py in getattr(self, name)
94         # Idea for treating views from https://hultner.se/quickbits/2017-10-23-postgresql-reflection-views-python-sqlalchemy.html
95
---> 96         tab = sa.Table(name, self.Meta, autoload=True, schema=self.schema)
97         attrs = {'module': self.name,
98                  'table': tab}
 in new(cls, *args, **kw)
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/util/deprecations.py in warned(fn, *args, **kwargs)
277                         stacklevel=3,
278                     )
--> 279             return fn(*args, **kwargs)
280
281         doc = fn.doc is not None and fn.doc or ""
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/sql/schema.py in new(cls, *args, **kw)
535             except Exception:
536                 with util.safe_reraise():
--> 537                     metadata._remove_table(name, schema)
538
539     def init(self, *args, **kw):
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/util/langhelpers.py in exit(self, type_, value, traceback)
67             self.exc_info = None  # remove potential circular references
68             if not self.warn_only:
---> 69                 compat.raise(
70                     exc_value,
71                     with_traceback=exc_tb,
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/util/compat.py in raise_(failed resolving arguments)
178
179         try:
--> 180             raise exception
181         finally:
182             # credit to
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/sql/schema.py in new(cls, *args, **kw)
530             metadata._add_table(name, schema, table)
531             try:
--> 532                 table._init(name, metadata, *args, **kw)
533                 table.dispatch.after_parent_attach(table, metadata)
534                 return table
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/sql/schema.py in _init(self, name, metadata, *args, **kwargs)
605         # circular foreign keys
606         if autoload:
--> 607             self._autoload(
608                 metadata,
609                 autoload_with,
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/sql/schema.py in _autoload(self, metadata, autoload_with, include_columns, exclude_columns, resolve_fks, _extend_on)
640         insp = inspection.inspect(autoload_with)
641         with insp._inspection_context() as conn_insp:
--> 642             conn_insp.reflect_table(
643                 self,
644                 include_columns,
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/engine/reflection.py in reflect_table(self, table, include_columns, exclude_columns, resolve_fks, _extend_on)
771         cols_by_orig_name = {}
772
--> 773         for col_d in self.get_columns(
774             table_name, schema, **table.dialect_kwargs
775         ):
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/engine/reflection.py in get_columns(self, table_name, schema, **kw)
494
495         with self._operation_context() as conn:
--> 496             col_defs = self.dialect.get_columns(
497                 conn, table_name, schema, info_cache=self.info_cache, **kw
498             )
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/oedialect/dialect.py in get_columns(self, engine, table_name, schema, **kw)
387             columns = []
388             for name, format_type, default, notnull, attnum, table_oid in rows:
--> 389                 column_info = self._get_column_info(
390                     name, format_type, default, notnull, domains, enums, schema,
391                     None)
TypeError: _get_column_info() missing 2 required positional arguments: 'generated' and 'identity'`

I think I discovered the same error when using that Jupyter Notenbook OEP-oedialect_MaStR_region.ipynb in Python 3.8.
After executing
from saio.boundaries import bkg_vg250_2_lan as BkgVg250Lan
from saio.boundaries import bkg_vg250_4_krs as BkgVg250Krs
from saio.boundaries import bkg_vg250_6_gem as BkgVg250Gem

I get the following message:
`---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
 in
----> 1 from saio.boundaries import bkg_vg250_2_lan as BkgVg250Lan
2 from saio.boundaries import bkg_vg250_4_krs as BkgVg250Krs
3 from saio.boundaries import bkg_vg250_6_gem as BkgVg250Gem
~/anaconda3/envs/py38_open_mastr/lib/python3.8/importlib/_bootstrap.py in handle_fromlist(module, fromlist, import, recursive)
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/saio.py in memoizer(*args)
60     def memoizer(*args):
61         if args not in cache:
---> 62             cache[args] = func(*args)
63         return cache[args]
64     return memoizer
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/saio.py in getattr(self, name)
94         # Idea for treating views from https://hultner.se/quickbits/2017-10-23-postgresql-reflection-views-python-sqlalchemy.html
95
---> 96         tab = sa.Table(name, self.Meta, autoload=True, schema=self.schema)
97         attrs = {'module': self.name,
98                  'table': tab}
 in new(cls, *args, **kw)
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/util/deprecations.py in warned(fn, *args, **kwargs)
277                         stacklevel=3,
278                     )
--> 279             return fn(*args, **kwargs)
280
281         doc = fn.doc is not None and fn.doc or ""
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/sql/schema.py in new(cls, *args, **kw)
535             except Exception:
536                 with util.safe_reraise():
--> 537                     metadata._remove_table(name, schema)
538
539     def init(self, *args, **kw):
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/util/langhelpers.py in exit(self, type_, value, traceback)
67             self.exc_info = None  # remove potential circular references
68             if not self.warn_only:
---> 69                 compat.raise(
70                     exc_value,
71                     with_traceback=exc_tb,
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/util/compat.py in raise_(failed resolving arguments)
178
179         try:
--> 180             raise exception
181         finally:
182             # credit to
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/sql/schema.py in new(cls, *args, **kw)
530             metadata._add_table(name, schema, table)
531             try:
--> 532                 table._init(name, metadata, *args, **kw)
533                 table.dispatch.after_parent_attach(table, metadata)
534                 return table
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/sql/schema.py in _init(self, name, metadata, *args, **kwargs)
605         # circular foreign keys
606         if autoload:
--> 607             self._autoload(
608                 metadata,
609                 autoload_with,
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/sql/schema.py in _autoload(self, metadata, autoload_with, include_columns, exclude_columns, resolve_fks, _extend_on)
640         insp = inspection.inspect(autoload_with)
641         with insp._inspection_context() as conn_insp:
--> 642             conn_insp.reflect_table(
643                 self,
644                 include_columns,
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/engine/reflection.py in reflect_table(self, table, include_columns, exclude_columns, resolve_fks, _extend_on)
771         cols_by_orig_name = {}
772
--> 773         for col_d in self.get_columns(
774             table_name, schema, **table.dialect_kwargs
775         ):
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/SQLAlchemy-1.4.0b1-py3.8-linux-x86_64.egg/sqlalchemy/engine/reflection.py in get_columns(self, table_name, schema, **kw)
494
495         with self._operation_context() as conn:
--> 496             col_defs = self.dialect.get_columns(
497                 conn, table_name, schema, info_cache=self.info_cache, **kw
498             )
~/anaconda3/envs/py38_open_mastr/lib/python3.8/site-packages/oedialect/dialect.py in get_columns(self, engine, table_name, schema, **kw)
387             columns = []
388             for name, format_type, default, notnull, attnum, table_oid in rows:
--> 389                 column_info = self._get_column_info(
390                     name, format_type, default, notnull, domains, enums, schema,
391                     None)
TypeError: _get_column_info() missing 2 required positional arguments: 'generated' and 'identity'`

This is caused by an incompatibility between oedialect and newer versions of SQLAlchemy, as is being discussed at https://github.com/OpenEnergyPlatform/oedialect/issues/35 . I'll leave it open here to track the status!

Since the upstream bug is fixed, I‘ll close this issue. The recommended version pin should be in oedialect not in saio. Feel free to reopen, if you disagree!

authors: TuPhanRLI coroa mathias-dgs

repo: coroa/saio


text:
Unused Unknown Risk appears in Overview

Avoid duplicates

[X] Bug is not mentioned in the FAQ
[ ] Bug is specific for Android only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
This may also apply to iOS. Please move if appropriate.
[X] Bug is not already reported in another issue
See related closed issue https://github.com/corona-warn-app/cwa-app-android/issues/1830#issue-759345191 which shows that the behavior was changed in CWA Android 1.8.

Technical details

Device name: Samsung Galaxy A5 (2017) SM-A520F
Android version: 8.0.0
App version: 1.10.1

Describe the bug
The app overview shows the status "Unknown Risk" however this status is unused starting with version 1.8.
Steps to reproduce the issue

If CWA already installed, then uninstall
Install CWA
Disable Wi-Fi and mobile data
Open CWA
Tap "LET'S GET STARTED", "NEXT"
Tap "ACTIVATE EXPOSURE LOGGING" / Turn on
Tap "NEXT", "NEXT" / OK

Note that the risk card shows "Low Risk" (not "Unknown Risk").

Tap three-dot overflow menu in CWA, and "Overview"
Scroll down to section 2 with heading "Risk of Infection" and the table with title "The following risk status can be shown:"

Note that the table includes the status "Unknown Risk" with grey color.

Expected behaviour
The overview should not include the unused risk status "Unknown Risk".
Possible Fix
Align Overview with possible app status.

"Unknown Risk" should be removed.

Additional context
The status "Unknown Risk" was removed with PR "Refactor riskcard & states; Chapter1 (EXPOSUREAPP-4049, EXPOSUREAPP-3834)" https://github.com/corona-warn-app/cwa-app-android/pull/1751 which was merged into branch release/1.8.x.

Same behavior under iOS.
@dsarkar please move to documentation repo.

Same behavior under iOS.
@dsarkar please move to documentation repo.

source: gharchive/issue

repo: corona-warn-app/cwa-app-android

license_type: permissive

license_source: github-api


text:
Verifying passport and saving it in app

Feature description
In other environments, passport verification is already widely used (e.g. online insurance/ online banking/ etc via AI verification or PostIdent).
It would be amazing if the user could do that and save the verification and the used passport pictures in the app.
Then when a QR code is checked, the checker sees the passport pictures and the verification. If the picture matches, the person doesn't have to also show the passport.
Problem and motivation
This would save a lot of time when checking QR codes.
Specific steps:

User requests passport validation
User takes pictures/ videos of passport and himself/herself
Pictures/Videos are saved in app
Pictures or videos are used for Validation via Internet or PostIdent
App get notification of verification
App saves pictures/videos with QR code

When scanning:

User shows QR code
Scanner scans QR code and scrolling down can see a validated passport and the pictures/videos used for validation
Scanner will look at the person and verify if same person

Is this something you're interested in working on
No

Good Morning @claravoss
Thanks for the suggestion! I suggest to take a look at https://github.com/corona-warn-app/cwa-wishlist/issues/459, as this is quite similar.
It would be nice to not multithread the discussion but try to stay in one issue, e.g. #459.
If you think this issue can be closed in favor of #459, it would be great if you would so!

Thanks for your suggestion @claravoss
Since #459 was declined already, it would not make sense to re-open the topic at the current time.
To keep the board clean I would like to close the issue.

authors: Ein-Tim claravoss svengabr

repo: corona-warn-app/cwa-wishlist


text:
The record create interface is not consistent with the display

Low priority
Description
When I view the record via the "all records" view in the admin panel everything seems fine.
When I create a new record, I get a different view which makes it feel off.
In the version prior, both interfaces (view and create) were the same.
Location
Compose/admin/modules/all records/add new record

Todo: check if this is still the case and if so discuss with Jože on what to do

This looks to have been fixed to be consistent @katrinDY

For today: sync with Bojan to discuss task - what needs to be tested and be done

Everything looks good, moving the ticket to Done.

authors: Bojan-Svirkov EmmyMay katrinDY

repo: cortezaproject/corteza


text:
Update live tweeting section with better examples

Addresses issue #18

Great point!  I forget to add the . all the time.  Thanks for the PR!

source: gharchive/pull-request

authors: corylanou webRat

repo: corylanou/go-meetup

license: mit

license_source: bigquery


text:
Missing PropTypes and missing generic types

I couldn't get the latest version to build, the java compiler was complaining that it could not infer the types of those ArrayLists and the HashMap, so I manually added them.
On top of that, React was complaining about missing PropTypes for the native modules' props, so I added those as well.
With these changes it's working for me now.

It's #111 that error, actually.

Thanks for this @paulgessinger

authors: corymsmith paulgessinger

repo: corymsmith/react-native-icons


text:
Remove extra app & story state writers in stage 1

I never removed the app and story state writers in stage 1 once we moved them to the base layout class. This may be at least part of the issue @patudom is seeing in cosmicds/hubbleds#503.

Yes, this seems to fix the issue. Thanks, @nmearl! If I see it happening again I will reopen the issue.

authors: nmearl patudom

repo: cosmicds/hubbleds

license: MIT


text:
Rename Rpc interface exported from Stargate queries

After #616 when we have a better understanding of what this does.
export interface Rpc {
  request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}

export function createRpc(base: QueryClient): Rpc {
  return {
    request: (service: string, method: string, data: Uint8Array): Promise<Uint8Array> => {
      const path = `/${service}/${method}`;
      return base.queryUnverified(path, data);
    },
  };
}

@webmaster128 How about ProtobufRpcClient? We use this createRpc function to wrap QueryClient.queryUnverified into an interface (Rpc) that the QueryClientImpls generated by ts-proto can use.

Sounds good

repo: cosmos/cosmjs


text:
refactor: remove fastnode system

this pr is a proposal to remove the fast node system.
we will run benchmarks on main and this branch to test the differences
v1 works better without the fast node system due to OS and db caching

after talking with osmosis this is needed

repo: cosmos/iavl


text:
upgrade checkout action to version with node20

Node16 is deprecated and Actions using it will stop working 3rd of June
https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
See example warning in https://github.com/cosmos/ibc-rs/actions/runs/9069561778

Thanks for the PR :sparkles:
Can you please add a dependabot entry for github-actions?

authors: cario-dev rnbguy

repo: cosmos/ibc-rs


text:
feat: provide Into<String> for identifier types

PR author checklist:

[x] Added changelog entry, using unclog.
[x] Added tests.
[x] Linked to GitHub issue.
[x] Updated code comments and documentation (e.g., docs/).
[ ] Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

[ ] Reviewed Files changed in the GitHub PR explorer.
[ ] Manually tested (in case integration/unit/mock tests are absent).

@Farhad-Shabani, for sure. I actually don’t care about AsRef<str> at all. I've only added it for consistency. Notice that ChannelId and PortId do implement AsRef<str> so IMO it makes sense for all of the identifiers to implement it (or alternatively for none of them to implement it).

Ahh, that's right. Actually, either one is redundant!


text:
🛑 Mainnet [TezTools] (eu01-node.teztools.net) is down

In 06947ca, Mainnet [TezTools] (eu01-node.teztools.net) (https://eu01-node.teztools.net/chains/main/blocks/head/header) was down:

HTTP code: 502
Response time: 470 ms

Resolved: Mainnet [TezTools] (eu01-node.teztools.net) is back up in aebab22.

repo: cotezos/teznodes


text:
Delay Push Replication by n milliseconds or schedule

Hi @hideki
Could we implement a delay in the  PushReplication for N seconds or schedule a push replication with a backoff functionality ?
Something like:
Replication push = db.createPushReplication(url);
push.setDelay(nTime);
push.start();

nTime => Time in milliseconds or a scheduler Class ....
I would a assume that implementing that would mean pinning the future timestamp to the doc somehow so a scheduler thread in the back can query the docs which are about to get pushed to the SyncGateway.
regards,
Patrick

hi @pbertsch,
Are you looking for the method fo Replicator.getPendingDocumentIDs() which returns list of docIDs that are not pushed yet.

Hi @hideki ,
no, I thought it might be helpful to delay the initial push/pull by N seconds once a change was registered.
Something like adding time until the push actually happens. I assume it does something like that under the hud but I thought it might be interesting giving the power to the developer.

@pbertsch,
Push replicator obtains a list of documents which should be pushed by changesSince() method and Database.ChangeListener. So, you could modify following code to implement the delay feature.
https://github.com/couchbase/couchbase-lite-java-core/blob/master/src/main/java/com/couchbase/lite/replicator/PusherInternal.java#L266
https://github.com/couchbase/couchbase-lite-java-core/blob/master/src/main/java/com/couchbase/lite/replicator/PusherInternal.java#L296

authors: hideki pbertsch

repo: couchbase/couchbase-lite-android


text:
Improvements to TTL (expiration) support

Two changes to improve support for specifying TTLs (expiration) for documents:

Allow TTLs to be optionally set for Existing documents (i.e. updates). Previously only new documents could be given a TTL.
Change the type of the expiration likelihood from an integer percentage to a fraction. This permits specifying less than 1% of mutations to have a TTL set.

Stale - closing.

👋

authors: daverigby ingenthr

repo: couchbase/spring


text:
Implement scm parsing in PomParser

Addresses https://github.com/fthomas/scala-steward/issues/923#issuecomment-538567839
so Scala Steward will include SCM links in pull requests for most artifacts.
Related to https://github.com/coursier/coursier/pull/1291
cc: @fthomas
I could not find a right place to add tests.
I will add tests if guidance provided 🙏

@exoego A small test under modules/core/shared/src/test/scala/coursier would be fine I think. It can call parseRawPomSax with some inlined POM data, and check that the resulting Project has the right SCM fields. utest already is around in the tests of core, see this test for example.

@alexarchambault
Added test and squahsed commits.
Tests are added only in JVM, since Scala.js does not recognize utest as current build settings.

Merging, thanks @exoego!

authors: alexarchambault exoego

repo: coursier/coursier


text:
migrating to w3up

Have a look at README.md for how web3.storage works now with UCAN authentication system.
given the go-w3up library is under heavy development; we decided to use mature w3cli tool, invocating it from golang code.
bunch of input parameters change for ipfs-pinner now.
ipfs-pinner is now configured to upload to a space within an account (as opposed to uploading within an account, as before). This means that if we decide to have separate spaces (e.g. separate spaces for brp/bsp), we would need different ipfs-pinner instances to run.

docker compose files need to be modified to accept the new env vars replacing the old ones

There has to be explicit directions to the validators for -

downloading the proof.out file

moving this file to the volume being assigned in the rudder docker-compose-mbase/mbeam.yml  run, for example sudo mv /home/blockchain/rudder/proof.out ~/.ipfs/proof.out  for line https://github.com/covalenthq/rudder/blob/4fa0103a1f0be45af36a0fb4a3bcf6da12c6f4bd/docker-compose-mbase.yml#L9

    volumes:
      - ~/.ipfs:/root/.ipfs/

and then set the docker env
Environment="W3_DELEGATION_FILE=/root/.ipfs/proof.out"

so that the docker instance can find the proof.out file within the mounted volume

Setting both W3_AGENT_KEY and W3_DELEGATION_FILE in their systemd definitions which is being used to run ipfs-pinner or rudder

docker compose files need to be modified to accept the new env vars replacing the old ones

no docker compose file in this repo. If you meant those in rudder, then yes that's been done.

repo: covalenthq/ipfs-pinner


text:
Support for Android 5

Hello.
Would it be possible to lower minSdkVersion back to 21?
According to Google [1], Exposure Notifications API may work on some phones with Android 5:

For your app to work on all devices, set your minSdkVersion to version 6.0 (API level 23) or higher. The framework works on some devices as low as version 5.0 (API level 21), so using this version is an option to increase the number of devices eligible. If you decide to set the minSdkVersion to API level 21, you should test your app on the most popular Android 5.0 devices in your country to ensure that your app works as intended.

[1] https://developers.google.com/android/exposure-notifications/exposure-notifications-api
Unless there are other technical reasons,
I would prefer some disclaimer for phones with this version instead of forbidding them.
I've tried to modify the app myself for my Sony Xperia Z1 Compact with Android 5.1.1;
I was able to spawn it, but the API rejected my signature of the app:
I/ExposureNotification( 2439): Utils#isSupported enabled=true [CONTEXT service_id=236 ]
I/ExposureNotification( 2439): Utils#isBluetoothSupported requireMultiAdvertisement=false [CONTEXT service_id=236 ]
I/ExposureNotification( 2439): isDeviceSupported=true, isBluetoothSupported=true, BluetoothAdapter.isMultipleAdvertisementSupported=false [CONTEXT service_id=236 ]
I/ExposureNotification( 2439): Denied cz.covid19cz.erouska.dev:9E0D7AF6DC00CD39E92394DD154BC2644D17B82AC216C529ABC22EFC56437050: not on whitelist [CONTEXT service_id=236 ]
W/ExposureNotification( 2439): Reject the api access due to the caller is not whitelisted [CONTEXT service_id=236 ]

Thanks for your work.

Yes, theoretically it might work on some Android 5 devices. But we decided to keep minSdk to version 23. The reasons are:

we will need more testing capacity, both in people and phones
we will need more support capacity for these users
this extra effort is not worth for few percent of extra users
we looked at code of similar apps (like Germany's Corona-Warn-App) and they also have 23

Thanks for explanation.
You're right that there are only few such applications supporting Android 5 (such as that of South Africa),
but I still think that even untested and supportless app may be useful for some people (minimizing that extra effort).
Please, reconsider the following options:
1) One-character change + disclaimer:

change just the minSdk in source;
write to the description that

it's guaranteed to work only on Android 6 and higher and
that no support will be provided for Android 5.

I suppose that the worst-case scenario is the crash of the application
leading user to uninstall it and so recovering the previous state of his phone,
isn't it?
Even without any testing, this may only extend number of supported devices.
The downside of this solution is that people may not know their OS version
and the disclaimer might discourage them from installing the app.
2) In-app disclaimer:

modify the app to first check the OS version and inform user that

either it is fully functional (6+),
or the device may be unsupported and he should uninstall it in case of issues (5);

write to description that the app will inform user in a very rare case of unsupported device.

I suppose that the application will not crash before trying to contact the API.
This is also supported by the COVID app of Uruguay,
which provides some limited functionality for Android 5 and uses Exposure Notification API for higher versions.
This requires a little more effort in changing the app,
but the in-app disclaimer may inform concrete people not to contact you for further support.
I can test it on two phones:

Sony Xperia Z1 Compact (D5503) with Android 5.1.1, and
Samsung Galaxy Xcover 3 (SM-G388F) with Android 5.1.1.

3) Publishing modified APK only on github:

probably possible automatically through artifacts.

This has no influence on vast majority of people,
but helps only few individuals
so it's not worth it for you to do it.
In this case, I can try to prepare a pull request.
It will took me some time to learn how your project works,
but still not as much as unlocking and manually reinstalling the two affected devices.

Hi, thanks for a detailed answer. Options 1) and 2) are out of the question now, because no matter what disclaimers we put out there, users will still write to our support which is currently overloaded. We don't have a full capacity to help all Android 6+ users.
But we don't have a problem with publishing signed APK with Android 5.0 here in this repo. It might help a few technical users like yourself. I can do that one time and I will accept a pull request for some automation. What do you think?

Hi,
great, thank you.
So I'll try to modify .github/workflows to build also production 5+ version beside the two (prod and dev) and include it in generated github artifact, which seems to be downloadable by all registered users of github.

I built current develop with minSdk 21 manually and signed it with prod certificate, can you test it on your devices? https://drive.google.com/file/d/1zm71VADGQmO5LFo72xN5E1wcstXBWSX6/view?usp=sharing

I'll test in a few hours, thanks.

Unfortunately, it crashed on both devices...
I compared the logs of the two v5 devices with working v6 device
and it worked up to starting scanning.
Then advertising failed on Xcover:
> W/ExposureNotification( 3899): Advertising not supported, error code=ERROR_BLUETOOTH_NOT_SUPPORTED [CONTEXT service_id=236 ]
  I/ExposureNotification( 3899): ExposureServiceInternalService.stopTracing [CONTEXT service_id=236 ]
  I/ExposureNotification( 3899): User turn off scanning. [CONTEXT service_id=236 ]
  I/ExposureNotification( 3899): Stopping scanning. [CONTEXT service_id=236 ]

On Xperia, there was only an informational fail, maybe not so important:
  I/ExposureNotification(25204): Start advertising, started=true [CONTEXT service_id=236 ]
  I/ExposureNotification(25204): AlarmManagerImpl.opportunisticSchedule called, delay=664000ms [CONTEXT service_id=236 ]
  I/ExposureNotification(25204): ScheduledExecutorImpl.schedule called, delay=664000ms [CONTEXT service_id=236 ]
  I/ExposureNotification(25204): scheduling daily task dispatcher [CONTEXT service_id=236 ]
> I/ExposureNotification(25204): Start advertising failed with TOO_MANY_ADVERTISERS [CONTEXT service_id=236 ]
  I/ExposureNotification(25204): Settings updated bluetooth enabled: true, location enabled: true [CONTEXT service_id=236 ]
  I/ExposureNotification(25204): Settings enabled, re-enabling scanning and advertising. [CONTEXT service_id=236 ]
  I/ExposureNotification(25204): Re-enabling scanning and advertising. [CONTEXT service_id=236 ]

Then the app crashed on something apparently different:
  E/AndroidRuntime(28248): FATAL EXCEPTION: main
  E/AndroidRuntime(28248): Process: cz.covid19cz.erouska, PID: 28248
  E/AndroidRuntime(28248): java.lang.RuntimeException: Failed to call observer method
  E/AndroidRuntime(28248): 	at androidx.lifecycle.ClassesInfoCache$MethodReference.invokeCallback(ClassesInfoCache.java:226)
  E/AndroidRuntime(28248): 	at androidx.lifecycle.ClassesInfoCache$CallbackInfo.invokeMethodsForEvent(ClassesInfoCache.java:194)
  E/AndroidRuntime(28248): 	at androidx.lifecycle.ClassesInfoCache$CallbackInfo.invokeCallbacks(ClassesInfoCache.java:185)
  E/AndroidRuntime(28248): 	at androidx.lifecycle.ReflectiveGenericLifecycleObserver.onStateChanged(ReflectiveGenericLifecycleObserver.java:37)
  E/AndroidRuntime(28248): 	at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:361)
  E/AndroidRuntime(28248): 	at androidx.lifecycle.LifecycleRegistry.forwardPass(LifecycleRegistry.java:300)
  E/AndroidRuntime(28248): 	at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.java:339)
  E/AndroidRuntime(28248): 	at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.java:145)
  E/AndroidRuntime(28248): 	at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.java:131)
  E/AndroidRuntime(28248): 	at androidx.fragment.app.Fragment.performStart(Fragment.java:2736)
  E/AndroidRuntime(28248): 	at androidx.fragment.app.FragmentStateManager.start(FragmentStateManager.java:365)
  E/AndroidRuntime(28248): 	at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1206)
  E/AndroidRuntime(28248): 	at androidx.fragment.app.FragmentManager.addAddedFragments(FragmentManager.java:2236)
  E/AndroidRuntime(28248): 	at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2009)
  E/AndroidRuntime(28248): 	at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1965)
  E/AndroidRuntime(28248): 	at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1861)
  E/AndroidRuntime(28248): 	at androidx.fragment.app.FragmentManager$4.run(FragmentManager.java:413)
  E/AndroidRuntime(28248): 	at android.os.Handler.handleCallback(Handler.java:739)
  E/AndroidRuntime(28248): 	at android.os.Handler.dispatchMessage(Handler.java:95)
  E/AndroidRuntime(28248): 	at android.os.Looper.loop(Looper.java:211)
  E/AndroidRuntime(28248): 	at android.app.ActivityThread.main(ActivityThread.java:5389)
  E/AndroidRuntime(28248): 	at java.lang.reflect.Method.invoke(Native Method)
  E/AndroidRuntime(28248): 	at java.lang.reflect.Method.invoke(Method.java:372)
  E/AndroidRuntime(28248): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
  E/AndroidRuntime(28248): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
  E/AndroidRuntime(28248): Caused by: java.lang.NoSuchMethodError: No virtual method getSystemService(Ljava/lang/Class;)Ljava/lang/Object; in class Landroid/content/Context; or its super classes (declaration of 'android.content.Context' appears in /system/framework/framework.jar)
> E/AndroidRuntime(28248): 	at cz.covid19cz.erouska.ext.ContextKt.isLocationEnabled(Context.kt:30)
  E/AndroidRuntime(28248): 	at cz.covid19cz.erouska.utils.DeviceUtils.isLocationEnabled(DeviceUtils.kt:23)
  E/AndroidRuntime(28248): 	at cz.covid19cz.erouska.ui.dashboard.DashboardVM.onStart(DashboardVM.kt:83)
  E/AndroidRuntime(28248): 	at java.lang.reflect.Method.invoke(Native Method)
  E/AndroidRuntime(28248): 	at java.lang.reflect.Method.invoke(Method.java:372)
  E/AndroidRuntime(28248): 	at androidx.lifecycle.ClassesInfoCache$MethodReference.invokeCallback(ClassesInfoCache.java:216)
  E/AndroidRuntime(28248): 	... 24 more

Context.kt:
  29  fun Context?.isLocationEnabled(): Boolean {
> 30      val locationManager = this?.getSystemService(LocationManager::class.java) ?: return false
  31      return LocationManagerCompat.isLocationEnabled(locationManager)
  32  }

According to StackOverflow this also needs v6+,
so there are probably more incompatible parts in the code.

For curiosity I tried the above linked APK on my two ancient Android 5 phones.
Doogee X5 Pro and Prestigio PSP3508DUO, both Android 5.1.
The APK installed OK and asked for update of Google Play Services. That apparently added Exposure Notification API to the system. It however enabled that API only on the Doogee. It did NOT installed the proper API on the Prestigio probably due to some HW incompatibliity. Therefore even after updating Google Play Services on the Prestigio eRouška did not allow to continue due to missing API.
On the Doogee, however, the app was registered as the EN compatible app and was able during the activation phase to actually activate the EN API.
However then after being activated the app crashes immediately after start. However the EN API is still on on the phone.
If I disable bluetooth the eRouška manages to briefly open and show the home screen including info that it somehow managed to download the database.
And the Google Android screen "Exposure Notificatisons" screen really displays "1 exposure check".
It appears to me that actually the Android via Google Play services after eRouška activates the EN API starts sending and receiving the beacons, and if the bluetooth is temporarily disabled eRouška may even manage to download the database of the infected IDs and MAYBE in case infection is detected Android may even manage to notify the user. However the UI of eRouška itself is unreachable since it crashes on start.
Since the EN API works independently on whether the particular app is running or not the system may actually work on the Doogee however I am not sure if running eRouška periodically is needed to download the fresh list of infected IDs or the Google Play Services can somehow fetch this data independently as well.

However what I find interesting that on very ancient Sony Xperia S (2012) which originally had Android 2.3 and officially supported Android up to 4.1 I use a custom ROM (nAOSPROM) based on Android 8.1 including sideloaded Google Services and it appears eRouška works perfectly even on such an ancient phone!

authors: brozkeff davidvavra ondracek-lukas


text:
Feature : Adding Pie chart to give states-wise percentage

Is your feature request related to a problem? Please describe.
No, it is related to enhancement , by adding pie chart to the home page.
Describe the solution you'd like
Like Worldometer website have this. see this
Describe alternatives you've considered
None
Additional context

/claim


text:
basic auth

blank basic authentication support

agree, but it was discussed that simple basic auth should be enough for prototype

repo: covidsafe/Backend


text:
LanceDB Integration

Only Postgres is integrated with MemGPT.
To provide flexibility with other vectorDBs, I have integrated LanceDB as a vectorDB #455

Merged LanceDB Integration

I used configure to enable lancedb but on usage I only get "Table with name lancedb_tbl not present". What do we need to do, to make this actually work? The docs don't tell about additional steps.

At what step you are getting this error?

When it tries to save something to the storage. It also totally panics when I /memory.

Ok I'll look into it and add support of it in docs asap. Once done I'll inform you

Added Bug Fix, once this is merged you can test it

@oderwat You can try once this PR is merged, for me it worked seemlessly now.

repo: cpacker/MemGPT


text:
Add ut as an alternative for unit testing?

Based on the recent talk in the North Denver Metro C++ Meetup, do you consider adding ut as an alternative to Catch to this template?

https://github.com/Sebanisu/test_bug_project/blob/main/src/unit_test/unit_test.cpp
I created this project because boost::ut shows red underlines in clion. But I am using conan to include it and build it and this project is based on this starter project. I was deleting stuff, and disabling things, I'm not using.

authors: Eremiell Sebanisu

license: Unlicense


text:
Update auxlib, clib, javalib, nativelib, ... to 0.5.3

About this PR
📦 Updates

org.scala-native:auxlib
org.scala-native:clib
org.scala-native:javalib
org.scala-native:nativelib
org.scala-native:nscplugin
org.scala-native:posixlib
org.scala-native:sbt-scala-native
org.scala-native:test-interface
org.scala-native:windowslib

from 0.5.1 to 0.5.3
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

🔍 Files still referring to the old version number
The following files still refer to the old version number (0.5.1).
You might want to review and update them manually.
project/plugins.sbt
sbt-locales/src/sbt-test/sbt-locales/common-filtering/project/plugins.sbt
sbt-locales/src/sbt-test/sbt-locales/no-filtering/project/plugins.sbt

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-native" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scala-native" }
}]

labels: library-update, early-semver-minor, semver-spec-patch, version-scheme:early-semver, old-version-remains, commit-count:1

Superseded by #344.

repo: cquiroz/sbt-locales


text:
Fix issues link on Accessibility page

Description
The Accessibility page links to https://github.com/pixelandtonic/spoke-and-chain/issues and should be updated to https://github.com/craftcms/spoke-and-chain/issues.

Fixed in bbf9cc533614e829853828361ecc274b5ae98e43.

repo: craftcms/spoke-and-chain


text:
Adding space as an "KEYBOARD ACTIONS" that calls confirm() just like Enter

I guess the title says it, would be really nice that space would do the same as enter for keyboard actions. :)

@Pecka40
Oh yeah, Adding SPACE will be nice :)
i will add it soon.
Thanks for pointing that out.

Feature is added

repo: craftpip/jquery-confirm


text:
Fix build issue by upgrading from older phantomjs install method

Try a different route to fixing the phantomjs+travis+yarn issue.

Looks like this worked, so merging.  (It was almost definitely a bad idea to have two versions of phantomjs hanging around in any case.)

repo: craftyjs/Crafty


text:
Line.eta is not nice to slow processes.

First, thanks for this awesome library! I'm trying to use Line.eta but I always get a --:-- display. I figured out that in my case the event rate is less than 1. This is a problem because this rate seems to be represented by an integer (see the variable per_second).
More generally I don't really understand why Flow_meter.per_second doesn't return a float, since it basically computes a sample estimate of a rate.

Thanks for the report!
This seems like just an oversight from me. Generally, Flow_meter tries to keep intermediate computation as integers to avoid loss of precision (& unnecessary allocations), but rounding to per_second is clearly a step too far :-) Perhaps we can get away with using e.g. per_microsecond, or just switch to floats and be careful about precision loss.
I'll try to look at this shortly, but time is against me at the moment.

Thanks for your answer! I'm not sure I get your point about precision: it seems a Flow_meter.t keeps an array of all last n values that were recorded, along with the corresponding timestamps. So computing the rate by summing and dividing by the total time interval as a float should be plenty accurate. It is true that rounding errors accumulate when you performs lots of operations that involve numbers several orders of magnitude apart, but it doesn't seem to me that we are in that kind of situation here.
Also no worries if you don't have time to get back to this soon, thanks again for the early feedback!

Hi! I noticed this as well, thanks for the discussion, that was helpful! I tried @pveber 's proposed change in a PR, it seemed to do the trick. As far as I can tell, this does not add new allocation and removes some Integer.t -> float steps.

this does not add new allocation and removes some Integer.t -> float steps.

Actually, float is currently boxed, unlike Integer.t. The change incorporated in #27 may have an impact on performance due to the allocations caused by the use of float. As far as I'm concerned, I'm less fussy on this point. However, I'm going to leave this issue open in order to bear in mind that the first proposal may not be the most optimal for everyone.

#27 is merger now but I will keep this issue open and see if we observe some performance regressions due to the usage of a float.

Thanks everyone for having a look at this!
Le lun. 20 mai 2024 à 10:57, Calascibetta Romain @.***>
a écrit :

#27 https://github.com/craigfe/progress/pull/27 is merger now but I
will keep this issue open and see if we observe some performance
regressions due to the usage of a float.
—
Reply to this email directly, view it on GitHub
https://github.com/craigfe/progress/issues/23#issuecomment-2119995133,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACTKXWNCGVZ4EE3D7VQSM3ZDG3JPAVCNFSM5IM5YES2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJRHE4TSNJRGMZQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

authors: CraigFe dinosaure mbarbin pveber

repo: craigfe/progress


text:
Refactor getMetadata method.

This PR refactors the getMetadata function by making use of the Str helper function which makes it easier to read.

How can I have missed that one 🤣
Fixed!

repo: craigpaul/laravel-postmark


text:
Cannot install

$>cordova plugin add http://github.com/cranberrygame/cordova-plugin-navigationbar
Fetching plugin "http://github.com/cranberrygame/cordova-plugin-navigationbar" via git clone
Repository "http://github.com/cranberrygame/cordova-plugin-navigationbar" checked out to git ref "master".
shell.js: internal error
Error: EXDEV, cross-device link not permitted 'C:\Users\Me\AppData\Local\Temp\git\1434642021042\example'
    at Error (native)
    at Object.fs.renameSync (fs.js:636:18)

Its a bug in Cordova 5.1.1 if your project in not on the same drive as TMP. See https://issues.apache.org/jira/browse/CB-9246 and https://issues.apache.org/jira/browse/CB-9212.

Installing with cordova 5.0.0 works but compiling I get this error:
:compileArmv7DebugJavaJ:\Projects\iaBreeze\app\platforms\android\src\com\cranberrygame\cordova\plugin\navigationbar\NavigationBar.java:116: error: cannot find symbol
                        webView.setOnSystemUiVisibilityChangeListener(new View.OnSystemUiVisibilityChangeListener(){
                               ^
  symbol:   method setOnSystemUiVisibilityChangeListener(<anonymous OnSystemUiVisibilityChangeListener>)
  location: variable webView of type CordovaWebView
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
 FAILED

I'm using ionic and crosswalk.

@Phoscur
Fixed the issue.
Thanks
@MrChris123
Thanks

authors: MrChris123 Phoscur cranberrygame


text:
Primary navigation: Items missing when viewing specific pages

Hi,
This is a known issue, but I'm not sure if you've seen it happen here specifically. Feel free to disregard if you have.
When viewing these pages from Ecosystem Catalog, the primary navigation breaks:
JDBC
PHP DBAL
PHP PDO
Python
SQLAlchemy
.NET Npgsql

Yeah, I can remember this anomaly is coming from an intentional hack. Thank you for raising it. The rule is »As soon as you are in the "drivers" projects, show it like that.« It is clearly confusing, and will need to be improved on the course of all modernizations we are working on. Please keep the ticket open until it has been resolved.

authors: amotl matkuliak

repo: crate/crate-docs-theme


text:
copy to Exporting 15 billion data resulted in server downtime and 128G of memory was exhausted (8 servers)

sql : copy to
server  memory：128G
crate CRATE_HEAP_SIZE : 6g
Export 15 billion data, eat up server memory, resulting in server downtime, what is the reason? Is it caused by query caching? How do I close the cache? elasticsearch cache cleanup API available? Http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html
thanks

@xiaojiazu Can you please add more information like steps to reproduce, logs, all the information we're asking by our issue template? As the query cache is configured to use only 10% of available HEAP by default, I doubt that this is related to query caching at all.

@seut   If it's convenient, you can import a lot of data, such as 10 billion pieces of data, and execute the copy to command to observe the changes in Linux memory. Out-of-heap memory keeps rising and memory leaks are suspected.

@seut We tried to modify the   source code,"FileWriterCountCollector.java", tried a lot of experiments, but did not solve the problem, I hope the official positioning of the problem. Thanks

@xiaojiazu That is interesting but won't help in any way without the information we are asking for. Also debugging with 10 billion records it quite time intensive, so tracking down this issue a bit more using detailed information would help.
On memory issues like this, a heapdump would also be very helpful. Please always report in detail to help us debugging/reproducing.
CrateDB version:
Environment description:

JVM version: java -version
Kernel: uname -a
Distribution: cat /etc/os-release
Number of nodes; Please mention special master/data/client node configuration

If using docker:

Docker: docker --version
Problem can be reproduced without docker:

[ ] yes
[ ] no -> Consider reporting the issue in https://github.com/crate/docker-crate instead

Problem description:
Please be precise about errors. Instead of saying "doesn't work" or "fails",
describe the behavior you're observing and what you'd expect to see.
Include relevant logs and error messages or stacktraces if possible.
If there are memory issues please provide the garbage collection log file if
possible.
Steps to reproduce:
Please include table schema and some sample records and the statements
that lead to the problem.

@seut  Okay, I'll sort out the documents as you require and send them to you later.

authors: seut xiaojiazu

repo: crate/crate


text:
Exception 'numHits must be > 0' raised when subquery request used

CrateDB version: 4.0.8
This error always reproduced on version 4.0.8.
At 4.0.7 this query works fine.
Problem description:
I receive error
ERROR: SQLParseException: numHits must be > 0; please use TotalHitCountCollector if you just need the total hit count
when executing request like
SELECT
    (
        CASE
            WHEN c.id IN(
                SELECT
                    catalog_id
                FROM
                    catalog_favorites
                WHERE
                    user_id = '01-00000000000000019835'
            )THEN
                1
            ELSE
                0
        END
    ) AS favorite
FROM
    catalog c
limit 5;

catalog_favorites table:
CREATE TABLE IF NOT EXISTS "doc"."catalog_favorites" (
   "added" TIMESTAMP WITH TIME ZONE,
   "catalog_id" TEXT,
   "is_active" BOOLEAN,
   "source" TEXT,
   "user_id" TEXT,
   "user_order" INTEGER,
   PRIMARY KEY ("catalog_id", "user_id", "source")
)

I found, that problem appear in WHERE statement of subquery (it will disappear when I change where statement).
Without subquery all works fine.
Without WHERE in subquery all works fine.
TCP dump in attach (rename .txt into .pcap).
dump.pcap.txt
Exception raised from TopFieldCollector.java:393 (create method)
Steps to reproduce:
Sorry, I cant create plain example - error does not reproduced on samples.
I will try to it do again some hours later.

This might be a regression introduced by https://github.com/crate/crate/commit/3c6e602a1d, we'll have a closer look.
Thank you for the bug report.

We've a fix for this which will be released with 4.0.9 (https://github.com/crate/crate/pull/9359)
Thank you again for bringing this up.

authors: mfussenegger shm-dmitry


text:
always return the user that has been provided on connect

This fix always returns the user that has been provided on connect if
host-based authentication is disabled and the user management is
enabled. Since 88f02de132eceb5502ddd6557a2c079a8bebb4e3 null user sessions
are prevented from querying the cluster if the user management is enabled.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@5cb5624). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master    #5988   +/-   ##
=========================================
  Coverage          ?   83.12%
  Complexity        ?    12379
=========================================
  Files             ?     1429
  Lines             ?    46845
  Branches          ?     5761
=========================================
  Hits              ?    38938
  Misses            ?     5230
  Partials          ?     2677

Impacted Files
Coverage Δ
Complexity Δ

...rc/main/java/io/crate/user/UserFallbackModule.java
100% <100%> (ø)
2 <0> (?)

...o/crate/operation/auth/AlwaysOKAuthentication.java
100% <100%> (ø)
2 <1> (?)

...ate/operation/auth/AlwaysOKNullAuthentication.java
100% <100%> (ø)
2 <2> (?)

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 5cb5624...a472f90. Read the comment docs.

@mikethebeer  pls check tests

authors: codecov-io dobe mikethebeer


text:
Support for an option to disable reindex behavior

Currently the image unconditionally runs the indexer during startup https://github.com/crazy-max/docker-dokuwiki/blob/916478cc050d45f5c6759e6b59465b049e0958d3/rootfs/etc/cont-init.d/03-config.sh#L119
Since the whole data directory is mapped this should usually not be needed. It would be great if it were possible to add an option to disable indexing (after all the pages + index should be in sync anyways). What is the rationale behind reindexing? Depending on the fs and wiki size this can be rather slow so I'd like to avoid it.
I see two options:

Drop the code completely
Add an env var to disable it

Personally I'd go for option 1, but maybe I miss an important reason for doing this during startup. I Could write a PR if you tell me which approach you'd prefer.

@apollo13 I have added DOKUWIKI_RUN_INDEXER env var to control the indexer. You can try it with crazymax/dokuwiki:edge.

Thanks, verified that it is working properly.

repo: crazy-max/docker-dokuwiki


text:
Рекомендации похожих для юзера иногда падают

случается периодически 500 ошибка

сначала нужно нормально логи писать, тогда будет легко поправить

возможно нужный лог
2022-04-02 20:48:16.374 | INFO     | http_utils.recs.personal_similar_items_handler:get:23 - similarItems item_id=354 n_recs=6
ERROR:tornado.application:Uncaught exception GET /personalSimilarItems?item_id=354&user_id=876676&n_recs=6 (172.17.0.1)
HTTPServerRequest(protocol='http', host='recom.grouple.co', method='GET', uri='/personalSimilarItems?item_id=354&user_id=876676&n_recs=6', version='HTTP/1.0', remote_ip='172.17.0.1')
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/tornado/web.py", line 1704, in _execute
    result = await result
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/site-packages/webargs/core.py", line 445, in wrapper
    return func(*args, **kwargs)
  File "/app/http_utils/recs/personal_similar_items_handler.py", line 35, in get
    recs = model.similar_items_for_user(iix, uix, n_recs, return_scores=True)
  File "/app/models/implicitALS/model.py", line 117, in similar_items_for_user
    recs = self.model.recommend(item, k)
  File "implicit/recommender_base.pyx", line 175, in implicit.recommender_base.MatrixFactorizationBase.recommend
TypeError: 'int' object is not subscriptable

В ходе работ появление данной ошибки удалось исключить или значительно снизить частоту появления.

authors: Kolyada drayvs purpleraven


text:
Day40: 'Convert Sorted Array to Binary Search Tree' solution

Convert Sorted Array to Binary Search Tree
https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/

Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanced binary search tree.
A height-balanced binary tree is a binary tree in which the depth of the two subtrees of every node never differs by more than one.
Example 1:
Input: nums = [-10,-3,0,5,9]
Output: [0,-3,9,-10,null,5]
Explanation: [0,-10,5,null,-3,null,9] is also accepted:
Example 2:
Input: nums = [1,3]
Output: [3,1]
Explanation: [1,null,3] and [3,1] are both height-balanced BSTs.

repo: crazymanish/dsa


text:
create LVMCluster resource on crc start

after https://github.com/crc-org/snc/issues/867 openshift bundles will have the LVMS operator installed in the cluster, to make use of it we need to create the LVMCluster crd resource provided by the operator to have the necessary storage class, CSI drivers setup to handle dynamic provisioning of the PVCs
to create the LVMCluster resource we also need to provide the disk to be used for creating the lvm volumes, so we need to also create a second disk image for the vm.
apiVersion: lvm.topolvm.io/v1alpha1
kind: LVMCluster
metadata:
  name: my-lvmcluster
spec:
  storage:
    deviceClasses:
    - name: vg1
      fstype: ext4
      default: true
      deviceSelector:
        paths:
        - /dev/disk/by-path/pci-0000:87:00.0-nvme-1
        - /dev/disk/by-path/pci-0000:88:00.0-nvme-1
        forceWipeDevicesAndDestroyAllData: true
      thinPoolConfig:
        name: thin-pool-1
        sizePercent: 90
        overprovisionRatio: 10

Todo

[ ] add creation of second disk image in drivers (vfkit, libvirt and hyper-v drivers)
[ ] add a config option to enable users to choose if they want to use LVMS operator
[ ] create disk and LVMCluster resource during crc start

add a config option to enable users to choose if they want to use LVMS operator

why a config option?

initially, i thought of having a config option to enable/disable the topolvm, and also keep the hostpath-provisioner that we have currently, but it doesn't have any usefulness for users, it was just a thought to be able to test quickly the new topolvm without removing the hostpath-provisioner

this is not needed anymore, installation of the operator is now handled in snc, by https://github.com/crc-org/snc/pull/877

repo: crc-org/crc


text:
ライブラリの更新(2021年1月)・Ruby3.0.0でのテスト追加

ruby-gems を 2021-01-04現在の最新に更新しました。
GHSA-vr8q-g5c7-m54m の修正が rc1 だったので、反映させていません。
nokogiri のバグですが、正式版の修正が来るのを待ったほうが良いでしょうか。
また、ruby 3.0.0 でのテストを追加しました。
db:migrate でエラーが発生するようですが、これに対する修正は別ブランチとして、この PR ではあくまでテストの追加だけにしたいと考えています。

Rails 6.1でも大丈夫そうですね！

Rails 6.1でも大丈夫そうですね！

Nokogiriについては、ちょうど #236 で更新が来ましたので、さっそく解決しました！

Nokogiriについては、ちょうど #236 で更新が来ましたので、さっそく解決しました！

repo: cre-ne-jp/log-archiver


text:
Add "Collections" section to the extension [WIP]

Motivation
Adding a "Collections” section to the extension would make users appreciate the sources available for them to choose from. They can explore what the sources have to offer and therefore would know what sources they should filter down if they want better results for their queries.
Description
The goal is to add a separate section with the display of the different sources and the ability to "search by collection".
Since CC-Vocabulary will be used for this section, the redesigning of major sections and components of the extension is inevitable for this goal. The extension currently uses a very outdated version of Vocabulary and almost everything will be updated with the new version. The adoption of CC-Vocabulary will be gradual and we need not focus on the details as the main goal is very different for this PR. For starters, I will be focusing on the Options page.
Checklist:

[ ] My pull request has a descriptive title (not a vague title like Update index.md).
[ ] My pull request targets the master branch of the repository.
[ ] My commit messages follow best practices.
[ ] I added tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[ ] I tried running the project locally and verified that there are no
visible errors.

Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.

@aldenstpage The core feature has been implemented. Please see the GIF below. I will spend the next couple of days finding and fixing edge cases and implicit bugs that might still be there.

The source links will be encapsulated by cards similar to the ones present in CC Search (https://search.creativecommons.org/collections) as soon as they are supported by CC-Vocabulary.
I have yet to find a suitable icon that would represent the "Sources" section.

Source

Fantastic! As for the source images, we hardcode those on the front end, but over time it has become increasingly apparent that the logos ought to be exposed through the API, probably through the /v1/sources endpoint.

@aldenstpage if it makes sense for the extension, I think it would be fine to have @makkoncept do the work to add the logos to the endpoint as part of this project (if you both feel comfortable with it).

I would love to do it. It will take some time though as I am not familiar with the repository and will probably need help if I run into issues in things like setting up the environment, understanding the file structure, etc. Waiting for confirmation from @aldenstpage.

Great, I've made a ticket for this over here. It doesn't seem to be possible to assign it to you, you might need to comment on the ticket first.
You can feel free to ask me any questions over Slack or we can move our weekly checkin meeting earlier.

Yes, there can be some problems as the initial objectives of the timeline are very packed up. Like this first feature took more than 2 weeks and according to the timeline, it should have been completed in 1.

@aldenstpage a gentle ping... Also, can I merge this? because the next feature builds on a lot of things that are done in this PR.

Hey Mayank, I've reached out to you in a different channel regarding the source endpoint changes. I didn't realize this was ready for review because it still has the WIP tag (although I see it's not a draft anymore, so sorry about that).

My bad. I didn't notice the WIP tag. I will be more careful in the future.

authors: aldenstpage jompol63 kgodey makkoncept


text:
Remove Mailchimp Popup and add Popup maker popup

Mailchimp popup is hardcoded into WP theme, but WP Popup maker is working on Staging now, so it's time to switch it over.
Two things to do:

QA on Popup Maker on Staging for "Email Signup" Popup
Remove Mailchimp theme
Deploy Popup maker

Rob – before you move it over, can you check in with me to make sure that it's ready on staging before launch?
Search will probably keep the Mailchimp plugin because it's not on Wordpress.

@little-wow Heya. Just checking in about the version on staging being good to go.
Also one note: this popup will use a different cookie from the mailchimp popup in the theme, so we will get reports from people who previously subscribed via or dismissed the theme-based popup that a pop-up is showing again. We can't do anything about that, we'll just have to be sympathetic to people reporting it.

The MailChimp code has been removed from the theme and deployed.
The new popup has been copied over to Live and activated.

authors: little-wow robmyers


text:
re: learn more section under "Most common conflicts in terms of service"

saying "creative commons" needs to be removed if they impose other contractual restrictions--surely this is true, but seems to negate them even attempting to integrate CC in the first place. how can we address this better?

@sarahpearson can you address?

@tvol Just above, we say that we strongly discourage the practice and that it undermines the purpose of the licenses. Beyond that, I'm not sure what else to do. If we can't convince people not to do it, the trademark is our only stick.

@tvol Does this resolve your issue? Let me know so I can revise.

authors: janeatcc sarahpearson tvol

repo: creativecommons/mp


text:
Default page template

Fixes

Related to #4 by @zackkrida
Description

Creates the default page template, with an 8-column wide main content area. Also enlarges the page title to match the mockups and fixes the alignment of the header.
Technical details

Font sizes are not yet reduced on mobile—waiting for @panchovm to document the correct sizes.
Tests

Screenshots

Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the default branch of the repository (main or master).
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added tests for the changes I made (if applicable).
[x] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no
visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

One question. It seems the default color for paragraphs is not $color-dark-slate-gray. Am I right? I think I saw the same in a different project. We should fix that since the $color-dark-slate-gray is the accessible color that must be used by default.
I can create a ticket in the repo if it's necessary. Let me know @zackkrida

@panchovm You are right, but I need to check why. I can make a ticket in vocabulary. Thank you for bringing it to my attention!

For reference:

Closing in favor of another PR.

authors: panchovm zackkrida

repo: creativecommons/wp-theme-certificates


text:
create a mongodb-cheatsheet and updated readme

Descriptions

add a new Cheat Sheet called mongodb-cheatsheet.md file

Expected behavior

Enrich the mongodb-cheatsheet.md file.

Screenshots or Links

If applicable, add screenshots or a modified UI link to help explain your contribution.

Additional Context

Please, directly create a pull request and @mention your pull request id here like #150

Please, fill free to contribute to this project. Anyone including newcomers can make a contribution to this repo by adding basic Commands or Keyboard Shortcuts or tags, attributes, and properties and take a part in an open-source project.
Please, give a star to support this project.

@ritwikdalmia, create a pull request with your last modifications.

PR 211 closing this issue

authors: crescentpartha ritwikdalmia


text:
How to deploy in Linux server

Hello sir I'm new in laravel development. I'm created simple project with your laravel-vue-spa template.
This project works wery well in local machine. But server side problem. Please guide me.

Hi, this project already assumes that you are familiar with Laravel and Vue so you deploy it as any other Laravel app.
You should check the Laravel docs and forums for more info about deployment.

authors: TechShankar cretueusebiu

repo: cretueusebiu/laravel-vue-spa


text:
Devise issue with devise_mapping

I think I have everything setup right but now Im running into Devise issues. @crismali I saw you mentioned in other issues that working around Devise was a bit tricky but unfortunately I wasn't able to find anything after hours of looking. Do you have anything that could point me in the right direction?
To get a proof of concept I tried to make a fixture out of the login page (no Devise is what I was thinking) but it looks like Im still getting a Devise related problems.
Here's what Im getting when attempting to go here http://localhost:3000/magic_lamp/lint -
Error: ActionView::Template::Error: undefined method 'name' for nil:NilClass /Users/ryangrush/.rvm/gems/ruby-2.2.5@company/gems/devise-3.5.10/app/controllers/devise_controller.rb:38:in 'resource_name'
registrations_new_lamp.rb
MagicLamp.fixture(controller: Users::SessionsController, name: "something", extend: AuthStub) do
  render template: "devise/sessions/new"
end

auth_stub.rb
module AuthStub
  def current_user
    @current_user ||= User.create!(
      email: "john@example.com",
      encrypted_password: "$2a$10$3OF9YyLG6DudmeIUtIlnX2usIFYhAJ77pep5y93BLuSuu",
      first_name: 'Tom',
      last_name: 'Smith',
      onboarded_status: 'car_verified'
    )
  end
end

and my SessionsController inherits from Devise -
sessions_controller.rb
class Users::SessionsController < Devise::SessionsController
magic_lamp_config.rb
MagicLamp.configure do |config|

  Dir[Rails.root.join("spec", "javascripts", "support", "magic_lamp_helpers/**/*.rb")].each { |f| load f }

  # if you want to require the name parameter for the 'fixture' method
  config.infer_names = false

  config.global_defaults = { extend: AuthStub }

  config.before_each do
    puts "I appear before the block passed to 'fixture' executes!"
  end

  config.after_each do
    puts "I appear after the block passed to 'fixture' executes!"
  end

end

Line 36-40 of the DeviseController in the Devise gem -
  # Proxy to devise map name
  def resource_name
    devise_mapping.name
  end
  alias :scope_name :resource_name

@ryangrush In your AuthStub I'd implement resource_name instead of current_user like so:
module AuthStub
  def resource_name
    "user" # or possibly "users". Something like that ;)
  end
end

At that point AuthStub isn't really stubbing authentication so a name like DeviseInternalsStub might make more sense.
Let me know if that helps :)

@crismali Thanks for the quick response. I changed it to "users" and that got me past the first problem. Now Im seeing this -
Error: ActionView::Template::Error: undefined method `router_name' for nil:NilClass /Users/ryangrush/.rvm/gems/ruby-2.2.5@company/gems/devise-3.5.10/lib/devise/controllers/url_helpers.rb:49:in `block (4 levels) in generate_helpers!'

Any ideas?

@ryangrush I'd have devise generate the view to see what the template actually requires and then modify those things or stub them as needed.

@crismali thanks again for your help. I was able to get it solved so it passes the linter at least -
  def resource_name
    :user
  end

  def resource
    @resource ||= User.new
  end

  def devise_mapping
    @devise_mapping ||= Devise.mappings[:user]
  end

via - http://stackoverflow.com/a/31223305/772309
I'm still having issues in teaspoon when I run MagicLamp.fixtureNames() -
genie.js?body=1?body=1:52 Uncaught ReferenceError: fixtureName is not defined
and MagicLamp.load("something"); -
genie.js?body=1?body=1:33 Uncaught Error: The fixture "something" was not preloaded. Is the fixture registered? Call MagicLamp.fixtureNames() to see what is registered.
but maybe thats an issue for another day ;)

@ryangrush does the name "something" get printed when you call MagicLamp.fixtureNames()?

@crismali no it just gives me the error Uncaught ReferenceError: fixtureName is not defined

@ryangrush How are you loading the fixtures into the page? Are you using MagicLamp.preload() or the Sprockets directive?

I think Im doing it right. Here is my spec/javascripts/spec_helper.js file -
// Teaspoon includes some support files, but you can use anything from your own support path too.

// require support/jasmine-jquery-1.7.0
// require support/jasmine-jquery-2.0.0
// require support/jasmine-jquery-2.1.0
// require support/sinon
// require support/your-support-file
//
// PhantomJS (Teaspoons default driver) doesn't have support for Function.prototype.bind, which has caused confusion.
// Use this polyfill to avoid the confusion.
//= require support/phantomjs-shims
//
// You can require your own javascript files here. By default this will include everything in application, however you
// may get better load performance if you require the specific files that are being used in the spec that tests them.
//= require application
//
// Deferring execution
// If you're using CommonJS, RequireJS or some other asynchronous library you can defer execution. Call
// Teaspoon.execute() after everything has been loaded. Simple example of a timeout:
//
// Teaspoon.defer = true
// setTimeout(Teaspoon.execute, 1000)
//
// Matching files
// By default Teaspoon will look for files that match _spec.{js,js.coffee,coffee}. Add a filename_spec.js file in your
// spec path and it'll be included in the default suite automatically. If you want to customize suites, check out the
// configuration in teaspoon_env.rb
//
// Manifest
// If you'd rather require your spec files manually (to control order for instance) you can disable the suite matcher in
// the configuration and use this file as a manifest.
//
// For more information: http://github.com/jejacks0n/teaspoon

//= require magic_lamp
//= require magic_lamp/all_fixtures

MagicLamp.preload();

@ryangrush you want to use either //= require magic_lamp/all_fixtures or MagicLamp.preload(), not both. (You will need //= require magic_lamp regardless though)

I finally got it to work! Thanks again for your help @crismali.
Also what helped was running rake mlfn and seeing that the fixture was named sessions/something and not just something. Now running MagicLamp.load("sessions/something"); in the javascript console correctly loads the fixture in Teaspoon.
I'm still getting a genie.js?body=1?body=1:52 Uncaught ReferenceError: fixtureName is not defined error when running MagicLamp.fixtureNames() but I can obviously still use it without it. Its a great tool!

@ryangrush Awesome! Glad it all worked out.

authors: crismali ryangrush


text:
First class module types not exported

I have two Reason files:
testservice.re:
[@genType]
type client = {foo: string};
module TestService = {
  let request = (client: client, request: Testtype.testType) =>
    Testtype.convert(request);
};

module type TestServiceSig = {
  let request: (client, Testtype.testType) => Testtype.respType;
};

module type ITestServiceSig = {
  let request: Testtype.testType => Testtype.respType;
};

module type TestServiceClient = {let client: client;};

[@genType]
type testServiceClient = (module TestServiceClient);

[@genType]
type iTestServiceSig = (module ITestServiceSig);

[@genType]
let makeTestService =
    (client: testServiceClient, options: Js.Dict.t(string))
    : iTestServiceSig => {
  module Client = (val (client: (module TestServiceClient)));
  module IService: ITestServiceSig = {
    let request = TestService.request(Client.client);
  };
  (module IService);
};

and testservice2:
[@genType]
let initService =
    (client: Testservice.testServiceClient, options: Js.Dict.t(string))
    : Testservice.iTestServiceSig =>
  Testservice.makeTestService(client, options);

which generates to testservice.gen.js:
/**
 * @flow strict
 * @generated
 * @nolint
 */
/* eslint-disable */

// $FlowExpectedError: Reason checked type sufficiently
import * as testserviceBS from './testservice.bs';

// flowlint-next-line nonstrict-import:off
import type {Dict_t as Js_Dict_t} from './Js.gen';

// flowlint-next-line nonstrict-import:off
import type {respType as Testtype_respType} from './Testtype.gen';

// flowlint-next-line nonstrict-import:off
import type {testType as Testtype_testType} from './Testtype.gen';

export type client = {| +foo: string |};

export type testServiceClient = {| +client: client |};

export type iTestServiceSig = {| +request: (Testtype_testType) => Testtype_respType |};

export const makeTestService: (testServiceClient, Js_Dict_t<string>) => iTestServiceSig = function _(Arg1, Arg2) {
  const result = testserviceBS.makeTestService([[Arg1.client.foo]], Arg2);
  return {request:function _(Arg11) {
      const result1 = result[0]([Arg11.foo, Arg11.bar]);
      return {foo:result1[0], bar:result1[1]}
    }}
};

and testservice2.gen.js:
/**
 * @flow strict
 * @generated
 * @nolint
 */
/* eslint-disable */

// $FlowExpectedError: Reason checked type sufficiently
import * as testservice2BS from './testservice2.bs';

// flowlint-next-line nonstrict-import:off
import type { Dict_t as Js_Dict_t } from './Js.gen';

// flowlint-next-line nonstrict-import:off
import type { iTestServiceSig as Testservice_iTestServiceSig } from './Testservice.gen';

// flowlint-next-line nonstrict-import:off
import type { testServiceClient as Testservice_testServiceClient } from './Testservice.gen';

export const initService: (
  Testservice_testServiceClient,
  Js_Dict_t<string>,
) => Testservice_iTestServiceSig = testservice2BS.initService;

As you see signatures of initService and makeTestService are different and I can't use initService on js side using object as client parametr.
I think in such case we should call initService not from testservice.bs but from testservice.gen

@meafmira can you expand a bit on what is the issue you have encountered?
It looks like the signatures of initService and makeTestService are the same after considering the imported types.
For example, this type checks for me:
import * as TestService from "../TestService.gen";
import * as TestService2 from "../TestService2.gen";
import type { Dict_t as Js_Dict_t } from "../../src/shims/Js.shim";

let foo = (x: TestService.testServiceClient, y: Js_Dict_t<string>) =>
  (TestService2.initService(x, y): TestService.iTestServiceSig);

let bar = (x: TestService.testServiceClient, y: Js_Dict_t<string>) =>
  (TestService.makeTestService(x, y): TestService.iTestServiceSig);

@cristianoc sorry for misunderstanding. You’re right - signatures are identical but there different bodies for these two functions. makeTestService has conversion from js object to oxana module (array) but initService has not

@meafmira thanks, indeed the conversion is missing.
Looks like module type declarations are not picked up from other files at the moment, which needs fixing.

authors: cristianoc meafmira

repo: cristianoc/genType


text:
Export Props type when exporting a function component.

Only the component called make/default exports Props.
A component called foo exports foo_Props, or InnerrModule_foo_Props.
So when multiple components are exported, one does not define type Props multiple times.
Fixes https://github.com/cristianoc/genType/issues/235

Cc @rickyvetter you ok with the names here? Any inconsistency from what you’d like to see on the RR side?

authors: chenglou cristianoc


text:
If logged in, the home still show to login

This looks like a rails issue again

Everything looks good on my side

Just re-tested. I am logged in in the dashboard, then I go back to the home. and here's a screenshot

repo: cronrobot/cronrobot


text:
Rename feature

Jshint & test fix
Add the ability to rename a container

Hoping to test & merge this week, thanks for contributing.

LGTM

authors: houssemba kevana

repo: crosbymichael/dockerui


text:
probe for root dir instead of guessing

Alternative to #1569
try this by doing cargo install cross --git https://github.com/cross-rs/cross --branch fix-mountinfov2

Following up to https://github.com/cross-rs/cross/pull/1569#issuecomment-2492612588 here.
Unfortunately, this still didn't work in codespace (although it did work in local dev container). Same error:
# cross build --target armv7-unknown-linux-musleabihf --verbose
+ cargo metadata --format-version 1 --filter-platform armv7-unknown-linux-musleabihf
+ rustc --print sysroot
+ /usr/bin/docker
+ /usr/bin/docker version -f '{{ .Server.Os }},,,{{ .Server.Arch }}'
+ /usr/bin/docker info -f {{.SecurityOptions}}
+ rustup toolchain list
+ rustup target list --toolchain nightly-x86_64-unknown-linux-gnu
+ rustup component list --toolchain nightly-x86_64-unknown-linux-gnu
+ /usr/bin/docker inspect codespaces-439fb6
docker inspect found no containers matching HOSTNAME, retrying using mountinfo
attempting to use /proc/self/mountinfo to find container id
+ /usr/bin/docker info --format {{.DockerRootDir}}
Error:
   0: couldn't find container id in mountinfo

Location:
   src/docker/shared.rs:1374

The issue seems to be that while I have Docker Root Dir: /var/lib/docker, /proc/self/mountinfo does not contain this path.
Here are the various dumps:
# docker info
Client: Docker Engine - Community
 Version:    27.3.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.17.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.30.3
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 1
 Server Version: 24.0.9-2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 88c3d9bc5b5a193f40b7c14fa996d23532d6f956
 runc version: bc20cb4497af9af01bea4a8044f1678ffca2745c
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.5.0-1025-azure
 Operating System: Ubuntu 22.04.5 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 7.744GiB
 Name: b731330a-a31e-4579-8437-1e182c507c34
 ID: cbda55b0-d789-4adb-85cb-d10b6f817007
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Username: codespacesdev
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

# cat /proc/self/mountinfo
728 675 0:46 / / rw,relatime - overlay overlay rw,lowerdir=/var/lib/docker/overlay2/l/AFUJF3HYLZHJNK4OV54KXVGQW5:/var/lib/docker/overlay2/l/VUADTRZ3AA2ZTUDPFPQR4VYIRO:/var/lib/docker/overlay2/l/NFUHFEEP6UMKMCUBBRU3PYHPC3:/var/lib/docker/overlay2/l/XTY65DJVA4OWXGL4BBLCVHSX2Y:/var/lib/docker/overlay2/l/2EOALKEXVVC24KITOSBRQM5XGX:/var/lib/docker/overlay2/l/Y65OLF4OU75IPRZOT7FI2IZ4FV:/var/lib/docker/overlay2/l/ZFC6D7YFU7DBP6G3DAJ5UTCZ5V:/var/lib/docker/overlay2/l/3LN3UNRIPRD6IALTY6QLIBD4ZA:/var/lib/docker/overlay2/l/HUAAIEDL7BZ6XTDTORY6EKG4BK:/var/lib/docker/overlay2/l/CPHP5XOT3NJ2XQBEXNGQTRNHZH:/var/lib/docker/overlay2/l/X4ZEFS2BJ5CP6KIGDQPMIP4TWT:/var/lib/docker/overlay2/l/L5FJKGBWBJYQF2DQKJCMUI5JRN,upperdir=/var/lib/docker/overlay2/b14e9c8d053c2c08fa4093e8208916f51f1e4626f49ea277fc91534b2617b2ff/diff,workdir=/var/lib/docker/overlay2/b14e9c8d053c2c08fa4093e8208916f51f1e4626f49ea277fc91534b2617b2ff/work,nouserxattr
729 728 0:49 / /proc rw,nosuid,nodev,noexec,relatime - proc proc rw
730 728 0:50 / /dev rw,nosuid - tmpfs tmpfs rw,size=65536k,mode=755,inode64
731 730 0:51 / /dev/pts rw,nosuid,noexec,relatime - devpts devpts rw,gid=5,mode=620,ptmxmode=666
732 728 0:23 / /sys ro,nosuid,nodev,noexec,relatime - sysfs sysfs rw
733 732 0:28 / /sys/fs/cgroup ro,nosuid,nodev,noexec,relatime - cgroup2 cgroup rw
734 730 0:48 / /dev/mqueue rw,nosuid,nodev,noexec,relatime - mqueue mqueue rw
735 730 0:52 / /dev/shm rw,nosuid,nodev,noexec,relatime - tmpfs shm rw,size=65536k,inode64
736 728 8:1 /containerTmp /tmp rw,relatime - ext4 /dev/sda1 rw
737 728 8:33 /.codespaces/agent/mount/cache /vscode rw,relatime - ext4 /dev/root rw,discard,errors=remount-ro
738 728 7:4 /codespacemount/workspace /workspaces rw,nodev,relatime master:279 - ext4 /dev/loop4 rw
739 728 8:33 /.codespaces/agent/mount /.codespaces/bin rw,relatime - ext4 /dev/root rw,discard,errors=remount-ro
740 728 7:4 /containers/d0ca26db78fc5bd0f6bc1ce668c42e9f0759a3262eda6efcb2b4bc0cdc4ed7ad/resolv.conf /etc/resolv.conf rw,nodev,relatime - ext4 /dev/loop4 rw
741 728 7:4 /containers/d0ca26db78fc5bd0f6bc1ce668c42e9f0759a3262eda6efcb2b4bc0cdc4ed7ad/hostname /etc/hostname rw,nodev,relatime - ext4 /dev/loop4 rw
742 728 7:4 /containers/d0ca26db78fc5bd0f6bc1ce668c42e9f0759a3262eda6efcb2b4bc0cdc4ed7ad/hosts /etc/hosts rw,nodev,relatime - ext4 /dev/loop4 rw
743 728 0:26 /docker.sock /run/docker-host.sock rw,nosuid,nodev - tmpfs tmpfs rw,size=1623976k,nr_inodes=819200,mode=755,inode64
744 738 8:33 /root/.codespaces/shared /workspaces/.codespaces/shared rw,relatime - ext4 /dev/root rw,discard,errors=remount-ro
745 738 7:4 /codespacemount/.persistedshare /workspaces/.codespaces/.persistedshare rw,nodev,relatime master:279 - ext4 /dev/loop4 rw
676 729 0:49 /bus /proc/bus ro,nosuid,nodev,noexec,relatime - proc proc rw
677 729 0:49 /fs /proc/fs ro,nosuid,nodev,noexec,relatime - proc proc rw
678 729 0:49 /irq /proc/irq ro,nosuid,nodev,noexec,relatime - proc proc rw
679 729 0:49 /sys /proc/sys ro,nosuid,nodev,noexec,relatime - proc proc rw
680 729 0:49 /sysrq-trigger /proc/sysrq-trigger ro,nosuid,nodev,noexec,relatime - proc proc rw
681 729 0:53 / /proc/acpi ro,relatime - tmpfs tmpfs ro,inode64
682 729 0:50 /null /proc/kcore rw,nosuid - tmpfs tmpfs rw,size=65536k,mode=755,inode64
683 729 0:50 /null /proc/keys rw,nosuid - tmpfs tmpfs rw,size=65536k,mode=755,inode64
684 729 0:50 /null /proc/timer_list rw,nosuid - tmpfs tmpfs rw,size=65536k,mode=755,inode64
685 729 0:54 / /proc/scsi ro,relatime - tmpfs tmpfs ro,inode64
686 732 0:55 / /sys/firmware ro,relatime - tmpfs tmpfs ro,inode64

Filtering by actual container ID:
# cat /proc/self/mountinfo | grep d0ca26db78fc
740 728 7:4 /containers/d0ca26db78fc5bd0f6bc1ce668c42e9f0759a3262eda6efcb2b4bc0cdc4ed7ad/resolv.conf /etc/resolv.conf rw,nodev,relatime - ext4 /dev/loop4 rw
741 728 7:4 /containers/d0ca26db78fc5bd0f6bc1ce668c42e9f0759a3262eda6efcb2b4bc0cdc4ed7ad/hostname /etc/hostname rw,nodev,relatime - ext4 /dev/loop4 rw
742 728 7:4 /containers/d0ca26db78fc5bd0f6bc1ce668c42e9f0759a3262eda6efcb2b4bc0cdc4ed7ad/hosts /etc/hosts rw,nodev,relatime - ext4 /dev/loop4 rw

Not a priority issue for me, since I simply set $HOSTNAME to the container ID derived from this file (by matching against /containers/). Not ideal but it works.
PS: I forgot to mention Docker is enabled by the "ghcr.io/devcontainers/features/docker-outside-of-docker:1" feature in dev container.

authors: Emilgardis arakholia

repo: cross-rs/cross


text:
support for @inlineCallbacks

Would it be possible to support inlineCallbacks?
I would like to do something similar to the code below:
from __future__ import print_function
import txaio
from asyncio.futures import Future
from asyncio.coroutines import coroutine
import asyncio
txaio.use_asyncio()
from twisted.internet.defer import Deferred
from twisted.internet.defer import inlineCallbacks
from twisted.internet import reactor

@inlineCallbacks
def test1():
    dfd = Deferred()
    reactor.callLater(1, dfd.callback, 'Test1 OK')
    print('Test1 started')
    res = yield dfd
    print(res)

@inlineCallbacks
def test2():
    fut = Future()
    reactor.callLater(1, fut.set_result, 'Test1 OK')
    print('Test2 started')
    res = yield fut
    print(res)

@coroutine
def test3():
    fut = Future()
    reactor.callLater(1, fut.set_result, 'Test1 OK')
    print('Test3 started')
    res = yield fut
    print(res)

test1()
test2()
test3()

asyncio.get_event_loop().run_forever()

results when I used the asyncio eventloop
Test1 started
Test2 started
<Future pending>

results when using reactor.run()
Test1 started
Test2 started
<Future pending>
Test1 OK

I'm sorry an I doing things you're not supposed to do in this library? I was under the impression I could intermix asyncio with python code.

No, you cannot mix both in a single program, as each has its own event loop. You can write a program that then can run unmodified under either asyncio or Twisted - but not at the same time.

Conceivable, it might be possible to add txaio support for some sort of decorator-wrapper over @inlineCallbacks/@coroutine but of course only one at a time. That is, instead of @inlineCallbacks or @coroutine you'd decorate with txaio.coroutine or similar.
However, we haven't needed this in Autobahn...
Also, I'm not sure how you'd get around the yield from difference: any "txaio" decorator would have to work in Python2.7 with Twisted, so there'd need to be some way to always write code with a plain yield but have it work properly with asyncio in Python3.x -- and I'm not sure if that's possible, so that'd be the place to start ;)
If you really want to try mixing twisted/asyncio I think https://github.com/itamarst/txtulip is the place to start.

@meejah You can't get over the yield syntax differences between Python 2 and Python 3, which is the very reason we don't use it at all in Autobahn, but plain Deferreds/Futures. Because of this, there is little value IMO in papering over @inlineCallbacks/@coroutine with a txaio.coroutine.

The new async/await in Python 3.5 is also completely new, breaking syntax. A program written using that syntax cannot run < 3.5. At least everything I just said is to the best of my knowledge, and I did dig into this quite a bit .. but who knows.

@oberstet yeah, I agree that it's Way Safer to just stick w/ callback-style things.
I was just thinking that there might be some way for txaio to make plain yield in Python3 behave like yield from as far as Futures are concerned -- but, I haven't explored that at all and it very well could be impossible. And then, yes, there's also the async syntax that obviously also can't be magically made to appear in Python2 ;)
The bottom line is really: txaio exists to make it possible to support py2/py3 and Twisted/asyncio/trollius from one codebase -- but imposes certain limitations (i.e. must do callback-style using Futures/Deferreds).
@obeleh are there documentation improvements we could make such that the above is more obvious...?

It was this part that helped me make to wrong conclusions:
txaio is a helper library for writing code that runs unmodified on both Twisted and asyncio / Trollius.

This is like six, but for wrapping over differences between Twisted and asyncio so one can write code that runs unmodified on both (aka source code compatibility). In other words: your users can choose if they want asyncio or Twisted as a dependency.

unmodified code: gives the idea I don't have to change my code to be compatible. This lead me to expect that I can pip install, add some plugin/bridge code and run.
this is like six: gives me the idea I can choose in which reactor I run

authors: meejah obeleh oberstet

repo: crossbario/txaio


text:
Restore RDS Instance from a backup

What problem are you facing?
Every night, a new snapshot with the latest test data is generated and stored in S3. I'd like to be able to use that data when creating an RDS instance with Crossplane.
AWS supports this natively: https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_RestoreDBInstanceFromS3.html

Do you have any thoughts on how this might be modelled @rberrelleza? It seems like a fairly imperative API operation. One option would be to mirror Terraform's approach and essentially make it a subobject of our spec, maybe spec.forProvider.createFromBackup or similar?

That's what I was thinking @negz .  The AWS command receives the location of the backup as a parameter. I think the same could be done here on a sub-object, to keep it clean, as you suggest:
spec:
  forProvider:
    fromBackup:
     s3:
       bucket: mybucket
       prefix: prefix
      role: ....

Rhe 'recover from s3' functionality is aws-only, but cloudsql also has a similar mechanism to create a DB from a backup.  Not sure how much this would factor into the design, but long term it would be great to be able to support this across different cloud providers.

Curious if this has been looked at recently?  Being able to create an instance from a snapshot and point in time snapshot would be a great feature.

Another feature that is being implicitly enabled by this is to allow developers to spin up a new database from a previous snapshot and then test new functionality on that database, then throw it away afterwards.

Without this feature, if the database were to become corrupted, the recovery process would be:
AWS CLI, Console, Terraform, Ansible, etc. (not Crossplane):

Restore (point in time) a DB snapshot to a new instance.
pg_dump the database(s) from the new instance.
drop all databases in the original Crossplane instance.
pg_restore the database(s) to the original Crossplane instance.

This enhancement would be very helpful and provide peace of mind --skipping the intermediary instance creation.
I personally would like to see snapshots (all engines supported) as a source over S3. S3 restore is MySQL only.

I think I've got a basic version of this (restore a MySQL backup from an S3 bucket) working...it's not going to cover all of the use cases discussed here but it could be a good start. Will open a PR soon.

If anyone here wants to test my changes on a live cluster, feel free to install the danports/provider-aws:rds-restore provider. Unfortunately, this doesn't work well if you already have the official provider installed with managed resources created, since Crossplane will complain that those resources already have a controller. (Is there an easy way to change the controller for all managed resources in one shot?)

authors: danports jbhennin juv matthewhembree negz rberrelleza

repo: crossplane/provider-aws


text:
GCP infra stack: single-region secure connectivity for GKE & CloudSQL, CloudMemorystore, Buckets

Why? What problem are we solving?
A Stack is a set of CRDs and controllers that extend Crossplane. An infrastructure stack adds support for infrastructure (e.g. databases, VMs, etc), as opposed to adding support for an application (e.g. Wordpress, GitLab).
We'd like to take our first steps in this direction by breaking Crossplane's current Google Cloud Platform (GCP) managed resource functionality out into a GCP stack (covered by #612). Once the stack is broken out, we want to ensure it:

Could be used by an application stack (such as a Wordpress stack) to deploy to GCP, including allowing cluster administrators to configure default resource classes that ensure network connectivity per #606.
Establishes a solid foundation for the community to build new GCP related controllers.

What does it look like when we're done?

The GCP stack contains v1alpha2 variants of all existing v1alpha1 GCP managed resources.
The GCP stack contains v1alpha2 variants of all existing v1alpha1 GCP managed resource classes. This is predicated on the work tracked in #613.
The GCP stack is based on the latest Crossplane best practices:

The stack is built on kubebuilder 0.2.0 (possibly a beta thereof), including controller-tools, and the controller-runtime.
All managed resources are implemented using the nascent (#603) generic managed resource reconciler.
All resource claims are implemented using the generic resource claim reconciler.

The GCP stack contains MVP resource connectivity between GKECluster and CloudSQLInstance managed resources as described in #606. This implies

Adding CRDs and controllers for the Network and Subnetwork managed resources under the vpc.gcp.crossplane.io/v1alpha1 API group.
Ensuring 'high fidelity' (as described in #606) connectivity related managed resource spec fields.

An application owner can leverage the GCP infrastructure stack when deploying an app stack. e.g. A KubernetesApplication can be scheduled and deployed to a GCP backed KubernetesCluster, and leverage GCP backed resource claims.

How could we demonstrate this functionality?

Begin with 'core' Crossplane, i.e. just the extension manager without any GCP support.
Install the GCP infrastructure stack.
Create Network and Subnetwork managed resources.
Create a CloudSQLInstanceClass that will use the aforementioned Network as the whitelisted private network.
Create a GKEClusterClass that will create nodes in the aforementioned Network and Subnetwork.
Create MySQLInstance and KubernetesCluster resource claims referencing the aforementioned resource classes.
Deploy wordpress to the aforementioned KubernetesCluster. Ensure it can access the aforementioned MySQLInstance.

Related

Author security/connectivity design doc with GCP specifics
Define new networking types and controllers
Move all GCP stack controllers to use general managed reconciler

Depends on #269 Converge on a consistent controller design

Validate e2e wordpress stack deployed securely & accessible
README.md and examples for getting started with GCP infra stack
Update API status table for infra stack capabilities, API version level, etc.

I think we can create the sub-issues as individual tasks in the following form:

Version bump of GCP CRDs -> v1alpha2
Generic managed reconciler for all existing GCP resources (for v1alpha2)
Network CRD and controller with high fidelity
Subnetwork CRD and controller with high fidelity
Wordpress app stack YAMLs that use v1alpha2 managed resources and network CRDs
Connected Wordpress demo e2e
Update examples and README files containing Wordpress GCP examples.

It might be worth including the creation of strongly typed resource classes for each managed kind in this process, as it will also require a minor update to each claim controller.

@hasheddan just added, thanks! I'll move the bulletpoints up into the first issue description once we finalize and I create the issues.

authors: hasheddan muvaf negz

repo: crossplaneio/crossplane


text:
Fix screen orientation with full screen

Add start button for switch full screen to lock screen orientation
Add exit button for stop app

Do you know if there's anyone who can/should review this? @zqzhang?

I will review this soon, thanks.

LGTM

authors: haoxli rakuco zqzhang

repo: crosswalk-project/crosswalk-samples