OverflowError: Python int too large to convert to C long

Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
sqlalchemy 1.4.29
one statement is : where(paymentTime <= result) ,the result is<PHONE_NUMBER>000.
when I change the statement to where(paymentTime <= result/1000),there is no exception.
thanks.
Traceback (most recent call last):
File "G:\ProgramData\Anaconda3\lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 375, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "G:\ProgramData\Anaconda3\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 75, in call
return await self.app(scope, receive, send)
File "G:\ProgramData\Anaconda3\lib\site-packages\fastapi\applications.py", line 211, in call
await super().call(scope, receive, send)
File "G:\ProgramData\Anaconda3\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "G:\ProgramData\Anaconda3\lib\site-packages\starlette\middleware\errors.py", line 181, in call
raise exc
File "G:\ProgramData\Anaconda3\lib\site-packages\starlette\middleware\errors.py", line 159, in call
await self.app(scope, receive, _send)
File "G:\ProgramData\Anaconda3\lib\site-packages\starlette\exceptions.py", line 82, in call
raise exc
File "G:\ProgramData\Anaconda3\lib\site-packages\starlette\exceptions.py", line 71, in call
await self.app(scope, receive, sender)
File "G:\ProgramData\Anaconda3\lib\site-packages\starlette\routing.py", line 656, in call
await route.handle(scope, receive, send)
File "G:\ProgramData\Anaconda3\lib\site-packages\starlette\routing.py", line 259, in handle
await self.app(scope, receive, send)
File "G:\ProgramData\Anaconda3\lib\site-packages\starlette\routing.py", line 61, in app
response = await func(request)
File "G:\ProgramData\Anaconda3\lib\site-packages\fastapi\routing.py", line 226, in app
raw_response = await run_endpoint_function(
File "G:\ProgramData\Anaconda3\lib\site-packages\fastapi\routing.py", line 159, in run_endpoint_function
return await dependant.call(**values)
File "H:\gitlabproject\pyfreepro\ormtest.\sql_app\main.py", line 44, in getmax1
db_user = await crud.getmax1(db, id=payTradeId)
File "H:\gitlabproject\pyfreepro\ormtest.\sql_app\crud.py", line 88, in getmax1
newresult = await db.execute(newstmt)
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\ext\asyncio\session.py", line 211, in execute
return await greenlet_spawn(
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\util_concurrency_py3k.py", line 134, in greenlet_spawn
result = context.throw(*sys.exc_info())
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\orm\session.py", line 1692, in execute
result = conn._execute_20(statement, params or {}, execution_options)
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\engine\base.py", line 1614, in _execute_20
return meth(self, args_10style, kwargs_10style, execution_options)
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\sql\elements.py", line 325, in _execute_on_connection
return connection._execute_clauseelement(
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\engine\base.py", line 1481, in _execute_clauseelement
ret = self._execute_context(
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\engine\base.py", line 1845, in _execute_context
self.handle_dbapi_exception(
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\engine\base.py", line 2030, in handle_dbapi_exception
util.raise(exc_info[1], with_traceback=exc_info[2])
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\util\compat.py", line 207, in raise
raise exception
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\engine\base.py", line 1802, in execute_context
self.dialect.do_execute(
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\engine\default.py", line 732, in do_execute
cursor.execute(statement, parameters)
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\dialects\mysql\asyncmy.py", line 92, in execute
return self.await(self._execute_async(operation, parameters))
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\util_concurrency_py3k.py", line 76, in await_only
return current.driver.switch(awaitable)
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\util_concurrency_py3k.py", line 129, in greenlet_spawn
value = await result
File "G:\ProgramData\Anaconda3\lib\site-packages\sqlalchemy\dialects\mysql\asyncmy.py", line 104, in _execute_async
result = await self._cursor.execute(operation, parameters)
File "asyncmy\cursors.pyx", line 178, in execute
File "asyncmy\cursors.pyx", line 156, in asyncmy.cursors.Cursor.mogrify
File "asyncmy\cursors.pyx", line 129, in genexpr
File "asyncmy\cursors.pyx", line 129, in genexpr
File "asyncmy\connection.pyx", line 426, in asyncmy.connection.Connection.literal
File "asyncmy\connection.pyx", line 419, in asyncmy.connection.Connection.escape
File "asyncmy\converters.pyx", line 10, in asyncmy.converters.escape_item
File "asyncmy\converters.pyx", line 25, in asyncmy.converters.escape_item
File "asyncmy\converters.pyx", line 48, in asyncmy.converters.escape_int
OverflowError: Python int too large to convert to C long

As far as I can see,  this is caused by the number which is bigger than long long's range in C, remove the long long in cpdef should work cause that tells cython to use python's PyLongObject instead of long long

By changing this function
cpdef escape_int(long long value, mapping=None):
    return str(value)

to
cpdef escape_int(object value, mapping=None):
    return str(value)

It might works, however, this may lead to a performance degradation due to the prise that interact with PyObject.

What about use 64 bit Python?

I have the same problem.
It occurs on windows(64bit) when parsing bigint. It's ok in Linux

I have the same problem. It occurs on windows(64bit) when parsing bigint. It's ok in Linux

i use python 3.9 amd64

I have the same problem.
Unfortunately, this puts an end to using asyncmy for discord bot.
Windows 10 64 bit
Python 3.10 amd64
Here is the traceback/logs:
INFO sqlalchemy.engine.Engine BEGIN (implicit)
INFO sqlalchemy.engine.Engine INSERT INTO queue_data (message_id, task_id, `index`) VALUES (%s, %s, %s)
INFO sqlalchemy.engine.Engine<PHONE_NUMBER>114863759, 7, 0)
    result = await self._cursor.execute(operation, parameters)
OverflowError: Python int too large to convert to C unsigned long
Traceback (most recent call last):
  File "venv\lib\site-packages\sqlalchemy\dialects\mysql\asyncmy.py", line 104, in _execute_async
INFO:sqlalchemy.engine.Engine:COMMIT

@long2ice, asyncmy 0.2.7 and legacy SQLAlchemy 1.4.47

0.2.8rc1 also raises an exception.
With new SQLAlchemy 2.0.12 the error is the same.
Here is a simple code:
import asyncio

from sqlalchemy.ext.asyncio import create_async_engine, async_sessionmaker
from sqlalchemy.orm import declarative_base
from sqlalchemy import Column, Integer, BigInteger

Base = declarative_base()

class BaseModel(Base):
    __abstract__ = True

class QueueData(BaseModel):
    __tablename__ = "queue_data"

    message_id = Column(BigInteger, nullable=False, primary_key=True, unique=True)
    task_id = Column(Integer, nullable=False)
    index = Column(Integer, nullable=False)

async def main():
    engine = create_async_engine("mysql+asyncmy://user:pass@localhost:3307/bot", echo=True)
    await engine.connect()
    made_session = async_sessionmaker(engine)

    async with engine.begin() as connection:
        await connection.run_sync(lambda engine: Base.metadata.create_all(engine, checkfirst=True))
    async with made_session() as session:
        session.add(QueueData(message_id=int(5e+18), task_id=7, index=0))
        await session.commit()

if __name__ == '__main__':
    asyncio.run(main())

And here is its output:
2023-05-08 04:33:04,766 INFO sqlalchemy.engine.Engine SELECT DATABASE()
2023-05-08 04:33:04,766 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-05-08 04:33:04,768 INFO sqlalchemy.engine.Engine SELECT @@sql_mode
2023-05-08 04:33:04,768 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-05-08 04:33:04,769 INFO sqlalchemy.engine.Engine SELECT @@lower_case_table_names
2023-05-08 04:33:04,769 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-05-08 04:33:04,775 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-05-08 04:33:04,775 INFO sqlalchemy.engine.Engine DESCRIBE `bot`.`queue_data`
2023-05-08 04:33:04,775 INFO sqlalchemy.engine.Engine [raw sql] ()
  await engine.connect()
OverflowError: Python int too large to convert to C unsigned long
Exception ignored in: 'asyncmy.protocol.MysqlPacket.read_uint64'
Traceback (most recent call last):
  File "...\site-packages\sqlalchemy\dialects\mysql\asyncmy.py", line 107, in _execute_async
    result = await self._cursor.execute(operation, parameters)
OverflowError: Python int too large to convert to C unsigned long
2023-05-08 04:33:04,777 INFO sqlalchemy.engine.Engine COMMIT
2023-05-08 04:33:04,780 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-05-08 04:33:04,781 INFO sqlalchemy.engine.Engine INSERT INTO queue_data (message_id, task_id, `index`) VALUES (%s, %s, %s)
2023-05-08 04:33:04,781 INFO sqlalchemy.engine.Engine [generated in 0.00017s]<PHONE_NUMBER>000000000, 7, 0)
2023-05-08 04:33:04,783 INFO sqlalchemy.engine.Engine COMMIT

> python -c 'from asyncmy.version import __VERSION__;print(__VERSION__)'
0.2.8-rc1

I already said the version in the last comment.

0.2.8rc1 also raises an exception.
With new SQLAlchemy 2.0.12 the error is the same.

Can you replicate this exception by running on Windows/Linux?
Something just tells me that the problem lies in primitive data types. That's why we have an overflow error.

Hi @long2ice, I experience the same problem with unsigned big ints (values over 2^63 - 1)
MRE
import asyncio
import asyncmy

async def create_table(cursor):
    query = """
    CREATE TABLE IF NOT EXISTS foo (
        bar BIGINT UNSIGNED PRIMARY KEY
    )
    """
    await cursor.execute(query)

async def insert_overflow(cursor):
    query = """
    INSERT INTO foo (bar) VALUES (%s)
    """
    params = (2**64 - 1,)
    await cursor.execute(query, params)

async def main():
    conn = await asyncmy.connect(
        host="db", port=3306, user="mysql1", password="mysql1", database="mysql1"
    )
    async with conn.cursor() as cursor:
        await create_table(cursor)
        await insert_overflow(cursor)

if __name__ == "__main__":
    asyncio.run(main())

It yields the same error as in the initial post in this thread
  File "asyncmy/cursors.pyx", line 177, in execute
  File "asyncmy/cursors.pyx", line 155, in asyncmy.cursors.Cursor.mogrify
  File "asyncmy/cursors.pyx", line 128, in genexpr
  File "asyncmy/cursors.pyx", line 128, in genexpr
  File "asyncmy/connection.pyx", line 421, in asyncmy.connection.Connection.literal
  File "asyncmy/connection.pyx", line 414, in asyncmy.connection.Connection.escape
  File "asyncmy/converters.pyx", line 11, in asyncmy.converters.escape_item
  File "asyncmy/converters.pyx", line 26, in asyncmy.converters.escape_item
  File "asyncmy/converters.pyx", line 49, in asyncmy.converters.escape_int
OverflowError: Python int too large to convert to C long

Solution
I think it can be solved in at least 2 ways

Removing C typing in the escape_int function

cpdef str escape_int(long long value, mapping: dict = None):
    return str(value)

would become
cpdef str escape_int(value, mapping: dict = None):
    return str(value)

This may lead to a performance degradation as mentioned by @synodriver.

Introducing new C typed escape function for unsigned big ints

cpdef str escape_bigint_unsigned(unsigned long long value, mapping: dict = None):
    return str(value)

which would be applied for the problematic values in escape_item
cpdef escape_item(val, str charset, mapping: dict = None):
    if mapping is None:
        mapping = encoders
    encoder = mapping.get(type(val))

    # Fallback to default when no encoder found
    if not encoder:
        try:
            encoder = mapping[str]
        except KeyError:
            raise TypeError("no default type converter defined")

    if encoder in (escape_dict, escape_sequence):
        val = encoder(val, charset, mapping)
    else:
        val = encoder(val, mapping)
    return val

would become
MAX_SIGNED_INT = 2**63 - 1

cpdef escape_item(val, str charset, mapping: dict = None):
    if mapping is None:
        mapping = encoders
    type_ = type(val)
    if type_ is int and val > MAX_SIGNED_INT:
        encoder = escape_bigint_unsigned
    else:
        encoder = mapping.get(type_)

    # Fallback to default when no encoder found
    if not encoder:
        try:
            encoder = mapping[str]
        except KeyError:
            raise TypeError("no default type converter defined")

    if encoder in (escape_dict, escape_sequence):
        val = encoder(val, charset, mapping)
    else:
        val = encoder(val, mapping)
    return val

Here the performance could be impacted by additional comparisons.
Evaluation
I ran your benchmarks against current asyncmy dev branch and both modifications with COUNT=100000 including new column for random integers up to 2^63 - 1.

current
no typing
new escape

insert
13.98002
14.37959
13.95373

select
0.83498
0.86191
0.84803

update
13.13448
12.84223
12.93422

delete
13.28940
13.04953
12.59234

I don't think differences on this benchmark are significant.

Hope this can help

I have the same problem. It occurs on windows(64bit) when parsing bigint. It's ok in Linux

I encountered the same issue on Windows (64-bit) when parsing bigint, but it works fine on macOS. As a temporary workaround, I used aiomysql on Windows to avoid the issue until it's resolved.


Add Javadoc and format code

What this PR does / why we need it?
Add Javadoc and format code for test Github Actions CI.
Summary of your change
Add Javadoc and format code for test Github Actions CI.
Please indicate you've done the following:

[ ] Made sure tests are passing and test coverage is added if needed.
[x] Made sure commit message follow the rule of Conventional Commits specification.
[ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

Codecov Report

Merging #298 (ef2cddb) into main (2706f4f) will decrease coverage by 1.73%.
The diff coverage is 88.88%.

@@             Coverage Diff              @@
##               main     #298      +/-   ##
============================================
- Coverage     70.63%   68.90%   -1.74%
+ Complexity    10337    10143     -194
============================================
  Files           480      480
  Lines         49824    49671     -153
  Branches      10370    10330      -40
============================================
- Hits          35193    34224     -969
- Misses        10362    11238     +876
+ Partials       4269     4209      -60

Impacted Files
Coverage Δ

core/src/main/java/com/alibaba/fastjson2/JSON.java
83.33% <88.88%> (-0.23%)
:arrow_down:

...n/java/com/alibaba/fastjson2/util/UnsafeUtils.java
24.63% <0.00%> (-46.38%)
:arrow_down:

...main/java/com/alibaba/fastjson2/util/JDKUtils.java
40.25% <0.00%> (-30.07%)
:arrow_down:

...in/java/com/alibaba/fastjson2/JSONReaderASCII.java
65.28% <0.00%> (-17.04%)
:arrow_down:

...va/com/alibaba/fastjson2/reader/ValueConsumer.java
16.66% <0.00%> (-16.67%)
:arrow_down:

...main/java/com/alibaba/fastjson2/JSONReaderStr.java
22.60% <0.00%> (-12.87%)
:arrow_down:

...java/com/alibaba/fastjson2/JSONWriterUTF8JDK9.java
73.41% <0.00%> (-8.87%)
:arrow_down:

...in/java/com/alibaba/fastjson2/JSONWriterJSONB.java
52.04% <0.00%> (-6.05%)
:arrow_down:

.../main/java/com/alibaba/fastjson2/util/IOUtils.java
55.06% <0.00%> (-5.07%)
:arrow_down:

...in/java/com/alibaba/fastjson2/JSONWriterUTF16.java
70.97% <0.00%> (-4.87%)
:arrow_down:

... and 44 more

Continue to review full report at Codecov.

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


Issue with k8s.io/docs/tasks/access-application-cluster/web-ui-dashboard/

Hi,
Following the instructions on the page to install the dashboard I am getting the below 500 error:
error: unable to read URL "https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml", server reported 500 Internal Server Error, status code=500

I believe it was cause by a bad weather that day. Pls try if things work now and reopen this if the server still says 500.
/close


Cannot import connections with XML File

Hi,
I cannot import the connection XML to dbeaver. Kindly assist for the same or if you have already resolved this issue, kindly send me the link for the same.
Thanks

duplicates #3076


could provide data

thanks for your share, could you please provide your data

+1
Could you please upload your data?

Hello, please provide us with data. Thank you!


[Docs] React Native Support

It would be awesome to have a docs page similar to this:
https://houseform.dev/guides/react-native.html
That outlines how to use TanStack Form with React Native. TLDR: it should just work out-of-the-box without needing any additional configuration.
It would probably be ideal to also add a RN example when we add this page.

@crutchcorn  does tanstack form work with react native? i just feel that it is built for web

@Othman2001 it does! In fact, it's my current primary usecase

@crutchcorn that's amazing news! I was just now searching to see if it actually works and see you posted 5 hours ago - mental!
Anything special things you had to do to have it use the native components?

@ovidb you shouldn't have to change anything in the documented usage to use React Native ☺
If there is an issue preventing you from using it, let me know (in a new issue please) and I'll prioritize it!

Hey @crutchcorn, I would like to take this up.


rejectedWith not reading constructor names

With plain Chai, if I do:
expect(function () {
    throw new Error();
}).to.throw(Array);

I get:
AssertionError: expected [Function] to throw 'Array' but 'Error' was thrown

With Chai as Promised, if I do the equivalent:
var d = Q.defer();
d.reject(new Error());
return expect(d.promise).to.eventually.be.rejectedWith(Array);

I get:
AssertionError: expected promise to be rejected with undefined but it was rejected with [Error]

Chai as Promised thinks that the Array constructor’s name is undefined.
I had a brief look into this: https://github.com/domenic/chai-as-promised/blob/d607a914ea8cff473f179becf8029a241ed011ee/lib/chai-as-promised.js#L152. Should we be reading the name property from the constructor function, instead of creating an instance and looking for a name on that? Alternatively the name could be read as instance.constructor.name. Here is what looks like the equivalent line but in Chai: https://github.com/chaijs/chai/blob/ab999d89171634e3b953765c6d0c8a7d454a4b59/lib/chai/core/assertions.js#L1054
Also, the error message format is slightly difference compared to standard Chai. Is this intentional, out of curiosity?

I'm rolling up all bugs in the category "isRejected/rejectedWith doesn't behave like Chai's error rejectors" into #166.


Problem publishing app to App Store

When trying to publish the app to App Store, I find the following error:
iTunes Store operation failed.
Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the 'iOS Human Interface Guidelines' at https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html#//apple_ref/doc/uid/TP40006556-CH14-SW5 and the 'iOS App Programming Guide' at https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW12.
It seems to me that is related to the way the library is installed in our project. Even though when I test on iPhone 5 everything works as usual, the problem occurs. When I remove the library and build Launch Images the standard way, the build works.
If this is a problem that occurs only with our setup, please close this issue.

I fixed this by manually adding this splash screen and adding it to the project as well


Improve Logproc documentation

Wanted to get this in real quick before I leave. Feedback on logproc has been that it's not easy to use, so I wrote some better manpage docs complete with examples. I also cleaned up the annoying output it generates on failure to parse json.

Simple too simple for you? :)


Update the link for new Discussion

What are you changing in this pull request and why?
Based on the discussion here: https://github.com/dbt-labs/docs.getdbt.com/discussions/2553
The discourse will be the new forum where one can discuss new ideas.
This PR replaces the previous link to start a new discussion to the discourse link

It says there is 1 unresolved Comment. How I can access my Versel account as it is pending approval for access?

@mirnawong1: Can you please review?

Thanks @mirnawong1 :)


[PDI-17209] - Group By: When using Cumulative sum (all rows option on…

…ly!)) option with "Include all rows" item is unchecked, the data transformation finished normal

Fixed a generic error of GroupBy dialog:
Ignore the user changes whenever Cancel action is triggered.

@pentaho-lmartins , @bmorrise , @pamval , @mbatchelor Please review and merge if it's all ok.

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -f 'pom.xml' -pl 'ui' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'ui' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  ui/src/main/java/org/pentaho/di/ui/trans/steps/groupby/GroupByDialog.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes (click to expand)
org.pentaho.di.ui.repository.pur.repositoryexplorer.model.UISecurityRole

Branch Change: -1.8% :small_red_triangle_down:
Complexity Change: -1.5% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.5% :small_red_triangle_down:

org.pentaho.di.ui.trans.steps.groupby.GroupByDialog

Branch Change: -0.4% :small_red_triangle_down:
Complexity Change: -0.3% :small_red_triangle_down:


Produce reference assemblies for Microsoft.AspNetCore.App

In order to satisfy the requirements of making Microsoft.AspNetCore.App a ref-only package (https://github.com/aspnet/AspNetCore/issues/3608), we need to change our build system to produce reference assemblies for API in Microsoft.AspNetCore.App.
Requirements

Reference assemblies do not contain implementation.
API breaking changes to any assembly in Microsoft.AspNetCore.App are not allowed after 3.0.0
Reference assemblies must not change assembly version in patch updates. They remain constant at "Version=<IP_ADDRESS>" for the lifetime of netcoreapp3.0.
Assembly version bumps when the TFM changes. So when/if netcoreapp3.1 comes along, assemblies change to "Version=<IP_ADDRESS>"
Implementation binaries must satisfy the API surface of the reference assembly
When Microsoft.Extensions.* APIs are used in projects targeting .NET Framework, automatic binding redirect generation must continue to work correctly

Proposed solution

Generate source for ref assemblies

We use build tools from https://github.com/dotnet/arcade to generate reference assemblies from implementation projects. This generated source lives in the repo next to the implementation. Most assemblies in the shared framework will have a folder layout like this:
.../Microsoft.AspNetCore.Mvc/
	ref/
		Microsoft.AspNetCore.Mvc.csproj
		Microsoft.AspNetCore.Mvc.cs       (generated by tools, should not be hand edited)
	src/
		Microsoft.AspNetCore.Mvc.csproj
		**/*.cs       (code for the implementation of Microsoft.AspNetCore.Mvc.dll)
	test/ (optional - unit tests)
		Microsoft.AspNetCore.Mvc.Tests.csproj
		**/*.cs       (test code)

Implement tests to ensure implementation matches the ref API

Wire up the build to use tools from https://github.com/dotnet/arcade which assert that the implementation binaries are binary compatible with their reference assemblies. This is essential to making sure patches don't break API.
Open questions

How to structure NuGet packages and set assembly versions without introducing downgrade errors or producing incorrect binding redirects?

This proposal looks reasonable to me.

When Microsoft.Extensions.* APIs are used in projects targeting .NET Framework, automatic binding redirect generation must continue to work correctly

This may be problematic.  The binding redirects are generated based on the compile graph.  So if any binding redirects are generated, it will be to the version of the ref assembly.  Probably this means that the Microsoft.Extensions packages should not include the reference assemblies, they should only be used in the targeting pack for ASP.NET Core.

My main concern is about servicing updates. I think we can make 3.0.0 work fine. It's 3.0.1 that we need to think through. I'll add to this issue that we need to design how ref assemblies and assembly versions should work so that we can keep .NET Framework and .NET Core happy.

This appears to be done. I have a build and inside of C:\Program Files\dotnet\packs\Microsoft.AspNetCore.App.Ref\3.0.0-preview4-19162-05\ref\netcoreapp3.0 I have ref-only DLLs, plus the matching XML files.
We're not sure what this means:

Open questions

How to structure NuGet packages and set assembly versions without introducing downgrade errors or producing incorrect binding redirects?

@natemcmaster - can you provide some info on the "Open question" above? Is this done, or is there more work remaining?

Work remaining: ensure these requirements are met (they are not currently). This will require a combination of writing tests and changing some MSbuild goop.

Reference assemblies must not change assembly version in patch updates. They remain constant at "Version=<IP_ADDRESS>" for the lifetime of netcoreapp3.0.
Implementation binaries must satisfy the API surface of the reference assembly
API breaking changes to any assembly in Microsoft.AspNetCore.App are not allowed after 3.0.0

Got it. I'm closing this issue as Done for preview 4, because the bulk of the work was completed. I logged https://github.com/aspnet/AspNetCore/issues/9479 to track the remaining work for a later milestone.


Implement reset() for Meta extension

This is a fix for #671

Make sure to address the failing flake8 lint errors that are occurring on Travis-CI.  You can ignore the Py3.3 failures as that is being removed moving forward.


java.io.FileNotFoundException: WEB-INF/logging.properties (No such file or directory)

I tried to deploy this project on google app engine but couldn't get it work. I've set up the firebase project, acquired service account, enabled the billing on google app engine, and set the project with gcloud command. The error reads:
[INFO] Updating service [default] (this may take several minutes)...
[INFO] .................................................................................................................................................................failed.

[INFO] java.io.FileNotFoundException: WEB-INF/logging.properties (No such file or directory)
[INFO]
[ERROR] Error: gcloud app command with exit code : 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:05 min
[INFO] Finished at: 2018-01-12T19:12:10-05:00
[INFO] Final Memory: 25M/83M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.appengine:gcloud-maven-plugin:<IP_ADDRESS>.v20160815:deploy (default-cli) on project backend: Error: gcloud app command exit code is: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Could someone please help me? Is this because I used the database on Firebase of my other project? I've spent days on this and really hope I can get this example rolling to use google app engine for my own app. Any reply would be greatly appreciated!

Hi 779503982@
I recently updated this project, could you pull the changes and try to deploy with the new command:
mvn clean package appengine:deploy

Otherwise it might be a problem with the Docker image. Please try the updated code sample and let me know.


wanted to make heart red in the button created by Arjun-Ingole_2

as it can be seen,there is no effect on button while moving a cursor on to it,i want to add hover effect to small heart present on the button

Hi, are you still working on this issue? If you've already made a PR with the changes that have been merged then please close the issue. If you have an open PR, please mention this issue number in your PR in order to link them.


R kernal not working

Issue Type: Bug
Cannot select R kernal in VS code jupyter notebook
Note: This does not happen in vs code insider, it works fine in insider so perhaps this bug has already been addressed in beta
Steps to Re produce

Create new jupyter notebook in vs code
In the top right of the editor, select the R kernal (default is python). You need to have installed R and the R kernal on your machine

The selection will not be recognized, nothing will change and the Kernel will remain 'Python'
After saving the notebook, closing it and re opening the following appears:

Extension version: 2020.12.414227025
VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:30:02.420Z)
OS version: Darwin x64 20.2.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz (8 x 2300)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
16.00GB (0.08GB free)

Process Argv
--crash-reporter-id 9959db57-a060-434f-929b-dbac9810bf45

Screen Reader
no

VM
0%

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
openlogontheside:30221877
python383:30185418
pythonvspyt617:30244266
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30211402
wsl2prompt:30224612
vstry244cf:30244300
pythonvsdeb440:30242242
unusedprompt:30224610
folderexplorer:30224614
openfilemenu:30224647
pythonvsded773:30236629

Thanks for reporting this issue. Unfortunately support for other language kernels in Notebooks is limited to the Native Editor available in VS Code Insiders.
For now you'll need to use VS Code insiders. Please note thought, the plan is to eventually support the Native Notebook editor it in VS Code stable (not just Insiders).

Thanks for reporting this issue. Unfortunately support for other language kernels in Notebooks is limited to the Native Editor available in VS Code Insiders.
For now you'll need to use VS Code insiders. Please note thought, the plan is to eventually support the Native Notebook editor it in VS Code stable (not just Insiders).


Jerky vertical scrolling on wide lines

We're using a CodeArea to show the source code for pages to users. Some websites go a bit mad with minification and have huge chunks of code on one line, and when scrolling down the view there's a noticeable pause as you scroll over it. The pause is worst on the first encounter, but it's a noticeable jump every time you scroll over it.
I've had a quick look using jvisualvm, and it doesn't look like theres a huge CPU spike or anything, are there some potentially long running operations happening on the UI thread?
Using RTFX 0.8.1 from Maven
JRE 1.8.0_131
Pauses happen on macOS 10.12.6 and Windows 10
Here's some code you can run to try for yourself:
import org.fxmisc.flowless.VirtualizedScrollPane;
import org.fxmisc.richtext.CodeArea;
import org.fxmisc.richtext.LineNumberFactory;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

public class RichTextFXDemo extends Application
{
    public static void main(
        String[] args)
    {
        launch(args);
    }

    @Override
    public void start(
        Stage primaryStage) throws Exception
    {
        final CodeArea codeArea = new CodeArea();
        codeArea.setParagraphGraphicFactory(LineNumberFactory.get(codeArea));
        codeArea.replaceText(getDemoString());
        codeArea.showParagraphAtTop(0);

        final BorderPane root = new BorderPane(new VirtualizedScrollPane<>(codeArea));
        final Scene scene = new Scene(root, 600, 400);
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    private String getDemoString()
    {
        final StringBuilder sb = new StringBuilder();

        for (int i = 0; i < 1000; i++)
        {
            sb.append("This is a short line\n");
        }

        for (int i = 0; i < 100; i++)
        {
            for (int j = 0; j < 1000; j++)
            {
                sb.append("A section of a really long line. ");
            }
            sb.append("\n");
        }

        for (int i = 0; i < 1000; i++)
        {
            sb.append("This is a short line\n");
        }

        return sb.toString();
    }
}

@Jugen this is probably related to #935 .


OrganizationsClient::DescribeOrganization() not working

Describe the bug
A simple test using DescribeOrganization() fail. When calling this method we are blocked in this call.
Tested with CLI and same IAM access token => it works
Simple program with just this call fail (stay blocked on the API call)
Expected behavior
Should return organization description
Current behavior
Blocked in DescribeOrganization() call.
Steps to Reproduce
Test code:
#include <aws/core/Aws.h>
#include <aws/core/auth/AWSCredentialsProviderChain.h>
#include <aws/organizations/OrganizationsClient.h>
#include <aws/organizations/model/DescribeOrganizationResult.h>

#include <iostream>
#include <string>

int main(int argc, char **argv)
{
    Aws::SDKOptions options;
    options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace;

    Aws::InitAPI(options);
    std::cout << "Init OK" << std::endl;
    {
        Aws::Auth::AWSCredentials auth("XXXXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXXXXXXXXX");
        Aws::Organizations::OrganizationsClient org(auth);
        std::cout << "Before Describe" << std::endl;
        auto outcome = org.DescribeOrganization();
        std::cout << "After Describe" << std::endl;
        if (outcome.IsSuccess())
        {
            std::cout << "Describe success" << std::endl;
            const auto &orgres = outcome.GetResult().GetOrganization();
            std::string org_id = orgres.GetId();
            std::cout << org_id << std::endl;
        }
    }

    Aws::ShutdownAPI(options);
    return 0;
}

Output:
Init OK
Before Describe

See attached aws log (trace mode)
aws_sdk_2022-02-19-15.log
Possible Solution
I don't know.
AWS CPP SDK version used
1.9.196
Compiler and Version used
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Operating System and version
Ubuntu 20.04.3 LTS

Hi @gmilletAVS ,
Thanks for pointing this out to us, I was able to reproduce and we'll start working on a solution.


[RIP-15]Add Ipv6 support for RocketMQ (#1352)

Remove the useless files

Replace PermSize with MetaspaceSize, details see http://openjdk.java.net/jeps/122

Update DLedgerCommitLog.java (#1145)

Delete useless code

Remove the duplicate content

Polish the comment (#1107)

Minor Typo fix  (#860)

[ISSUE #1082] Fix disconnection of HA (#1083)

fixed the text description in chinese doc (#1339)

fix /dev/shm not found on some OSs (#1345)

Refactor the protection logic when pulling

change the MQVersion variable to rocketmq 4.5.2 version;

Minor polish

Fix the wrong package name

[maven-release-plugin] prepare release rocketmq-all-4.5.2

[maven-release-plugin] prepare for next development iteration

[RIP-15]Add Ipv6 support for RocketMQ

What is the purpose of the change
XXXXX
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Coverage increased (+0.9%) to 51.466% when pulling c7c9601d36d0179ae69592e541764b04130cf790 on IPV6 into 90ae1167981ad586e84dd433c08395aeb92a4111 on develop.


Can't Do Anything on MacVim

My MacVim just crashes and it doesn't allow me to do anything. The error messages are:
Fatal Python error: Py_Initialize: unable to load the file system codec ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007fff756eb000 (most recent call first): Vim: Caught deadly signal ABRT Vim: preserving files... Vim: Finished.
I'm wondering if this is related to the Python version on my Mac?

Reproduced. Homebrew just updated to Python 3.6.3, and now this is happening.
macOS 10.13
Python 3.6.3
MacVim 8.0-137

Updated https://github.com/macvim-dev/macvim/releases/tag/snapshot-138
Please reopen if still happening with snapshot 138 binary.

Everything appears to work great. Strangely, the old version in Homebrew (snapshot 137_2) works fine today, but I've gone ahead with snapshot 138 from the cask version.
Thanks for the quick response.

After updating MacVim today I was getting the same error.  I was able to fix it by following alecshaw's solution and upgrading to the development version of python.

After updating MacVim to 145 today, I met the same problem. I solved it by upgrading python3 to 3.6.4 using HomeBrew.

Having similar  problem.
I am on python 3.6.4, and using MacVim 145. However none of this solved my problem.
I found this in my make log:
Could not find service "com.apple.CoreSimulator.CoreSimulatorService"
On further research I found similar issue referenced at
https://trac.macports.org/ticket/49950
Solution was to:
sudochmod 755 /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc
This fixed my issue, and I was then able to do a
brew install macvim

I had a similar issue, brew reinstall macvim --env-std --with-override-system-vim seems to have fixed it.

brew install macvim --build-from-source works for me


Grow or shrink container vertically on sash drag

I'm building a grid layout with allotment. The container's width is fixed, but I want the height to adjust dynamically. When a user drags the sash to resize a row, the container's height should grow or shrink, while keeping the other rows the same. Is there a way to achieve this behavior with the library?

@johnwalley I'm also looking for a way to change size of one panl while keeping the width of other panes unchanged. Any idea how to achieve this? We're using kind of an endless horizontal gallery 😅


Publish on PyPI

[x] Upload to PyPI
[x] Review metadata on PyPI
[x] Remove the warning about not being on PyPI...
[x] Update again
[ ] Consider releasing via GitHub Actions

https://github.com/marketplace/actions/pypi-publish
[ ] Only do this if build and tests are ok
[ ] Share build + test between GHA jobs

Metadata looks ok now on PyPI. I removed the extra license field from pyproject.toml as https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata-license says, that the classifiers should be used instead. The LICENSE file stays, just in case.

Now publishing to PyPI with a GitHub Action. This works really really well and elegantly (e.g. using trusted publishing for the credentials).

More info on Trusted publishing (= GitHub using OIDC to authenticate with PyPI + authorizing GitHub Actions to publish a certain package "from" a specific GitHub repo):
https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/

Making the workflow reusable for e.g. dinglehopper is blocked by external issues, I opened #9 for this.

GitHub and PyPI releases are now created by the same GH workflow (release.yml) and share building and testing.
Testing is just a dummy test, see #6 in the future.


Chore/facet json

this PR adds a FacetJSONMixin that can respond with a JsonResponse containing the facets from a SolrQuerySet if the http request Accept: header is set to application/json.

Codecov Report

Merging #297 into develop will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           develop    #297      +/-   ##
==========================================
+ Coverage     98.9%   98.9%   +<.01%
==========================================
  Files          140     140
  Lines         6456    6481      +25
  Branches        12      12
==========================================
+ Hits          6385    6410      +25
  Misses          71      71


add instructions for creating and using rhel base image

@animeshsingh there's now an image for s390x/redis -running through using it instead


sv.yml localization

This PR adds a Swedish translation.

I made a tiny change, which was a wording change - got rid of a hyphenation.


Update geo codes for Azure Backup

Overview/Summary
This PR updates the list of geo codes used for Azure Backup private DNS zones.
This PR fixes/adds/changes/removes

Updates the list of geo codes used for Azure Backup private DNS zones

Breaking Changes
n/a
Testing Evidence
Please provide any testing evidence to show that your Pull Request works/fixes as described and planned (include screenshots, if appropriate).
As part of this Pull Request I have

[x] Checked for duplicate Pull Requests
[x] Associated it with relevant issues, for tracking and closure.
[x] Ensured my code/branch is up-to-date with the latest changes in the main branch
[ ] Performed testing and provided evidence.
[x] Updated relevant and associated documentation.
[x] Updated the "What's New?" wiki page (located: /docs/wiki/whats-new.md)

@krowlandson are we good to merge this as approved?

@krowlandson are we good to merge this as approved?

Happy if you are...


Using esbuild@latest in host project causes type error with @bahmutov/cypress-esbuild-preprocessor

Current behavior
We use this preprocessor in combination with the @bahmutov/cypress-esbuild-preprocessor to bundle it as a file:preprocessor.
Unfortunately the cypress-esbuild-preprocessor has esbuild as peer dependency and if another dependency on host project comes with a newer version like<EMAIL_ADDRESS>or<EMAIL_ADDRESS>there are type errors.
Currently we have to pin the esbuild to 0.14.54 although not entirely necessary.
esbuild Changelog:
./node_modules/esbuild/lib/main.d.ts
0.15.18 Changes on BuildOption -> Property "Write"
 changed typing
0.16.10 Changes on type Loader (new entry empty) -> leads to mismatch
Desired behavior
Updating the esbuild dependecy in this project to @latest or at least (0.16.10)
Test code to reproduce
import createBundler from "@bahmutov/cypress-esbuild-preprocessor";
import { addCucumberPreprocessorPlugin } from "@badeball/cypress-cucumber-preprocessor";
import createEsbuildPlugin from "@badeball/cypress-cucumber-preprocessor/esbuild";

async function setupNodeEvents(
  on: Cypress.PluginEvents,
  config: Cypress.PluginConfigOptions
): Promise<Cypress.PluginConfigOptions> {

  await addCucumberPreprocessorPlugin(on, config);

  on(
    "file:preprocessor",
    createBundler({
      plugins: [createEsbuildPlugin(config)],
    })
  );

  return config;
}

...

Versions

Cypress version: 11.2.0
Preprocessor version: 15.0.0
Node version: 18.12.1

Checklist

[ x] I've read the FAQ.
[ x] I've read Instructions for logging issues.
[x ] I'm not using<EMAIL_ADDRESS>(package name has changed and it is no longer the most recent version, see #689).

Additional marks:
I'm rather new in the peer dependency topic so forgive me if the default solution for this would be to pin the version in host project rather than to ask you to update your dependency which brings additional workload to you.

There’s not really anything I can do about this. You can track this here: https://github.com/bahmutov/cypress-esbuild-preprocessor/issues/229

Thank you @badeball for linking the corresponding issue in the cypress-esbuild. Couldn't find it by myself.


Rename Github repository name.

Hi, I have created fvm-installer to install resources directly in FiveM folder. (Like Git)
So is it possible to rename your repository like this : brouznouf/mysql-async ?
Thanks you do a good job and you help everyone ^^.

Not possible to have a metadata file for each repository instead ?

Is not possible because i use Release API from Github. So the only way is
to rename your repo :/ to brouznouf/mysql-async
Best Regards
Quentin LAFFONT
8 lot parc du chateau
13190 ALLAUCH, FRANCE
+33 6 29 86 98 41
https://qlaffont.com http://qlaffont.com/


Error on refund

Using:
omnipay/authorizenet:2.6.0
omnipay/common:2.5.2
laravel/framework:5.4.36
I am attempting to issue a refund and I am getting error The card parameter is required
$gateway = Omnipay::create('AuthorizeNet_AIM');
$gateway->setApiLoginId('api_login_id');
$gateway->setTransactionKey('transaction_key');
$response = $gateway->refund([
    'amount' => $amount,
    'transactionReference' => '{"approvalCode":"DXNR77","transId":"60107279743"}'
])->send();

I understand I need the card details when issuing refunds.
How can I get the card details?
I do not store credit card information to DB.

Did you solve this problem? Is it an erroneous validation check that should perhaps be removed?

The Authorize.net api has a GetTransactionDetails method that takes a transId and returns all the details about the transaction including the last four digits of the cards. The transId and the last 4 of the card should be all you need. But I don't think this package supports GetTransactionDetails api call (unless i'm mistaken).

From what I remember, the GetTransactionDetails API was a completely different API system that would need some major writing, additional credentials etc. Since then, the Authorize.Net REST API has changed substantially, so it may be something that can be revisited if it is now more closely integrated.

/**
     * Get details by transaction id.
     *
     * @param $transactionId
     * @return \Omnipay\Common\Message\ResponseInterface
     */
    public function getTransactionDetails($transactionId)
    {
        $refId = 'ref' . time();

        $params = [
            'refId' => $refId,
            'transactionReference' => $transactionId,
        ];

        $request = $this->gateway_auth->queryDetail($params);

        return $request->send();
    }

getTransactionDetails works for AIM

@Nks Two quick questions:

What is $this->gateway_auth?
Is it always necessary to provide a unique refId even for transaction queries?

@Nks Two quick questions:

What is $this->gateway_auth?
Is it always necessary to provide a unique refId even for transaction queries?

1 - This is just the instance to omnipay.
$this->gateway_auth = Omnipay::create('AuthorizeNet_AIM');
        $this->gateway_auth->setDeveloperMode(config('app.env') !== 'production');
        $this->gateway_auth->setTestMode(config('services.authorize_net.test_mode', false));
        $this->gateway_auth->setApiLoginId(config('services.authorize_net.login_id'));
        $this->gateway_auth->setTransactionKey(config('services.authorize_net.transaction_key'));

2 - Feel free to check. I don't think so. https://developer.authorize.net/api/reference/#transaction-reporting-get-transaction-details
After this you can make partial refunds. Make sure that you are storing the refund transaction which can be voided in this case.
If you are going refund full amount just send the same amount on refund operation.
Here how I making the refund:
 /**
     * Making the refund for the payment.
     *
     * @param array $transactionReference
     * @param float $amount
     * @return \Omnipay\AuthorizeNet\Message\AIMResponse|\Omnipay\Common\Message\ResponseInterface
     */
    public function makeRefund(array $transactionReference, float $amount)
    {
        $amount = (floor($amount * 100) / 100);

        $params = [
            'amount' => $amount,
            'transactionReference' => json_encode($transactionReference),
        ];

        $request = $this->gateway_auth->refund($params);

        return $request->send();
    }```

And here the full example of calling the refund method:

```/**
     * @param int $paymentId
     * @param array $refundData
     * @return string
     * @throws \Exception
     */
    public function makeRefund(int $paymentId, array $refundData): string
    {
        /** @var Payment $payment */
        $payment = $this->repository->findEntity($paymentId);

        $amount = 0;

        switch ($refundData['refund_type']) {
            case Payment::REFUND_TYPE_FULL:
                $amount = $payment->total_amount;
                break;
            case Payment::REFUND_OTHER_AMOUNT:
                $amount = $refundData['refund_amount'];
                break;
        }

        if ($amount > $payment->total_amount || $amount <= 0) {
            throw new \Exception('Wrong refund amount');
        }

        //Resolving the transaction detail which requested by refund.
        $transactionResponse = $this->client->getTransactionDetails($payment->transaction_id);

        $transactionReference = [
            'transId' => $payment->transaction_id,
            'card' => [
                'number' => null,
                'expiry' => null,
            ]
        ];

        if ($transactionResponse->isSuccessful()) {
            $transaction = optional($transactionResponse->getData())->transaction;

            $cardNumber = (string)$transaction->payment->creditCard->cardNumber;

            $transactionReference['card'] = [
                'number' => substr($cardNumber, -4, 4) ?: null,
                'expiry' => 'XXXX',
            ];
        } else {
            Log::critical('Unable get transaction details', [
                'payment' => $payment,
                'error' => $transactionResponse->getMessage(),
            ]);

            throw new \Exception(__('Unable get transaction details from Authorize.net: :error', [
                'error' => $transactionResponse->getMessage(),
            ]));
        }

        $response = $this->client
            ->setGateway('AuthorizeNet_AIM')
            ->makeRefund($transactionReference, $amount);

        if ($response->isSuccessful()) {
            $transaction = json_decode($response->getTransactionReference(), true);
            $transId = Arr::get($transaction, 'transId');

            $paymentAttributes = [
                'order_id' => $payment->order_id,
                'customer_id' => $payment->customer_id,
                'total_amount' => $amount,
                'transaction_id' => $transId,
                'payment_method_preview' => __('Refund (:type) for transaction #:trans_id', [
                    'trans_id' => $payment->transaction_id,
                    'type' => Str::title(str_replace('_', ' ', $refundData['refund_type'])),
                ]),
                'payment_status' => $response->getResultCode() ?? Payment::STATUS_REFUNDED,
                'gateway_response' => $response->getMessage(),
            ];

            $this->repository->create($paymentAttributes);

            return $response->getMessage();
        } else {
            Log::critical(__('The payment was not refunded! Payment Gateway response: :error', [
                'error' => $response->getMessage(),
            ]), [
                'response' => $response
            ]);
        }

        throw new \Exception(__('Unable make refund with error: :error', [
            'error' => $response->getMessage()
        ]));
    }```


Add navigation progress indicator

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request

Desired functionality.

Add navigation progress indicator like https://github.com/hilongjw/vue-progressbar.
For routes that wait for data the UI can feel unresponsive as the browsers loading indicator does not work with client-side page transitions. Would be nice to have a solution integrated in the starter.

do you want to try to implement it by yourself?

Will try to get there as soon as I have my basic app running.

See #186 for a discussion on how to best implement this.


feature request: show confirmation on vim command buffer instead of a popup

Did you check existing requests?

[X] I have searched the existing issues

Describe the feature
Add an option to show the confirmation for actions inside the vim command buffer instead of a pop.
Provide background
No response
What is the significance of this feature?
nice to have
Additional details
No response

I don't think this would improve the plugin


沪港通交易数据报错

用 hsgt.get_lgt_share() 爬取交易数据时报错如下：
FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?

pip install html5lib

pip install html5lib


Refactoring linkRequirements()

Fix indent of code
Replace map with forEach

Because do not use the return value.

Thanks for the suggestion @abetomo. Already fixed the indent in #58 and I wasn't sure if there's any reason to use Array.forEach over Array.map so I did some googling. At least one source I can find suggests map is faster:

In reality, you shouldn’t be using .forEach() unless other methods such as .map() can’t do the trick. .map() is actually slightly faster than .forEach().

I see!
Thank you for review.


Fix README

Change "AMD GPU's" to correct grammar.

Should be fixed with the latest release. Thanks for spotting this!


Can't plot over road previously plotted

Plotting a road cycling route. When going back down the road home (same one I started out on) it won't let me plot the route home. I just get 3 options (split, start route here or remove point)
Not sure if this is a bug or I'm just doing something wrong.
Can anyone help?

I don't think that's an actual bug, it's just that clicking on a plot only gives those three options, no matter where the plot is. I'm taking advantage of this issue to suggest a "close the loop" option, which would automatically put the next route point exactly at the route's start point.

Close the loop is fine and a good idea but this existing issue also means you can't double back on any section within a plotted route.

I mean, you can, but not via the exact same plot, right?


Incorporate purpose field into session request handling

Updates the session request handling to work with the new session purpose field. Reverts the work to replace JSONFields with M2MFields (the pull request for that work, #65, was abandoned).
In addition to the purpose field, allows groups that are not marked with the acts_like_wg feature flag to request up to 12 sessions instead of 3, doing away with the request for approval in that case. For these groups, additional options for requested_duration are also allowed.

Will be merged in 7.40.0.


Support kwargs model configuration in Mypy plugin

Previously, the Mypy plugin only supported drawing settings from a Config class. Now, it fully supports drawing settings from class kwargs too.

I have a desire to see this change backported to v1.10. I think it's going to be relatively straightforward, just a cherry-pick.
Is there a formal process for backporting fixes, or should I just submit a follow-up PR once this PR is merged?

Thank you for such a fast response and review! I greatly appreciate it :heart:
May I ask how critical a bugfix needs to be to be considered for backporting? Without the changes in this PR, the mypy plugin is essentially unusable if you're using the kwargs-based model config approach.

@samuelcolvin This seems fine to me.
If the plugin continues to require any significant amount of maintenance I think it will eventually make sense to improve the way the mypy plugin error snapshot-style tests work so it's a bit easier to review diffs (and relate them to source code changes). But not today.

May I ask how critical a bugfix needs to be to be considered for backporting? Without the changes in this PR, the mypy plugin is essentially unusable if you're using the kwargs-based model config approach.

Realistically we're only fixing regressions in v1.10 and security security bugs at this stage.

If the plugin continues to require any significant amount of maintenance I think it will eventually make sense to improve the way the mypy plugin error snapshot-style tests work so it's a bit easier to review diffs (and relate them to source code changes). But not today.

Agreed, I guess we could just test with type-ignore including the error code. Either that or build a pytest plugin for this, but would be quite a lot of work.
I'll review and merge this in the week.

please review
(just so I remember to review this soon)

Thanks so much for this.


Change stroke color of bar depending on bar size

Hi,
I am trying to change the color of a bar (among many in the graph) if it's bigger than 40. See picture below:

I've been trying to change it inside the chart.on('draw')
chart.on('draw', function(data) {
  if(data.type === 'bar') {
       data.element.attr({
        style: 'stroke: red'
       });
  }
)};

but I'm not sure how to or if it's possible.
Any help is appreciated.

Yes, just one piece missing ;-)
chart.on('draw', function(data) {
  if(data.type === 'bar' && data.value > 40) {
       data.element.attr({
        style: 'stroke: red'
       });
  }
)};

I tried that, but it didn't work.
So I did a for loop to check what values were being extracted.
  for (var value in data.value) {         alert(value);       }
The output was "x", "y","x", "y","x", "y","x", "y", and not the actual value.

Yes, sorry. Value on line and bar charts are so called multi value objects (contains the value for X and Y axis depending on which axis configuration you're using).
In your setup you'll need to do this:
chart.on('draw', function(data) {
  if(data.type === 'bar' && data.value.y > 40) {
       data.element.attr({
        style: 'stroke: red'
       });
  }
)};

Wow. I knew it would be something simple.
Thank you very much, it works like a charm!

need to do something similar...where does this code go?

Hi,
I am trying to set each bar color different bar


BUG: x-axis alpha formatting

Formats x axis on alpha correlation visualization to look nice:

No commas in thousands, millions, etc.
Sensible padding on left and right of data
Sensible number of ticks:
a. If the x axis data is all integer-valued, then no non-integer ticks on x axis
b. No more than 12 ticks allowed no matter what on x axis

Fixes #88

Input:

awesome metadata I wrote
artifact to test on

qiime diversity alpha-correlation --i-alpha-diversity evenness_vector.qza --m-metadata-file sample-metadata.tsv --o-visualization groovyviz.qzv

Output: groovy visualization

This is ready for another pass @thermokarst !  Thanks!


files: use DB.locking config option to improve input performance

Fluent Bit has this option available in the tail input plugin. From looking at the upstream code, it looks like should help to reduce the number of syscalls on every commit to the DB but at the price of locking the access to the database file to third party programs. But for us, that trade-off seems okay?
We should soak test/performance test this to see if we get any visible benefit.

Looks like we get some better memory utilization:

Marginal/negligible improvement of CPU utilization:

And virtually no impact on throughput:


how i can do draw line in imgui

how i can do draw line in imgui?

read pls

This issue can be closed.


feat: Charity Campaign donation event - Campaign ID

Twitch have updated the charity donation event with a more relevant json field name
for the charity campaign ID per request of my issue raised.
https://github.com/twitchdev/issues/issues/646

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1267

Relevant Lines:
1368

💛  - Coveralls


comment from inria: no completion for optimizers ?

Steps to reproduce
create an optimizer
optimizer = ......
(in jupyter)
type "optimizer." and then TAB
Observed Results
no correct completion (we get "5"), instead of "ask", "tell" "recommend".
Expected Results
We expected to see

ask
tell
recommend

Can't reproduce (I get ask tell et many more), I'll have a look on your computer when you are back.


disable autogen.sh, so libtool and automake are not required

I removed this, and it still installed just fine, on tested on (arch)linux and on osx.
Following from @jsedisct1's comment https://github.com/paixaop/node-sodium/issues/52#issuecomment-131356621
This makes it much easier to install my application which uses node-sodium, which makes it easier for people to use it and for devs to contribute to it.

It does compile in MAC and some linux distributions but not in others. Originally node sodium was compiled without these tools, but it was causing a lot of problems in ARM platforms and others.
It's a bit more complex but platform independent.

how should I go about compiling for arm? which linux distros does it not compile on?

I dug back on some old issues and here's one distro that fails #34

What about if I change this so that it attempted autogen.sh, but if it failed it would continue to install (with useful warning message)?
Then you'll only need to install those tools if you really need it, and in most cases it will just work.

I think that works. It's a great idea.

Following from @jedisct1's comment #52 (comment)

i think he just meant you dont need autogen w/ release tarball, but you probably do for git compile

The newer branch libsodium-1.0.8-update changes the libsodium compile stage. If there's a pre compiled library in the /deps/build/lib mode sodium will use it instead of trying to compile from source. If a library, and include directory, are not found they it uses libsodium's own compilation scripts to build a static version of the library.
This will make it easier to download a binary distribution from Libsodium Releases and not rely on the build system if it does not work well in you platform.


'CUDA_VISIBLE_DEVICES' is not recognized as an internal or external command, operable program or batch file.

It kept saying "'CUDA_VISIBLE_DEVICES' is not recognized as an internal or external command, operable program or batch file." When I tried running the command "CUDA_VISIBLE_DEVICES=0 python examples/run_streaming_llama.py  --enable_streaming".
I was able to get it working by using the command "set CUDA_VISIBLE_DEVICES=0 && python examples/run_streaming_llama.py --enable_streaming"

The issue might be that you're using Windows OS instead of Linux.
On Linux, the command provided is indeed the correct one.


Create Chiron TestSystem class

We should implement a TestSystem class in chiron, rather than having to import and convert openmmtools TestSystems.

Notes about structure of this class from a comment on PR #21 by @jchodera

Instead of a bunch of TestSystem.get_X_property() methods, what about a single TestSystem.get_analytical_properties() method that returns a dict of the available analytical properties? There, we just need to standardize the ontology of property definitions we use in that single method.

Preliminary mockup of the TestSystem class:
class TestSystem # base class that defines the basic API
     .analytical_properties # read-only property that returns a `dict` of analytical properties with units attached
     .sampler_state # initial sampler state (with appropriate box vectors)
     .thermodynamic_state # includes the potential and Topology (can be overwritten)
     .description # human-readable description
     .keywords # keyword tags that allow us to select subset of tests (e.g. 'condensed-phase', 'ideal-gas', 'vacuum', 'unit-test', 'expensive'

The idea is to make the test self contained, so we only need a few lines of code to set up a test case.
Some test systems we are considering initially:
  class NoninteractingTestSystem # base class for things like ideal atomic and molecular gasses
     class IdealAtomicGas
     class IdealMolecularGas # e.g. N2, O2, CO2, H2O

  class HarmonicOscillatorTestSystem
  class HarmonicOscillatorArray

 class LennardJones
  class LennardJonesFluid
  class LennardJonesCluster
  class LennardJonesDimer

class VacuumMolecularSystem
      def __init__(self, SMILES, potential_type) # Create molecular system for the SMILES string
           SMILES : molecular species
           pretrained_model : 'SAKE', '...' # pretrained model

					 # logic for setting up the config and
					 # initializing sampler state and the thermodynamic state

  class EthanolSAKEMolecularSystem(VacuumMolecularSystem)

  #could have different ways of setting up
  test_ethanol = EthanolSAKEMolecularSystem()

  testsystem = VacuumMolecularSystem('CCO', 'SAKE-0.1')

  testsystem.thermodynamic_state.temperature = 300*unit.kelvin

This change will help to remove the dependency on openmm and openmmtools.


Range Date Picker Text not Translatable

Despite having all the translation options, the is one missing in the date range picker, which is the placeholder for the Start and End dates on the Header.
It would be nice if that text was also translatable, since it's hard coded right now.
For now, I just changed it in the node_modules, it's that "Entrada - Saída" text in the screenshot below.

Here's the file that I changed: node_modules > react-native-paper-dates > src > Date > DatePickerModalContentHeader.tsx
It's hard-coded in the props of the HeaderContentRange component

PRs are welcome!

I believe this could be done by using the startLabel & endLabel properties as props


feat: add support for full text searches

Add a $fulltext operator that can be used in queries on SQL databases.
Based on #621 by @thekevinbrown. This version has also added support for creating required indexes with the decorator @Index({ type: 'fulltext' }) and full text searching in MongoDB. Documentation could possibly be improved with more clear instructions.
Closes: #620

Codecov Report

Merging #3317 (5f8033e) into master (2380f0a) will decrease coverage by 0.07%.
The diff coverage is 86.56%.

@@             Coverage Diff             @@
##            master    #3317      +/-   ##
===========================================
- Coverage   100.00%   99.92%   -0.08%
===========================================
  Files          194      194
  Lines        12143    12207      +64
  Branches      2822     2840      +18
===========================================
+ Hits         12143    12198      +55
- Misses           0        9       +9

Impacted Files
Coverage Δ

packages/core/src/typings.ts
100.00% <ø> (ø)

packages/core/src/platforms/Platform.ts
97.23% <25.00%> (-2.77%)
:arrow_down:

packages/postgresql/src/PostgreSqlPlatform.ts
98.23% <81.81%> (-1.77%)
:arrow_down:

packages/knex/src/schema/SchemaGenerator.ts
99.67% <87.50%> (-0.33%)
:arrow_down:

packages/core/src/enums.ts
100.00% <100.00%> (ø)

packages/core/src/utils/QueryHelper.ts
100.00% <100.00%> (ø)

packages/core/src/utils/Utils.ts
100.00% <100.00%> (ø)

packages/knex/src/query/QueryBuilderHelper.ts
100.00% <100.00%> (ø)

packages/knex/src/schema/SchemaComparator.ts
100.00% <100.00%> (ø)

packages/mariadb/src/MariaDbPlatform.ts
100.00% <100.00%> (ø)

... and 5 more

Continue to review full report at Codecov.

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

It would be also great to catch up with the code coverage. But I am open for merging it without full branch coverage, will be happy to fill that gap myself afterwards.

What to do in the future:

Add more thorough index diffing (see https://github.com/mikro-orm/mikro-orm/pull/3317#discussion_r925316081)
Add support for passing language in the @Index() decorator. Right now it takes the simple approach while English or any other language might be more suitable to find more matches. (see https://www.postgresql.org/docs/current/textsearch-controls.html#TEXTSEARCH-PARSING-DOCUMENTS, https://dev.mysql.com/doc/refman/8.0/en/fulltext-natural-language.html).
Add support for ranking (see https://www.postgresql.org/docs/current/textsearch-controls.html#TEXTSEARCH-RANKING, https://dev.mysql.com/doc/internals/en/full-text-search.html, https://www.mongodb.com/docs/manual/core/text-search-operators/)
Add support for selecting text search mode (https://dev.mysql.com/doc/refman/8.0/en/fulltext-search.html)
All drivers have a different way to set up a query (while offering the same functionality, see links in docs/docs/query-conditions.md). We could include typed support for constructing queries that are converted to the platform's style dynamically. Like this for { title: { $fulltext: { $include: ['keyword1', 'keyword2'], $exclude: ['keyword3'] } } } or even { title: { $fulltext: { $or: [{ $include: ['keyword1', 'keyword2'], $exclude: ['keyword3'] }, { $include: ['keyword4'], $exclude: ['keyword1'] ] } } }.

Do I forget any?

For the second I tried to switch the column type to 'tsvector' by doing meta.get('Book2').properties.title.columnTypes[0] = 'tsvector' running generator.getUpdateSchemaSQL() + execute() but that didn't work

Oh right, I see what's happening, unknown types will get mapped to UnknownType that defaults to string basically, and ignores provided columnType, good catch! Fixed here.

For the second I tried to switch the column type to 'tsvector' by doing meta.get('Book2').properties.title.columnTypes[0] = 'tsvector' running generator.getUpdateSchemaSQL() + execute() but that didn't work

Oh right, I see what's happening, unknown types will get mapped to UnknownType that defaults to string basically, and ignores provided columnType, good catch! Fixed here.

Nice, I will merge the changes and rewrite the test. Thanks!

Btw I had to remove the default value (empty string), otherwise the query would fail. Maybe that's something to handle as well, not sure what the semantics are, never user this feature myself.

You mean the column default? I will test it now to see what you mean. I added tsvector columns with a default of empty string and it worked fine?

I'd like to include this in 5.3, ideally I would ship that today evening or something like that. Let me know if you have time to finish this, I'll be happy to merge it and do the final steps myself if not, in the end its pretty much done.

I have applied your suggestions, I will not be home until later tonight. So if you could apply the last suggestions, that’d be great (especially if you ship it tonight). Else i can implement them around 22 or 23h.

Ok no worries, will do it myself if I feel like releasing today. Might as well spend some time developing other things and ship it tomorrow morning.
Anyway, thanks a lot, nice to see a complete solution for this!

I am going to work on this now!

Implemented your suggestions, it's now awaiting tests.

anyone experiencing this in postgres?

for migration
 this.addSql('create index "tbl_employee_employee_name_index" on "public"."tbl_employee" using gin(to_tsvector(\'simple\', "employee_name"));');
entity
 @Index({ type: "fulltext" })   @Property({ columnType: "text", type: FullTextType })   public employeeName: string;
i tried using this
@Index({ type: 'fulltext' })   @Property({ type: FullTextType, onUpdate: (book) => book.title })   searchableTitle!: string;
but im not sure what values to add in db migration.
Thanks

@Property({ columnType: "text", type: FullTextType })

This seems wrong, I think you should not override the column type, it needs to be tsvector. Note that you say you tried to drop that, but your example code is for a different property (employeeName vs searchableTitle).

but im not sure what values to add in db migration.

I dont understand this, you are not using schema generator?

The tabs on the documentation site don't show correctly (https://mikro-orm.io/docs/query-conditions#postgresql). I understand the confusion.
It should show two possible ways to do FTS on Postgres.

You can use a column to store full text searching metadata. Below the title and description property is duplicated to the searchable column for the fts metadata. This works the best if you have multiple properties that should be searchable by one fts query. Note that you have to use the FullTextType (so, columntype = tsvector) for the searchable column.

@Property()
  title!: string;

@Property()
  description!: string;

  @Index({ type: 'fulltext' })
  @Property({ type: FullTextType, onUpdate: (book) => book.title + ' ' + book.description })
  searchable!: string;

You could also use a index on an existing column. Then you can just add @Index with type fulltext.
 @Index({ type: 'fulltext' })
  @Property()
  title!: string;

As noted above, you use FullTextType and try to override the type. You should just use:
@Index({ type: "fulltext" })
@Property({ type: "text" })
public employeeName: string;

Thank you for all your efforts. I'm using PostgreSQL.
Is there any update for the setweight and advanced constructing queries as below?

What to do in the future:

Add more thorough index diffing (see feat: add support for full text searches #3317 (comment))
Add support for passing language in the @Index() decorator. Right now it takes the simple approach while English or any other language might be more suitable to find more matches. (see https://www.postgresql.org/docs/current/textsearch-controls.html#TEXTSEARCH-PARSING-DOCUMENTS, https://dev.mysql.com/doc/refman/8.0/en/fulltext-natural-language.html).
Add support for ranking (see https://www.postgresql.org/docs/current/textsearch-controls.html#TEXTSEARCH-RANKING, https://dev.mysql.com/doc/internals/en/full-text-search.html, https://www.mongodb.com/docs/manual/core/text-search-operators/)
Add support for selecting text search mode (https://dev.mysql.com/doc/refman/8.0/en/fulltext-search.html)
All drivers have a different way to set up a query (while offering the same functionality, see links in docs/docs/query-conditions.md). We could include typed support for constructing queries that are converted to the platform's style dynamically. Like this for { title: { $fulltext: { $include: ['keyword1', 'keyword2'], $exclude: ['keyword3'] } } } or even { title: { $fulltext: { $or: [{ $include: ['keyword1', 'keyword2'], $exclude: ['keyword3'] }, { $include: ['keyword4'], $exclude: ['keyword1'] ] } } }.

Do I forget any?

Btw, possible to include the highlighting function? Thank you,

Just reviewed your code and found the to_tsvector was written fixed in the code https://github.com/mikro-orm/mikro-orm/blob/8b8f14071b92e91161a32aa272315a0ecce1bc0b/packages/postgresql/src/types/FullTextType.ts#L13 so it's not possible to use setweight or change another regconfig (e.g to_tsvector('english', 'your content') or use another segment tool to preprocess the content.
Here is a code snippet which might be an option.
@Index({ type: 'fulltext' })
@Property({
  type: FullTextType,
  nullable: true,
  onCreate: (book: Book) => `setweight(to_tsvector('english', '${book.title}'),'A') || setweight(to_tsvector('english', '${book.description}'),'B')`,
  onUpdate: (book: Book) => `setweight(to_tsvector('english', '${book.title}'),'A') || setweight(to_tsvector('english', '${book.description}'),'B')`,
})
searchableContent!: string;

@jsprw  Let me know your comments and see if I can help. Thanks,

You can create your own FullTextType if you don't like how it's designed, this is fully under your own control - you can as well override just the columnType while using it. Note that your proposed API wouldn't work, onCreate/onUpdate need to return runtime values, not SQL fragments.

That's right. Have to update AbstractSqlDriver.ts to make the proposed API work.
Do you have any better suggestions for running these raw SQL fragments? Thank you,

As said above, create your own custom type, where you have absolute control over both the value and the SQL fragment.
https://mikro-orm.io/docs/custom-types

You can create your own FullTextType if you don't like how it's designed, this is fully under your own control - you can as well override just the columnType while using it. Note that your proposed API wouldn't work, onCreate/onUpdate need to return runtime values, not SQL fragments.
Thank you. I will look into this.

@jsprw your idea looks much more promising. Thanks for taking the time to do this.


Add Pagination.EntityFrameworkCore.Extensions

This is a library for Pagination on EntityFrameworkCore. Works well with Entity Framework Core as an extension, support both asynchronous and synchronous. It also has many useful features commonly used especially on web development, examples and documentation here (https://github.com/SitholeWB/Pagination.EntityFrameworkCore.Extensions)

@SitholeWB Can you update the formatting to be consistent with the other extensions listed here.


list comprehensions apparently return closed struct elements.

What version of CUE are you using (cue version)?

$ cue version
cue version 0.3.0-alpha1 darwin/amd64

Does this issue reproduce with the latest release?
Yes
What did you do?
I ran this

$ cue export -v testa.cue

Where testa.cue is

import (
  "list"
)

_P : [for i, v in 20*[_] {{pos: i}}]

#R : {
  pos: uint
  name: string
}

#A: [rn=string]: [...#R & {pos: uint, name: rn}] & list.Slice(_P,0,len(#A[rn]))
#A: ben: [{}]

a: #A

What did you expect to see?

{
    "a": {
        "ben": [
            {
                "pos": 0,
                "name": "ben"
            }
        ]
    }
}

What did you see instead?

a.ben.0: field `name` not allowed:
    ./testa.cue:5:26
    ./testa.cue:5:27
    ./testa.cue:8:1
    ./testa.cue:8:6
    ./testa.cue:13:27
    ./testa.cue:15:11

Other considerations
If we avoid using comprehensions in testa.cue:

import (
  "list"
)

_P : [{pos: 0}]

#R : {
  pos: uint
  name: string
}

#A: [rn=string]: [...#R & {pos: uint, name: rn}] & list.Slice(_P,0,len(#A[rn]))

#A: ben: [{}]

a: #A

Then I get the expected output.

This seems correct to me:
#A: ben: [{}]

is a definition, which recursively closes, so it specified that ben must be a list with a closed empty struct. This clashes with the struct that is unified with it elsewhere.

Sorry, but I do not understand your answer.

#A : ben: [{}]

is a definition in both cases: when I get an error and when I do not get it.
If that was the problem, I should get an error in both cases.
In addition, if that was the problem, I assume using

#A: ben: [{...}]

would fix it. However it produces the same behaviors: error in the first case, and non-error in the second.
The only difference between both cases is the comprehension. There is no other difference, and the comprehension is predicated on non-definition field _P
What Am I missing?

This issue has been migrated to https://github.com/cue-lang/cue/issues/488.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.


Feat/27/tee style fn marriage

FYI, after she made the pull request, I integrated those changes and fixed and issue with the reset as well.

I personally think this is good. I believe Nafisa wanted to take a look to double check, so I'll wait on her feedback.

Nafisa and I made some changes recently to handle different login states and media queries, so I think it's best to shelf that for now and open a new pull requests with the combined changes of the 5 of us working on the front end?


I forgot Facebook in the services map

Can this data be generated from protocol instead?
r? @maxtaco @cjb

This was causing the wrong proof type (NONE) to show up in the identify RPCs.

oh noes where did this list come from!!! i was trying so hard to avoid any mention of Twitter outside of proof_support_twitter.  CAn it be fixed?  I'll do a blame on it.

I'd like to root this map out of KB altogether...  Can we do that, or is that a different ticket?

👍  for now

Filed https://keybase.atlassian.net/browse/CORE-3777

b861f8ae66ee68450001bc098f1c2b8a9e65b9c1

👍 Thank you!!!


Mark this repo as deprecated?

Since it's merged into lean4, maybe it's better to mark it as deprecated & add link to src/lake to README?

Can we please do this? It is unhelpful that attempts to find lake documentation end up at this abandoned repo.

One thing that came up in discussion with Mac is that the lake readme is still the primary source of reference documentation on the lake DSL. Of course the lake embedded in lean also has this readme, but it is now even harder to find if you are not already planning to contribute to lake.

We also need to transfer all the issues before we archive the repository.

So the README here should be replaced with a "Please see " prior to archiving.


Some subediting.

Capitalised Mill in text paragraphs.
Put in comments pointing out where double-underscore is used because it is not very clear visually that they are two separate characters.
Avoided the use of code style followed by "s" for plurals, which did not render well.
Changed "&" to "and" in text paragraphs.
Minor grammar fixes e.g. for concord.
Let me know if this is welcome/unwelcome. I don't mind doing it as I read through docs and could do more if wanted. Thanks.

I'd rather wait for merge of #1222, which is almost ready, only release automation is to be done.

Oh, absolutely! Those changes look great. Let's see if any of these are still relevant afterwards. Probably not.

I think so. I've only applied some conversions and replaced some URLs by variables. With a bit of luck we 'll still get a usable diff.

Superseded by #1445.
@aholland I tried to apply most of your edits to the docs. Feel free to review. Thank you!


Server side query to populate list of select2 options

First of all let me say that this is a very helpful plugin!!!
I have one small problem using it in my project though. My implementation requires me to populate the list of options in the select2 dropdown using a server side query as the table is paginated and does not contain all the options that the user can select from. Moreover, the list of options in the select2 dropdown from the server side can be large, so we want to allow a "type at least 3 letters, before the server request is sent", option which is supported by select2 (query option). However, when I passed in this option to select_type_options object, I got an error in the browser saying:

"Option 'query' is not allowed for Select2 when attached to a  element."

Reading the select2 documentation I realized that:

"In order for this function to work Select2 should be attached to a input type='hidden' tag instead of a select."

Is there a way to make this work as an option to the select_type="select2"? Or is there any other way you think I will be able to achieve this requirement using your plugin? I hate to have this plugin rejected for our project just for this problem.

In order to populate the select inputs (or any other yadcf input) you should send the relevant data from your server in yadcf_data_XXX where XXX stands for column number, if you will inspect the network tab of the server side showcase page you will see something like this:
aaData: [["Trident", "Internet Explorer 4.0", "Win 95+", "1/31/2015", "1"],…]
draw: "1"
recordsFiltered: 10
recordsTotal: 57
yadcf_data_0: ["KHTML", "Webkit", "Trident", "Misc", "Other browsers", "Tasman", "Presto", "Gecko"]
yadcf_data_1: ["Nintendo DS browser", "Netscape Browser 8", "All others", "Lynx", "Mozilla 1.6", "Mozilla 1.5",…]
yadcf_data_2: ["N800", "Win 95+ / Mac OS 8.6-9.2", "S60", "KDE 3.5", "Win XP SP2+", "KDE 3.3", "OSX.3", "KDE 3.1",…]
yadcf_data_4: ["134", "0"]

As to the "type at least 3 letters" I would suggest something better, use the filter_delay option just like I do in the showcase

Thank you for the quick response.
The problem with this approach is that the amount of data being transferred from the server as part of the original request is too large. The list in yadcf_data_xxx could be a list of 5000 users from an ldap server. Hence we would like to use the select2 dropdowns query option which sends a query to the server as the user types something to filter on, instead of prepopulating the list with all the users in the system.
Similarly, the filter_delay is useful to delay the filtering action in the table. However, here we are talking about filter the data in the dropdown itself and not the table.
Does that make sense? or have I confused you more? :-)

You got that error ("Option 'query' is not allowed for Select2 when attached to a element.") because you havent used the full version of select2, grab the js here and replace your currently included version, (do the same for css file too) then you can add something like this to your code
	var obj = {};
	obj.query = function (query) {
		if (query.term && query.term.length  > 2) {
			$.ajax({
				url: "select2_example_query?q=" + query.term
			}).done(function (data) {
				query.callback({ results: data.myData });
			});
		}
	};

and tell yadcf to use it, like this select_type_options: obj
you server should eventually return something like this
"{\"myData\":[{\"id\":\"aaa\",\"text\":\"AAA\"},{\"id\":\"bbb\",\"text\":\"BBB\"}]}";

I'm not sure how to "listen" the select event (when selecting something from the returned values.
So in order for me to be able to help you on this one - you should do some reading and when you finish and have some more data for me let me know so I can do the required fixes, basically I need to see a working example of such feature.
Note that

Select2: The query option has been deprecated in favor of a custom data adapter that overrides the query method. Support will be removed for the query option in future versions of Select2.

bottom line is that I need to see a working example...

Unfortunately I cannot share the project I am working on. I will create some sample code for you to look at. Thanks...

Closing this one (will reopen it when a working example  will be available)


Flutter drawer open gesture can't properly be disabled for the drawer and endDrawer separately

I am making an app with a hamburger drawer on the left, but also another drawer on the other side. Everything is running fine, but I want to disable the open gesture by swiping left ONLY for the endDrawer. There is an ugly way of disabling the gesture by setting the drawerEdgeDragWidth to 0, but by doing this, both drawers can't be opened.
It would be really nice to have a proper way to disable the gesture and to have it separate properties to do so, for example by adding a drawerSwipeGestureEnabled and endDrawerSwipeGestureEnabled property in Scaffold to be able to turn them off by setting them to false.

Hi @phoelapyae69
can you please provide your updated  flutter doctor -v
and  a minimal code sample to reproduce the problem?
Thank you

Hi @phoelapyae69
can you please provide your updated flutter doctor -v
and a minimal code sample to reproduce the problem?
Thank you

Here is my flutter doctor:
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale en-US)
    • Flutter version 1.12.13+hotfix.5 at /Users/mylermedia/Downloads/flutter
    • Framework revision 27321ebbad (4 weeks ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/mylermedia/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3, Build version 11C29
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (1 available)
    • SM G975F • R58M15CEYSA • android-arm64 • Android 10 (API 29)

• No issues found!

And here is a code sample, I hope this is enough:
Widget _buildScheduleScreen() {
    //Todo: implement correct pin code update functionality
    return Scaffold(
      key: _scaffoldKey,
      drawer: AppHamburgerDrawer(
        scaffoldKey: _scaffoldKey,
        environmentData: _environmentData,
      ),
      endDrawer: AppFiltersDrawer(
        filters: _getFilters(),
        onApply: _onApplyFilters,
      ),
      backgroundColor: Colors.white,
      appBar: AppBar(
        centerTitle: false,
        leading: AppHamburgerDrawerButton(scaffoldKey: _scaffoldKey),
        backgroundColor: AppColors.colorGrayLight,
        title: AppText(
          text: StringLocalizations.schedule,
          fontSize: 20,
          fontWeight: FontWeights.BOLD,
          color: AppColors.colorRed,
        ),
        actions: <Widget>[
          AppBarFilledButton(
            isOn:
                (_selectedLocations != null && _selectedLocations.length > 0) ||
                    _selectedActivity != StringLocalizations.noSelection,
            text: StringLocalizations.filters,
            onPressed: () {
              _scaffoldKey.currentState.openEndDrawer();
            },
          ),
        ],
      ),
      body: ...,
    );
  }


fix: Consider metrics that were created and completed in the same operation

There was a slight bug in the inference logic that would not emit metrics for a node that was created and completed all within the same operation. This fixes that.

Back-ported to v2.8.1


Upgrade ClickHouse JDBC driver to 0.4.6

Closes #241.

Closes #241.

Thanks @zhicwu , we also did the upgrade in another PR https://github.com/Altinity/clickhouse-sink-connector/pull/240/files

Thanks @subkanthi, looks like it's 0.4.5 in the other PR. I'm closing this one but please do consider to bump to 0.4.6, which fixed critical serialization issue as well as a security issue.


Add command to generate JSON schema of config

Addresses #206 by adding a simple cobra command to use jsonschema to generate a JSON schema of config.Config.
Use it with zep json-schema. If you want the results in a file, try zep json-schema > zep_config_schema.json
This can certainly be enhanced further: jsonschema has many features that might be useful and some might want the resulting JSON pretty-printed.

Thanks for the contribution! I'll review it this afternoon. You can ignore the CI failure!

Closing in favor of merging #240 . Doing so in order to run privileged tests.


Document API with JSDoc

There are a lot of (undocumented) comments in https://github.com/electron/fiddle-core/blob/main/etc/fiddle-core.api.md, we should add JSDoc strings to fully document the API and clear those out.

Working on it in following PR
https://github.com/electron/fiddle-core/pull/82

Opened a PR to address this issue :)

@dsanders11  can i work on this ?


Add support for specifying a custom debug signing certificate

Task/Issue URL: https://app.asana.com/0/1202552961248957/1207182540886158/f
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

#4723  👈
develop

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @CDRussell and the rest of your teammates on  Graphite


docs(analytics): constrain pagination only to limit query parameter

🧭 What and Why
🎟 JIRA Ticket: OPTIM-1314
Changes included:
Update documents to reflect changes in the API brought by https://github.com/algolia/go/pull/16694

Remove limitation on offset + limit combined limit and update documentation to reflect the changes

🧪 Test

can I go ahead and merge?

Thanks @shortcuts, yes you can


JLCPCB Rotation Offset not working

I have tried JLCPCB Rotation Offset on a component that is the wrong way around, and the output is the same, whatever I do. Any ideas?
Same with JLCPCB Position Offset, no effect at all.

OK the one installed by KiCad is version 1.2.0, I'll work out how to install from here, sorry.


GHC segfault/bus error on aarch64

The derivation for ghc821Binary mentions here that GHC segfaults on aarch64. Seems accurate; simple packages build alright and the resulting binaries seem to work, but larger packages tend to fail with a segfault or a bus error. For example, hello builds just fine:
nix-build -E "with import ./default.nix {}; haskell.packages.ghc821Binary.hello"

But building hscolour consistently segfaults:
nix-build -E "with import ./default.nix {}; haskell.packages.ghc821Binary.hscolour"

The failure is non-deterministic. If you're patient, something like this will eventually succeed!
until $(nix-build -E "with import ./default.nix {}; haskell.packages.ghc821Binary.hscolour"); do echo "retrying..."; sleep 5; done

I'm using an Nvidia Jetson TX2 with Nvidia's Ubuntu-based distro.
nvidia@tegra-ubuntu:~$ uname -a
Linux tegra-ubuntu 4.4.38-tegra #1 SMP PREEMPT Fri Jul 28 09:55:22 PDT 2017 aarch64 aarch64 aarch64 GNU/Linux

I wasn't able to find an issue in the GHC Trac for this (although it's likely I missed something) so I wonder if it's Nix-specific? @bgamari @Ericson2314 @dtzWill I'm curious if you've encountered this.
Things I'd like to try; maybe GHCHQ has fixed this?

[x] Upstream's binary GHC 8.2.2: same behavior as upstream's binary GHC 8.2.1.
[x] Nix's GHC 8.2.2 bootstrapped with upstream's binary GHC 8.2.2: can't build with broken 8.2.2.
[x] Upstream's binary GHC 8.4.1: same behavior as upstream's binary GHC 8.2.2.
[x] Nix's GHC 8.4.1 bootstrapped with upstream's binary GHC 8.4.1: can't build with broken 8.4.1
[x] Upstream's binary GHC 8.4.2: also segfaults.
[x] Nix's GHC 8.4.2 bootstrapped with upstream's binary GHC 8.4.2: can't build with broken 8.4.2

This has been fixed upstream.


SAA-781 changes to the available deallocation reasons on the back of user feedback.

Codecov Report
Patch coverage: 100.00% and project coverage change: -0.01 :warning:

Comparison is base (7507fe9) 85.31% compared to head (3e11f0f) 85.31%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #366      +/-   ##
============================================
- Coverage     85.31%   85.31%   -0.01%
  Complexity     1902     1902
============================================
  Files           264      264
  Lines          7302     7301       -1
  Branches        375      375
============================================
- Hits           6230     6229       -1
  Misses          875      875
  Partials        197      197

Impacted Files
Coverage Δ

.../hmppsactivitiesmanagementapi/entity/Allocation.kt
96.00% <100.00%> (-0.04%)
:arrow_down:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.