When I use UUID for primary key , it will cause overflow error, Python int too large to convert to SQLite INTEGER

In one of my model objects, I use UUID for PK.
When I want to get all the tags belong to each object, it will cause this overflow error.
I can print out all the tags in Tag model, but I can not get the tags in each Model object.
Then I change back to Django's default pk, tags work again.
I assume that's the UUID cause this problem, any thoughts about this problem?
Thank you.

A common use case of a non-integer primary key, is UUID primary key. django-taggit provides a base class GenericUUIDTaggedItemBase ready to use with models using an UUID primary key:
from django.db import models
from django.utils.translation import ugettext_lazy as _

from taggit.managers import TaggableManager
from taggit.models import GenericUUIDTaggedItemBase, TaggedItemBase

class UUIDTaggedItem(GenericUUIDTaggedItemBase, TaggedItemBase):
    # If you only inherit GenericUUIDTaggedItemBase, you need to define
    # a tag field. e.g.
    # tag = models.ForeignKey(Tag, related_name="uuid_tagged_items", on_delete=models.CASCADE)

    class Meta:
        verbose_name = _("Tag")
        verbose_name_plural = _("Tags")

class Food(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
    # ... fields here

    tags = TaggableManager(through=UUIDTaggedItem)

This should work for you

@syk1k Could you explain a little bit why this is necessary? I just ran into the same problem, was using UUID for an ID, then used your example above, but have difficulties understanding why it is necessary. I am new to Django and would love to gain a better understanding of whats happening here.

@syk1k Could you explain a little bit why this is necessary? I just ran into the same problem, was using UUID for an ID, then used your example above, but have difficulties understanding why it is necessary. I am new to Django and would love to gain a better understanding of whats happening here.

@jbfriedrich This is because, by default django-taggit assume that models's Ids are integers.
If you want to UUID you need to let the Tag manager to know that your Ids are not Integers but UUID.
I don't if this is enough

@jbfriedrich This is because, by default django-taggit assume that models's Ids are integers.
If you want to UUID you need to let the Tag manager to know that your Ids are not Integers but UUID.
I don't if this is enough

Thanks @syk1k. Yes, that part I understand, I do not understand though why it is necessary to create the UUIDTaggedItem class and reference that in the TaggableManager:
class UUIDTaggedItem(GenericUUIDTaggedItemBase, TaggedItemBase):
    # If you only inherit GenericUUIDTaggedItemBase, you need to define
    # a tag field. e.g.
    # tag = models.ForeignKey(Tag, related_name="uuid_tagged_items", on_delete=models.CASCADE)

    class Meta:
        verbose_name = _("Tag")
        verbose_name_plural = _("Tags")

I guess I need to go through the code of TaggableManager and try to understand how that works in detail. Thank you!

Thanks @syk1k. Yes, that part I understand, I do not understand though why it is necessary to create the UUIDTaggedItem class and reference that in the TaggableManager:
class UUIDTaggedItem(GenericUUIDTaggedItemBase, TaggedItemBase):
    # If you only inherit GenericUUIDTaggedItemBase, you need to define
    # a tag field. e.g.
    # tag = models.ForeignKey(Tag, related_name="uuid_tagged_items", on_delete=models.CASCADE)

    class Meta:
        verbose_name = _("Tag")
        verbose_name_plural = _("Tags")

I guess I need to go through the code of TaggableManager and try to understand how that works in detail. Thank you!

Because it's the only way Tags will be created for you with UUID.
Just go through the docs and try to check the code maybe it will help.
You're welcome

Because it's the only way Tags will be created for you with UUID.
Just go through the docs and try to check the code maybe it will help.
You're welcome

@jbfriedrich basically the way that tags work by default is through an "integer id, content type" pair of data (since by default primary keys are integers). UUIDs require more space in general, so you need to override the through table to instead use "uuid id, content type" pairs, so that your DB has space to save the ID.
this article on generic foreign keys (the default backing for linking tags) might help you out here.


Carousel does not work on all touch based browsers

I have found that the carousel item href links don't seem to work on Safari on iOS and Chrome on Android (surprisingly they do work on Chrome for iOS)
Looking at your Javascript, it seems your dragged variable may be causing a problem on these mobile web browser but I am not certain. I would much appriciate any information on how to solve this problem

Anyone with a solution to this problem?

Finally fixed in b731cf0. Sorry about the slow response


Consolidate parameters of onTurnPage even handler

As event handlers usually are, modify onTurnPage event handler to have only one parameter, and consolidate the existing parameters into it.

implementation done
test done
created pull request #2


Upgrade Cypress to 7.6.0 version

Description
Changes proposed in this pull request:

Upgrade Cypress to 7.6.0 version
Upgrade cypress-file-upload to 5.0.8 version

Related issue(s)

/test pre-busola-integration-test-k3s

/test all


fix: add missing DAPI_ENVOY_VERSION to .env.evonet

fixes #34

@cloudwheels it's there already. Please take a look https://github.com/dashevo/mn-bootstrap/pull/35/files#diff-9859f4abf95ca3df0796087556b871d3R7

Yes, sorry, was fixed before I PR'd - have already close #34


better support for generation and installation of associated files

Problem
i was trying to create an idiomatic template that uses clap_complete within build.rs in order to generate and install shell completions, when i realized it is basically impossible.
because cargo install only installs binaries, you have to use a Makefile, which is fine, but there's a problem:

build.rs is only supposed to create files under $OUT_DIR
the value of $OUT_DIR is not easily accessible to outside programs
the makefile needs to know where the files are in order to install them

Proposed Solution

add a mechanism for the main crate (i.e. the one the user said to build, not any of its dependancies) built to produce outputs in $CARGO_TARGET_DIR (or a fixed subdir thereof, such as target/release/aux)
(low priority) add a cargo::install instruction that allows directing cargo install to install files relative to a configured prefix (eg. .local, /usr, or /usr/local).  using cargo::install=$OUT_DIR/CMDNAME.bash=share/bash/bash-completions/completions/CMDNAME would install the completion in the specified completion dir. (see #2729)

Notes
No response

Going to close in favor of #2729.  While there might be differences in solution, the root problem is the same and it would be good to focus the conversation on how to solve the problem in one place with one coherent solution, regardless of what is initially mentioned in the original issue.
If there is a reason for us to keep this open separately, let us know!

@epage that issue is almost completely orthogonal.  if i had decided to just not mention cargo install, there would be no overlap.
my main issue is with external tools being unable to easily access files created by build scripts.

Made an edit to the issue to try to clarify that.  Is that right?
If I'm understanding the main issue, it is one of the use cases brought up in #9661, see  https://github.com/rust-lang/cargo/issues/9661#issuecomment-1769481293 for the summary of the discussion, particularly "Staging files for the --out-dir so they are next to the cargo-built final artifacts".  Is that right?

yes, precisely.
i think producing the files in OUT_DIR and having cargo conditionally copy them over is the best solution, it maintains isolation, which is quite important for edge cases like hybrid lib+bin crates that also have a build script that produces shell completions.

Copying over from #9661 as this issue is apparently a better fit.
I have the same issue for man pages and shell completion, and my use case is not related to cargo install (as I have essentially given up on that for anything except simple standalone programs, and even then you get a subpar experience without completion and documentation).
This is what I currently do:

build.rs: https://github.com/VorpalBlade/paketkoll/blob/f2e5649b32e19b1684d3dd98328c79e833689982/crates/paketkoll/build.rs
Arch Linux PKGBUILD: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=paketkoll&id=71a58dd8cac185259a34d96e4db1531e82dd08af

This is quite hacky on the PKGBUILD side:

In prepare() I need to clean out the build dir: rm -rf target/release/build/${pkgname}-* in case we are not running on a clean build tree (as might happen when you develop the packaging)
Later on in the package() phase (the bash functions are written in the order they are called for clarity) I locate the build dir using $(ls -d target/release/build/${pkgname}-*/out) (because the bash options are set a bit screwy in PKGBUILDs I needed that ls workaround to expand properly).

This breaks down if there are multiple out dirs as happens when you are developing and changing the package. During development it can look like this:
❯ find target/debug/ -name paketkoll.1 | wc -l
26

(A better approach is sorely needed. Since I soon have to learn bazel anyway for work, maybe switching away from cargo will be the solution for my open source projects too.

Some kind of predictable out dir, staging dir, or specified artifact destination dir would be interesting to cargo-deb.

it needs to work with cargo build, not cargo install. Packages need to be built without modifying the system.

even better if this directory was discoverable via cargo metadata without running the build, because cargo-deb has an option to package already-built projects without running the build again.

man pages and bash_completion are popular use-cases, but in cargo-deb I'd like to support arbitrary data files. These could be icons, precomputed data files, config files, exported C header files, changelogs, aggregated licensing information, optimized game assets. Users specify glob patterns of files to take and destination dirs to install them to.

The cargo-install part was crossed out for its own issue.
Also, we wouldn't specialize this for specific file types.
Good call on mentioning cargo metadata. We need to consider user access as part of the design.


Include an option on plot method to plot results only on named selections, so the rest of the structures is not shown

Description of the feature
Currently, when user makes a plot on a named selection, the rest of the structure is kept in grey. Looking at plot method, plot(mesh=True, constructed_geometries=True, loads=True, boundary_conditions=True), mesh can only be True or False. There is another option, which is using plot_contour, but here again the obtained figure depends on the support. There is a workaound using pyvista options, but I would suggest including a simple option that allows user to plot only on a specific named selection, something like:
bar1_tot_displacement = simulation.displacement(named_selections=["BAR_1"], norm=True)
bar1_tot_displacement.plot(only_on_ns=True)

Steps for implementing the feature
No response
Useful links and references
No response

There is a workaound using pyvista options

Could you share perhaps the workaround?

Please see post in DevForum. I would recommend last option given in comments.
https://discuss.ansys.com/discussion/2538/how-can-i-plot-in-pydpf-post-results-on-a-mesh-part-linked-to-a-named-selection#latest


Remove cluster-only stuff for new serverless version

This PR removes all but configuration stuff so that we can carefully implement (i.e., with proper testing): annotation API, banyan-polars, and session-related functions.

@calebwin Can res/pf_dispatch_table.toml/pf_dispatch_table.toml be removed here?

@calebwin Can res/pf_dispatch_table.toml/pf_dispatch_table.toml be removed here?

Yes! No PF dispatch table or PFs required - the only function to implement for each data type is a convert_partition_type to convert between different partition types (e.g., Blocked to Grouped or None to Blocked etc.)


Increment version for springappdiscovery releases

Increment package version after release of Azure.ResourceManager.SpringAppDiscovery

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.ResourceManager.SpringAppDiscovery


Add support for 02-02-2019 of service

Which service(blob, file, queue, table) does this issue concern?
All of them
Which version of the Azurite was used?
Feature request for the next version
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
https://github.com/Azure/azure-sdk-for-net/issues/7208
What's the Node.js version?
What problem was encountered?
No support for 02-02-2019
Steps to reproduce the issue?
Feature request
Have you found a mitigation/solution?
no

Request raised in .NET repo https://github.com/Azure/azure-sdk-for-net/issues/7208

Hi Ashish, it's in the GA scope of Azurite. Should happen soon.

2019-02-02 supported by 3.3.0-preview. Will close this issue.


Download Now attempts .tar file instead of RPM with code-insiders

VSCode Version: code-insiders-1.20.0-1516692255.el7.x86_64
OS Version:  4.14.14-300.fc27.x86_64 #1 SMP Fri Jan 19 13:19:54 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Steps to Reproduce:

Click "Download Now" from Settings
Formerly navigated to web page with RPM download button. Now attempts to download .tar file which I do not want.

Does this issue occur when all extensions are disabled?: N/A

@mjbvz @alexandrudima @Tyriar  There is no rational indication that #42190 has anything to do with this issue.  Until about 15 days ago, the "Download Now" selection from the settings button of the code-insiders UI opened the page at https://code.visualstudio.com/insiders/ from which an RPM of code-insiders could be downloaded.  Now it navigates a browser to a forced download of a tar file which is not what is desired on a Fedora 26 laptop.

it downloads fine for me when clicking that button on the download page.  The failure is that clicking "Downlooad Now" in this first screenshot

goes directly to this tar download in the next screenshot..  Fedora 26 with Chrome Stable

Hope this helps.

@jlmagee just pushed the fix, thanks for the report and for bearing with me :smiley:


Package installation error on livewire 3@beta

Problem 1
- wire-elements/modal[0.1.0, ..., 0.1.7, 1.0.0, ..., 1.0.8] require livewire/livewire ^2.0 -> found livewire/livewire[v2.0.0, ..., v2.12.3] but it conflicts with your root composer.json require (^3.0@beta).

It'd be a bit more work than just changing that I'm afraid!
The way that emit/listener used to work is no more, its now a dispatch/PHP 8.1 attribute.

There are still a few v3 bugs besides the changes that need to be fixed. I've been submitting PRs and waiting for these to be merged.

just a few bugs!  can't help but feel letting more people have alpha copies would have prevented this

Added a note about this to inform users https://github.com/wire-elements/modal/discussions/329


Add JFrog webinar recording and AWS "Howdy Partner" webinar

This PR adds a gated form for the JFrog webinar. The user will be emailed a link to the recording (an unlisted youtube video). This behavior is a placeholder until we rework the UX of on-demand videos on our website.
This PR also adds the external event with AWS on Twitch.
Fixes: https://github.com/pulumi/home/issues/889

@cnunciato good catch. I added the flag to block it from the index. Thanks!


[firebase_storage]: Storage Emulator not working on Windows

Is there an existing issue for this?

[X] I have searched the existing issues.

Which plugins are affected?
Storage
Which platforms are affected?
Windows
Description
The firebase storage emulator does not seem to work on windows. On android everything seems to work fine. The Future FirebaseStorage.instance.useStorageEmulator() will never finish. You also won't get any exception or warning in the debug console.
I even tried to set some different ports but i still don't had any success.
Reproducing the issue
replace the main() function in your main.dart with this code and change the FirebaseOptions according to your app.
You will notice that the Future FirebaseStorage.instance.useStorageEmulator() will never finish.
void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  const FirebaseOptions options = FirebaseOptions(
      apiKey: "YOUR_API_KEY",
      appId: "YOUR_APP_ID",
      messagingSenderId: "YOUR_MESSAGING_SENDER_ID",
      projectId: "YOUR_PROJECT_ID",
      storageBucket: "YOUR_STORAGE_BUCKET");

  await Firebase.initializeApp(options: options);

  if (kDebugMode) {
    try {
      await FirebaseStorage.instance.useStorageEmulator('localhost', 9199);
    } catch (e) {
      print(e);
    }
  }

  runApp(const ProviderScope(child: MyApp()));
}

Firebase Core version
3.3.0
Flutter Version
3.22.2
Relevant Log Output
No response
Flutter dependencies

Expand Flutter dependencies snippet

Dart SDK 3.4.3
Flutter SDK 3.22.2
riverpod_testapp 1.0.0+1

dependencies:
- cupertino_icons 1.0.8
- firebase_core 3.3.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_storage 12.1.2 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_riverpod 2.5.1 [collection flutter meta riverpod state_notifier]

dev dependencies:
- flutter_lints 3.0.2 [lints]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing async boolean_selector characters collection leak_tracker leak_tracker_testing material_color_utilities meta source_span stream_channel string_scanner term_glyph vm_service]

transitive dependencies:
- _flutterfire_internals 1.3.40 [collection firebase_core firebase_core_platform_interface flutter meta]
- async 2.11.0 [collection meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- characters 1.3.0
- clock 1.1.1
- collection 1.18.0
- fake_async 1.3.1 [clock collection]
- firebase_core_platform_interface 5.2.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.17.4 [firebase_core_platform_interface flutter flutter_web_plugins meta web]
- firebase_storage_platform_interface 5.1.27 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_storage_web 3.9.12 [_flutterfire_internals async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http meta web]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math]
- http 1.2.2 [async http_parser meta web]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- leak_tracker 10.0.4 [clock collection meta path vm_service]
- leak_tracker_flutter_testing 3.0.3 [flutter leak_tracker leak_tracker_testing matcher meta]
- leak_tracker_testing 3.0.1 [leak_tracker matcher meta]
- lints 3.0.0
- matcher 0.12.16+1 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.8.0 [collection]
- meta 1.12.0
- path 1.9.0
- plugin_platform_interface 2.1.8 [meta]
- riverpod 2.5.1 [collection meta stack_trace state_notifier]
- sky_engine 0.0.99
- source_span 1.10.0 [collection path term_glyph]
- stack_trace 1.11.1 [path]
- state_notifier 1.0.0 [meta]
- stream_channel 2.1.2 [async]
- string_scanner 1.2.0 [source_span]
- term_glyph 1.2.1
- test_api 0.7.0 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- typed_data 1.3.2 [collection]
- vector_math 2.1.4
- vm_service 14.2.1
- web 0.5.1

Additional context and comments
I think this is not implemented for windows right now. But than there should be thrown an exception.

Hello @Sunclicker, thanks for reporting. Windows does not support the emulator currently. We are still missing some logs to explain that.


Source section refinements

What do these changes do?

Moved SDKs and Cloud Apps inside Event Streams
Added landing pages and refined content
Added redirects

Type of documentation

[ ] New documentation
[x] Documentation update
[ ] Hotfix

Closing this PR to avoid merge conflicts with the recently edited files. Changes have been ported to this PR


It looks like the maximum expansions counter is not reset between macros.

Hi. It looks like the maximum expansions counter is not reset between macros.
Please try the following code (uncomment to see what I mean):
$$
\def\0{}\def\1{}\def\2{}\def\3{}\def\4{}
\def\5{}\def\6{}\def\7{}\def\8{}\def\9{}
\newcommand\if[4]{\@ifnextchar#1{
    \@ifnextchar#1{#4}{#4\ \n{#2}{#4}}\1
}{}#3}
\newcommand\n[2]{
    \if\9\8#1#2 \if\8\7#1#2 \if\7\6#1#2
    \if\6\5#1#2 \if\5\4#1#2 \if\4\3#1#2
    \if\3\2#1#2 \if\2\1#1#2 \if\1\0#1#2
}
\begin{array}{c}
    \sf \n{\9}{I} \\
    \sf \n{\9}{I} \\
    \sf \n{\9}{I} \\
%    \sf \n{\6}{I} \\ % "too many expansions" :-S
\end{array}
$$

I'm using Katex through StackEdit 5.14.5, so I guess the Katex version is 0.10.2:

https://github.com/benweet/stackedit/blob/v5.14.0/package.json#L41

I'm sorry I can't describe things better.
Not sure that it's a bug though...

This is the intended behavior. The goal is to prevent code from sucking up a bunch of CPU and thereby bringing down the page. The expansion limit is like a time limit on an expression. You can always disable it, if you trust your LaTeX input.


Error building YouTubePlayerSample for iOS

I assume this has to do with Cocoapods but can't find documentation to get this restore. I'm using latest XamarinStudio and/or latest VisualStudio Mac on a fresh clone.
I also assume there is a process similar to git submodule installation for cocoapods but don't know where to begin with that.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.ObjCBinding.Common.targets: Error:   Bundle Resource 'Assets.bundle/Assets/YTPlayerView-iframe-player.html' not found on disk (should be at '/Users/[USER]/src/XamarinComponents/XPlat/YouTube.Player/ios/externals/Pods/youtube-ios-player-helper/youtube-ios-player-helper/Assets.bundle/Assets/YTPlayerView-iframe-player.html') (YouTube.Player.iOS)

@danielcrenna Have you tried this lately.  Additionally you have to use the build.cake to download and build the external deps before you can build the source and samples.
Also we have now published this on nuget -> https://www.nuget.org/packages?q=+Xamarin.YouTube.Player


[EventGrid] Light copy editing of README.md

Fixes #15304

Pointing at the src folder instead of the root for the source code seemed to be what some other packages did, but I can understand the argument about what we currently have.
I wavered a little about the "a HTTP" vs "an HTTP", from some light reading, it seemed like it depending on how someone says "HTTP" (since a vs an is about a relation to a vowel sound).
Your call here, @JoshLove-msft, I figured I'd just save you some time and open a PR to fix the issues from #15304


I meet some problems:
(1)  the event in get_work is always None (I add a child or delete a child), but why?
(2) print "123" will not be executed since the whole procedure is killed after ChildWatch(), without any error msg or log, why?
And I am wondering the work mechanism of ChildrenWatch and DataWatch.
proc1: register ChildrenWatch with an action function.
proc2: add child to the path.
then proc1 should always run , right? otherwise how does zookeeper server notify the client?

Hi,
I may be suspecting that a ConnectionClosedError is raised but it is ignored since get_children() is wrapped. Have you got any logs on Zookeeper's side?


FileNotFoundError: [Errno 2] No such file or directory: '/kubeless/test.py'

BUG:
The same issue as #860, I tested using the same zip file  uploaded by @ps2420, and still got the error of not found error (my architecture is practically the same as the one described by op)
error log :
➜ kubectl logs test-7979ff6ddc-4vw5t -c test --previous
Traceback (most recent call last):
  File "/kubeless.py", line 12, in <module>
    '/kubeless/%s.py' % os.getenv('MOD_NAME'))
  File "/opt/bitnami/python/lib/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 780, in get_code
  File "/opt/bitnami/python/lib/python3.6/imp.py", line 158, in get_data
    return super().get_data(path)
  File "<frozen importlib._bootstrap_external>", line 832, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/kubeless/test.py'

command I used to deploy :
zip -9 -q -r test.zip test/.

kubeless function deploy test --from-file test.zip \
                             --runtime python3.6 \
                             --handler test.hello \

Environment:

Kubernetes version (use kubectl version):

client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.0", GitCommit:"ddf47ac13c1a9483ea035a79cd7c10005ff21a6d", GitTreeState:"clean", BuildDate:"2018-12-04T07:48:45Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.3", GitCommit:"435f92c719f279a3a67808c80521ea17d5715c66", GitTreeState:"clean", BuildDate:"2018-11-26T12:46:57Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}

Kubeless version (use kubeless version): Kubeless version: v1.0.0

I'm aware that a fix should have been pushed in #863, and I'm sorry if it's redundant, but couldn't get it to work on my end (I'm probably missing something)
Thanks
bendidi

Hi @bendidi,
The issue is still the same than in #860, kubeless doesn't support to use a parent folder. You need to include only the files of the function. Also note that for the handler, you need to specify the name of the Python file that has your function and the function name:
cd test/
zip test.zip *.py
kubeless function deploy test --from-file test.zip \
                             --runtime python3.6 \
                             --handler test.hello

yes , thank you , that works :)


about number epoch

What is the appropriate epoch setting?

Hello, I think epoch is meaningless. Leave it as 1


Bug: Selects after a browser-default one is not displayed

If there are multiple select in a page, all selects (without browser-default) after one with the class  browser-default are not displayed.
It's not a Materializecss bug because without the bridge, it's okay.
A gist with the bug: (This gist is with 0.27 version, but the bug is still here in the 0.29 version)
https://gist.run/?id=38262dd6d1281fa14496066128519a11
The select value 3 is missing.
A code pen directly with Materializecss:
https://codepen.io/anon/pen/owVePr
All is okay except the label for the second select.
The callstack (with version 0.29):
select.js:254 Uncaught TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'. at MdSelect.observeVisibleDropdownContent (select.js:254) at MdSelect.createMaterialSelect (select.js:216) at select.js:116 at TaskQueue.flushTaskQueue (aurelia-task-queue.js:117) at aurelia-task-queue.js:77 at handleFlushTimer (aurelia-task-queue.js:30)
I will try to fix this issue myself and publish a PR soon.

I really think this is happening in the browser-default select since this is (rather should not be) not even touched by Materialize. But of course the bridge does its thing..
Frankly, it doesn't make sense to use md-select with browser-default since the browser-default select is nothing but a native select.
So I guess the best fix for that would be for md-select to ignore it and do nothing at all. Or throw a warning. What do you think?

You are right, it's useless to put the both in the same time...
But it should be nice to add a test in the bridge to check if there is the browser-default class, because this css class can be conditional, and we can't have a custom attribute conditonal with aurelia (or I don't know how do this). For sure, the class must be set before the attach.

Good point! 👍

I will provide a PR soon.


chore: add feature all to fix rust ls

@tjjfvi is this preferable to specifying "rust-analyzer.cargo.features": ["all"] in the .vscode/settings.json? I suppose this solves the problem for non-VSC devs, so the answer is likely yes. If so, please remove the setting from .vscode/settings.json.

@harrysolovay It is not an alternative to that – the setting of ["all"] does not work without a corresponding feature all (at least on my machine)


[Bug] Consumable cooldown not affected by skills/signals - Web

Describe the bug
Including the Consumable Specialist skill or the November Foxtrot signal has no impact on the reload time of consumables in the web-based version. The desktop version could not be tested because of #248.
Expected behavior
I would expect to see the reload time for consumable items reduced after selecting any of the aforementioned options.

Fixed in the next update


Run Pylance in untrusted workspace

Refs: #17254

[ ] anyOS @IanMatthewHuff
[x] anyOS @bpasero
[x] anyOS @roblourens

Complexity: 2
Authors: @karrtikr
Create Issue

Requirements

Install python extension from here: https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix

Verification

Ensure that you have python.languageServer set to Default or Pylance.
Open a python file from an untrusted location.
You should be able to get hover, same file completion, completion for builtins like print

Make sure you see this:

and a language status item:

with appropriate wording and links.
sample file:
import unittest

class TestStringMethods(unittest.TestCase):

    def test_upper(self):
        self.assertEqual('foo'.upper(), 'FOO')

    def test_isupper(self):
        self.assertTrue('FOO'.isupper())
        self.assertFalse('Foo'.isupper())

    def test_split(self):
        s = 'hello world'
        self.assertEqual(s.split(), ['hello', 'world'])
        with self.assertRaises(TypeError):
            s.split(2)

if __name__ == '__main__':
    unittest.main()

You should also see this in the logs:

Wonderful testplan item 👏

All looks great to me. Only issue I'm filing is on the hover areas for that language status item (which is just a general UI issue not related to this change). I can't easily get to that "Learn more" link directly since the language mode selector steals the hover when I try to move to it.


chore: test PR to do nothing

(cc @pranav-new-relic @NSSPKrishna)

created this PR to do nothing. Closing the PR

merging this PR as it includes nothing useful, just testing a commit


tcl: 8.6.13 -> 8.6.15

This PR upgrades Tcl and Tk 8.6 from 8.6.13 to the latest release (8.6.15).

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

This is a mass rebuild, please retarget to staging. See https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#branch-conventions

this update fixes compile errors on darwin when built with the new clang compiler. can it get switched to staging and merged? thx.


F&F >"Add New" button color change.

Wrong color. Should be the same a Buy button.

https://xd.adobe.com/view/e8259038-6a8a-4b4f-b88f-780e311438a5-bd76/
this is how is is given in UX


Added in-process embedding models

all-minilm-l6-v2
all-minilm-l6-v2-q
e5-small-v2
e5-small-v2-q

The idea is to give users an option to embed documents/texts in the same Java process without any external dependencies.
ONNX Runtime is used to run models inside JVM.
Each model resides in it's own maven module (inside the jar).

If I got it right, we're essentially adding these models to this repository?
If we're going to do this for more models in the future, might it be better to download the models during the build/release process?
Another question I wonder about, if these models are a bit heaver: is sonatype fine with having libs wrap things that aren't really jars? And should we or could we release these on a slower cadence so as not to have a lot of bigger duplicated jars?

If I got it right, we're essentially adding these models to this repository?

Yes, I am looking into git LFS for this, it seems doable on github.

If we're going to do this for more models in the future, might it be better to download the models during the build/release process?

I was considering downloading during build but I am not sure it is a good idea to rely on some external service where people can modify/delete models and that can be down at some point.

Another question I wonder about, if these models are a bit heaver: is sonatype fine with having libs wrap things that aren't really jars?

As far as I read sonatype does not have a limit on the file size.

And should we or could we release these on a slower cadence so as not to have a lot of bigger duplicated jars?

Not sure I understand this question, could you please elaborate?

In an ideal world, there would be a way to download said models from eg hugging face when projects that depend on this are building their code, but I'm not sure how possible that is.

Right now models are downloaded from maven during build time (models are inside optional modules like langchain4j-embeddings-e5-small-v2). This is basically the same, but we have control over models and make sure they will not change because someone decided to update their model on hugging face.

And should we or could we release these on a slower cadence so as not to have a lot of bigger duplicated jars?

Not sure I understand this question, could you please elaborate?

We will probably be releasing this library pretty often in the near future, I was wondering if it will be wise to re-release all the models each time if they don't change, but I'm probably overthinking this, so nevermind.

If I got it right, we're essentially adding these models to this repository?
Yes, I am looking into git LFS for this, it seems doable on github.

How big are the models, typically? if it's a few hundreds of kbs to maybe a few megabytes, it's probably fine to add them to git directly (as long as the models don't change much :))
Otherwise: there is the following warning in the build:
 Warning:  Checksum validation failed, no checksums available from central for https://repo.maven.apache.org/maven2/com/microsoft/onnxruntime/onnxruntime/1.15.1/onnxruntime-1.15.1.jar

Is this to be expected?

Would be cool to not re-release them every time. Yesterday it was a pain to
release 4 of them, sonatype was constantly timeouting. On the other side it
would be nice to have the same version consistent over all the modules...
They are 20-100MB now each, but can be bigger. It is not clear yet if users
will find it practical to import even bigger models...probably not.
On Sat, 22 Jul 2023, 20:12 Julien Perrochet, @.***>
wrote:

And should we or could we release these on a slower cadence so as not to
have a lot of bigger duplicated jars?
Not sure I understand this question, could you please elaborate?
We will probably be releasing this library pretty often in the near
future, I was wondering if it will be wise to re-release all the models
each time if they don't change, but I'm probably overthinking this, so
nevermind.
If I got it right, we're essentially adding these models to this
repository?
Yes, I am looking into git LFS for this, it seems doable on github.
How big are the models, typically? if it's a few hundreds of kbs to maybe
a few megabytes, it's probably fine to add them to git directly (as long as
the models don't change much :))
Otherwise: there is the following warning in the build:
Warning:  Checksum validation failed, no checksums available from central for https://repo.maven.apache.org/maven2/com/microsoft/onnxruntime/onnxruntime/1.15.1/onnxruntime-1.15.1.jar
Is this to be expected?
—
Reply to this email directly, view it on GitHub
https://github.com/langchain4j/langchain4j/pull/41#issuecomment-1646642510,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7RGGZOBOR7XPTXYRO3WFSDXRQJZPANCNFSM6AAAAAA2S5BAHY
.
You are receiving this because your review was requested.Message ID:
@.***>

I have added models ( .onnx files ) into LFS, but it seems that they are not found during the build. Tests in this branch are failing and it seems that .onnx files cannot be found or loaded (maybe due to those links from git to git LFS)... I did not look deep into it yet. Regarding onnxruntime warning, not sure what's the problem. Does not looks critical. This lib is used to run the models, so we can't drop it or find an alternative...

@Shastick I had to add this part in order to make it work:
      - name: Pull LFS files
        run: git lfs pull

Please feel free to change/improve.

@Shastick it seems that free LFS traffic quota (1GB/month) is used every time the build is running and it downloads all .onnx models. Can we make it run those tests only if there were changes in tose specific modules?

@langchain4j adding such rules is possible albeit can become annoying. Let's try like it is now to see how we can keep things simple.
If you want to add a bigger collection of models available in-process there is also the option of having them in a separate repository.

@Shastick good idea regarding separate repository. These models will rarely change, so it probably makes no sense to keep them in the main repo.

@Shastick BTW I have removed "git lfs pull" and disabled tests cause we were out of free quota...

Do you know what ate up the quotas? LFS or the test minutes?

@Shastick I guess .onnx files from LFS. It looks like they were downloaded each time the build was running..


Version v0.4.3

Description
Replaced #133. Closes #114.
Checklist

[ ] Targeted PR against correct branch.
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Wrote unit tests.
[ ] Run flutter format.
[ ] Updated the documentation.
[ ] Added an entry to the CHANGELOG.md file.
[ ] Re-reviewed Files changed in the Github PR explorer.

Fix the checks though~


Server not able to get address raising no attribute 'cfg_addr'

My setup:
Gunicorn + gevent_socketio + django
Started the server by:
gunicorn --env DJANGO_SETTINGS_MODULE=linbang.settings -c gunicorn_config.py --error-logfile -  linbang.wsgi:application

In gunicorn_config.py:
bind = '<IP_ADDRESS>:8000'
max_requests = 10000
worker_class = 'socketio.sgunicorn.GeventSocketIOWorker'
workers = 5

def post_fork(server, worker):
import pymysql
pymysql.install_as_MySQLdb()
 [2014-08-29 11:19:13 +0800] [79204] [ERROR] Exception in worker process:
  Traceback (most recent call last):
    File "/Users/lishuo/envs/linbang/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
    worker.init_process()
  File "/Users/lishuo/envs/linbang/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 193, in init_process
    super(GeventWorker, self).init_process()
  File "/Users/lishuo/envs/linbang/lib/python2.7/site-packages/gunicorn/workers/base.py", line 120, in init_process
    self.run()
  File "/Users/lishuo/envs/linbang/lib/python2.7/site-packages/socketio/sgunicorn.py", line 80, in run
    **ssl_args
  File "/Users/lishuo/envs/linbang/lib/python2.7/site-packages/socketio/server.py", line 72, in __init__
    address = args[0].cfg_addr[0]
AttributeError: 'socket' object has no attribute 'cfg_addr'
Traceback (most recent call last):
  File "/Users/lishuo/envs/linbang/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
    worker.init_process()
  File "/Users/lishuo/envs/linbang/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 193, in init_process
    super(GeventWorker, self).init_process()
  File "/Users/lishuo/envs/linbang/lib/python2.7/site-packages/gunicorn/workers/base.py", line 120, in init_process
    self.run()
  File "/Users/lishuo/envs/linbang/lib/python2.7/site-packages/socketio/sgunicorn.py", line 80, in run
    **ssl_args
  File "/Users/lishuo/envs/linbang/lib/python2.7/site-packages/socketio/server.py", line 72, in __init__
    address = args[0].cfg_addr[0]
AttributeError: 'socket' object has no attribute 'cfg_addr'

I am having the same issue.

Save the following snippet as geventworker.py
from socketio.sgunicorn import GeventSocketIOWorker

class MyGeventSocketIOWorker(GeventSocketIOWorker):
    policy_server = False

and launch your app with
 gunicorn --worker-class geventworker.MyGeventSocketIOWorker wsgy:app

as noted here, using earlier gunicorn versions may work for you.
pip uninstall gunicorn
pip install gunicorn==18.0

I just committed a fix, which will make it work with newer version of gunicorn. The merge is pending

Merge will stay pending forever as this project is missing a maintainer.
BTW, I can confirm that the workaround of @ant9000 works fine. Alternatively, you can also set the environment variable POLICY_SERVER to false.

Cool. I will stay with my forked branch then :)


Documentation: list of the separate alphapept.interface functions needed to run the complete workflow

Hi,
Thanks for creating AlphaPept!
I'd like to run the modules separately as functions rather than alphapept.interface.run_complete_workflow() as I may create an alternate version of one of the modules. I thought this way may be simpler than running each of the python scripts but no worries if that is the way that I will need to do it.
I just can't figure out which alphapept.interface functions to run to replicate the workflow, i.e. I can't find all of the functions that match each module (outlined in the python scripts and jupyter notebook). For example, there is alphapept.interface.feature_finding() which I can see links up with the feature_finding.py module, but I am not sure which function to use for the chem.py module.
Could you please add a list of the separate functions that are needed to replicate the entire workflow and their order to the documentation?
Sorry if this information is already published and I have missed it.
Best wishes,
Elise

Hi Elise,
The interface is centered around the settings, i.e., a dictionary with the parameters for your run. The run_complete_workflow() will run the different steps defined here. Conceptually, each step writes to an HDF container so we can call one function after another, and you could inject your customized workflow by defining a step. If you want, I could prepare a little notebook to showcase this.
Could you elaborate a bit more on what you would like to achieve so I could come up with a meaningful example?

Hi Maximilian,
Thanks for getting back so quickly!
I am hoping to replace the retention time alignment module with an approach that can handle some files that contain only MS1 scans (not ideal but I have been given a dataset with >hundreds of MS1 only files to match into a library with MS1 and MS2). I was looking to try use the pyopenms function MapAlignmentAlgorithmPoseClustering.
Please let me know if you need any other info.
Thank you!
Best wishes,
Elise

Hi,
so I checked a bit more in-depth.
In principle, you could do the following:

Still use run_complete_workflow but specify in the settings/workflow that you don't want to run align, match, and lfq_quantification. This will run the complete pipeline until the align step. You will get features and identified MS1 but no matching and quantification.
You could then load the pyopenms functionality, apply the alignment and overwrite the respective fields in the alphapept-ms_data container. If you only have a global offset, you can directly use align_files with the respective offset values or overwrite the fields in the respective peptide_fdr and feature_table.
Manually call matching and quantification via interface.match and interface.quantification.

One potential challenge could be how to load the data into the pyopenms. I found a tutorial here. In principle, the question would be how to get the data in there, as it seems to be relying on the XML format. Within AlphaPept, most of the data is stored in a tabular format.
So you could try loading the XML format or maybe even re-implement the alignment algorithm.

Thanks! That advice is very helpful.
Since the naming conventions for the features are slightly different between the PyOpenMS input and the AlphaPept output (from the search without alignment, matching and LFQ quantification you suggested), I'd just like to check with you that I am using the right input from Alphapept. Specifically, are there equivalent datasets from the feature_table hdf group to match:

MZstart
MZend
quality
intensity

If it is easier to conceptualise, I have attached an excel sheet comparing the columns for the PyOpenMS input with the datasets in the AlphaPept output.
Thank you!
Best wishes,
Elise
AlphaPept_input_for_PyOpenMS.xlsx

Hi,
partly.
1+2
For Bruker files, we use a feature finder from Bruker. This one has MZ_lower and MZ_upper, which would correspond to MZstart and MZend.
For Thermo we don't report MZStart and MZend. If this would be useful, it would potentially be a small patch to have this in the report.
3:
In general, we don't have a quality estimate.
4:
The intensity would be ms1_int_[...]; this can be changed depending on the setting you use in the search.
Default should be ms1_int_sum_apex.
Below some text from the docs about this:
Lastly, we report three estimates for the intensity:

ms1_int_sum_apex: The intensity at the peak of the summed signal.
ms1_int_sum_area: The area of the summed signal
ms1_int_max_apex: The intensity at the peak of the most intense isotope envelope
ms1_int_max_area: The area of the the most intense isotope envelope```

I close this due to inactivity. Feel free to reopen in case.


FEAT-#2663: Add algebraic operator from_labels

Resolves #2663
This operator is necessary for efficient reset_index operations. See
this paper for more information on the operator:
http://www.vldb.org/pvldb/vol13/p2033-petersohn.pdf
Signed-off-by: Devin Petersohn<EMAIL_ADDRESS>
What do these changes do?

 The implementation is effectively constant time, measured at 10ms locally. Memory footprint is also much lower than previous implementation.
Previously, on 100m row CSV, Modin took >1 min to do the reset_index with a 100% memory overhead.

Pull request improves the performance of reset_index(drop=False signficantly. The implementation is effectively constant time, measured at 10ms locally. Memory footprint is also much lower than previous implementation.
Previously, on 100m row CSV, Modin took >1 min to do the reset_index with a 100% memory overhead.


feat(checkout,order): add placed order selector and facade in checkout

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/graycoreio/daffodil/blob/master/CONTRIBUTING.md#commit
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

The order package contains placed order behavior.
What is the new behavior?
The checkout package contains placed order behavior.
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information

I thought the plan was to delete the checkout package. Not true?

I thought the plan was to delete the checkout package. Not true?

Originally we had no use for it but @damienwebdev pointed out that "placed order" stuff that introduces a dep on cart makes more sense in checkout than order. Order is strictly for order entities and has no relation to cart.


Navbar, footer, new pages, snippets

Added horizontal centered navbar
Added bottom sticky footer
Added HTML snippets for navbar and footer
Added JS to include HTML snippets
Addes CSS for larger screen size
Fixed some CSS for the canvas

Ok, da controllare.

Good!


Redirecting .ETH/ -> .ETH.LINK should use HTTPS instead of HTTP

Platform:
Windows
Microsoft Edge / Chrome,
Issue
Navigating to almonit.eth/ redirects to http://almonit.eth.link/
Expected result
It should redirect to https://almonit.eth.link/
Defaulting to HTTPS makes sense, as .eth.link supports HTPS, and Edge/chrome will start warning that http sites are unsafe.

If I had to take a wild guess of which line needs to be updated, I'd guess this.
I don't have an environment set up to do extension development, otherwise I'd attempt creating a PR for this
https://github.com/ipfs-shipyard/ipfs-companion/blob/c3f4c531514522bf11ca74ce878051480f8ad773/add-on/src/lib/ipfs-request.js#L409

Thank you @DavidBurela, fixed in https://github.com/ipfs-shipyard/ipfs-companion/pull/847
There is a small caveat to this:
Limitation of wildcard certificate at *.eth.link
@chris-remus FYI there is an open issue with HTTPS on *.eth.link – is there an open issue for this somewhere? If not, where I can report below?

Gateway at eth.link uses LetsEncrypt certs that work only with *.eth.link and will fail for *.*.eth.link.
For example https://blog.khinsen.eth.link/ (loaded without ipfs-companion) produces certificate validation errors in both Firefox and Chromium. User can manually bypass the error and page will load fine, but its bad UX.


inheritance & prototype property, hoisting & this

[ ] I have read freeCodeCamp's contribution guidelines.
[ ] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the master branch of freeCodeCamp.
[ ] None of my changes are plagiarized from another source without proper attribution.
[ ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Hi @phuocding,
I don't see how hoisting and this keyword are related to prototypes.
Infact, they should have their own articles as we try to keep individual articles focused on one topic only.


Upgrading Expo+Nextjs template to Expo SDK50 fails with "No callback found with cbID 0 and callID 0 for module.Args '[{"app_state":"active"}]'

Current Behavior
In the Free Expo+NextJS template, after upgrading to Expo SDK 50, running expo with npx expo run:android (physical device), shows WSOD and a lot of Errors like:
"No callback found with cbID 0 and callID 0 for module.Args '[{"app_state":"active"}]'

Expected Behavior
It should display the Home Page of the template used.
Tamagui Version
"tamagui": "^1.89.15"
taken from packages/config/package.json

Platform (Web, iOS, Android)
Android (have not run yet on iOS)

Reproduction
Create a new app using:
`npm create tamagui@latest`

Choose the 'Free Expo + NextJS production ready' template

After initial install
`cd apps/expo`

Inside the same directory do the upgrade:

yarn add expo@latest
npx expo install --fix

Remove "Resolves" and "Overrides" from apps/expo/package.json as per https://docs.expo.dev/router/installation/#update-resolutions
Perform again a yarn install in the expo app directory.
Remove babel-preset/expo as per instructions:
https://docs.expo.dev/router/installation/#modify-babelconfigjs
Modify apps/expo/index.js as per instructions:
https://docs.expo.dev/router/reference/troubleshooting/#expo_router_app_root-not-defined
to avoid the EXPO issue:
Invalid call at line 11: process.env.EXPO_ROUTER_APP_ROOT First argument of require.context should be a string.

Now you have set up everything by the book:
try to run for android with the following:
npx expo run:android
Instead of home screen the issue appears

### System Info

```markdown
System:
    OS: macOS 14.2.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 70.46 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v20.9.0/bin/yarn
    npm: 10.1.0 - ~/.nvm/versions/node/v20.9.0/bin/npm
    pnpm: 8.14.0 - ~/Library/pnpm/pnpm
    bun: 1.0.21 - ~/.bun/bin/bun
  Browsers:
    Chrome: 121.0.6167.139
    Edge: 121.0.2277.106
    Safari: 17.2.1

🤦🏻 If everything fails... RTFM.
I leave this here as a guide for others...
How to upgrade the template created with npm create tamagui to expo SDK 50 and expo router v3.
npm create tamagui
has an expo SDK 49 installed
check with yarn web and yarn native that things work OK.
in apps/expo run yarn add expo@latest
in apps/expo run npx expo install --fix
in apps/expo/package.json remove the overrides and resolves section to the old metro entries.
in apps/expo/babel.config.js remove the expo-router/babel plugin
run yarn install in apps/expo
run yarn install in project root
run npx lerna-update-wizard in project root.
Find all packages that have 2 versions, and update them with the latest version present in expo-app package.
Done.
yarn web and yarn native should now work.


AudioSystem not working on Android 64-bit

Release Type: Official Release/GitHub (please choose appropriate option)
GitHub
Version: Version number and/or git branch
<IP_ADDRESS>
Platform(s): Does the problem occur on Windows, Android...?
Android
Describe the bug
I've reported this in the old SiliconStudio issues section but wanted to get it submitted as an issue here. I get a DllNotFoundException in AudioLayer.Init() when trying to initialize the AudioSystem. I think the error originates from here:
D/Mono ( 3009): DllImport error loading library ‘libxenkoaudio.so’: 'dlopen failed: cannot locate symbol “_Unwind_SetGR”
Works without issues with armeabi-v7a builds.
Is this a known limitation or can it be fixed to work with 64bit builds?
To Reproduce
Steps to reproduce the behavior:

Create an AudioSystem
initialize it

Expected behavior
It should work with 64-bit builds like it does with 32-bit builds

Thanks for the report.
I don't know if it failed since beginning or only at some point.
It says you tried GitHub but <IP_ADDRESS>?
Latest master contains a bump from LLVM 5 to 7, wondering if by chance it could help.
Otherwise it will need further investigation.

It has been failing ever since I started using Xenko (before it switched to MIT license). I will need to merge the latest changes and give the latest code a try. Will update this issue once I do so.

The Xenko.Android solution doesn't build correctly with the latest master branch: it just skips every project =/

I've manually merged the LLVM update (and updated to <IP_ADDRESS> as its the last version that compiles properly on Android) but still experience the same crash with arm64-v8a:
03-05 15:41:41.922: E/VRD(989): System.TypeInitializationException: The type initializer for 'Xenko.Audio.AudioEngine' threw an exception. ---> System.DllNotFoundException: libxenkoaudio
03-05 15:41:41.922: E/VRD(989):   at (wrapper managed-to-native) Xenko.Audio.AudioLayer.Init()
03-05 15:41:41.922: E/VRD(989):   at Xenko.Audio.AudioEngine..cctor () <0x7f593c0500 + 0x0002f> in <21455326a0234cd5ab6bc7ee54f4c28f>:0
03-05 15:41:41.922: E/VRD(989):    --- End of inner exception stack trace ---
03-05 15:41:41.922: E/VRD(989):   at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
03-05 15:41:41.922: E/VRD(989):   at Xenko.Audio.AudioEngineFactory.NewAudioEngine (Xenko.Audio.AudioDevice device, Xenko.Audio.AudioLayer+DeviceFlags deviceFlags) <0x7f593b9404 + 0x00033> in <21455326a0234cd5ab6bc7ee54f4c28f>:0
03-05 15:41:41.922: E/VRD(989):   at Xenko.Audio.AudioSystem.Initialize () <0x7f594ad3d0 + 0x0012f> in <3158c84f01f94be4920c7b032aea7b0a>:0

The file is actually there and it is still related to D/Mono ( 3009): DllImport error loading library ‘libxenkoaudio.so’: 'dlopen failed: cannot locate symbol “_Unwind_SetGR”, right?

Correct


flutter: The following NoSuchMethodError was thrown building IconTheme

https://medium.com/flutter-community/flutter-from-mobile-to-desktop-93635e8de64e
But have following issue
flutter: Observatory listening on http://<IP_ADDRESS>:50300/
flutter: тХРтХРтХб EXCEPTION CAUGHT BY WIDGETS LIBRARY тХЮтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХР
flutter: The following NoSuchMethodError was thrown building IconTheme(IconThemeData#2abdc(color:
flutter: Color(0xdd000000))):
flutter: Class 'Window' has no instance getter 'locales'.
flutter: Receiver: Instance of 'Window'
flutter: Tried calling: locales
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
flutter: #1      _WidgetsAppState.initState (package:flutter/src/widgets/app.dart:716:41)
flutter: #2      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3830:58)
flutter: #3      ComponentElement.mount (package:flutter/src/widgets/framework.dart:3696:5)
flutter: #4      Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #5      Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #6      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #7      Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #8      ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3701:5)
flutter: #9      ComponentElement.mount (package:flutter/src/widgets/framework.dart:3696:5)
flutter: #10     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #11     Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #12     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #13     Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #14     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3701:5)
flutter: #15     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3696:5)
flutter: #16     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #17     Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #18     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #19     Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #20     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3701:5)
flutter: #21     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3696:5)
flutter: #22     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #23     Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #24     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #25     Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #26     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3701:5)
flutter: #27     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3848:11)
flutter: #28     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3696:5)
flutter: #29     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #30     Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #31     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #32     Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #33     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3701:5)
flutter: #34     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3696:5)
flutter: #35     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #36     Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #37     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #38     Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #39     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3701:5)
flutter: #40     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3848:11)
flutter: #41     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3696:5)
flutter: #42     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #43     Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #44     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3732:16)
flutter: #45     Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
flutter: #46     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3701:5)
flutter: #47     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3848:11)
flutter: #48     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3696:5)
flutter: #49     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
flutter: #50     Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
flutter: #51     RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:909:16)
flutter: #52     RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:880:5)
flutter: #53     RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (package:flutter/src/widgets/binding.dart:826:17)
flutter: #54     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2266:19)
flutter: #55     RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:825:13)
flutter: #56     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:712:7)
flutter: #57     runApp (package:flutter/src/widgets/binding.dart:756:7)
flutter: #58     main (package:flutter_gallery/main.dart:26:3)
flutter: #59     _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:289:19)
flutter: #60     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
flutter: тХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХРтХР

Originally posted by @KanybekMomukeyev in https://github.com/Drakirus/go-flutter-desktop-embedder/issues/36#issuecomment-443096461

Using Flutter 0.11.13 • channel beta the simpleDemo does work.
Are you compiling your own flutter app ?
If so some tweaking might be needed!

@Drakirus now i will retry everything one more time.

@Drakirus ok, everything is ok, even keyboard is working.

@Drakirus i have one more question:
How to build windows release app?
I created folder, added there 3 files: main.exe, icudtl.dat, flutter_engine.dll
But when i try to excecute app in another machine, there are some errors:
2018/11/30 15:36:38 open C:/src/flutter_projects/go-flutter-desktop-embedder/example/simpleDemo/assets/icon.png: The system cannot find the path specified.

C:\Users\rtentiev>"C:\Users\rtentiev\Downloads\Telegram Desktop\android_app\android_app\main.exe"
[FATAL:e:\b\build\slave\windows_engine\build\src\flutter\fml\icu_util.cc(92)] Check failed: context->IsValid(). Must be able to initialize the ICU context. Tried: C:/src/flutter_projects/go-flutter-desktop-embedder/example/simpleDemo/icudtl.dat

You need to add flutter_project (if the content is only demo/build it's ok).
Also, assets is needed if you want to have a custom icon.

Desktop platforms are not supported Flutter targets. Existing applications are likely to require modifications in order to run.


File/Folder determination by key presence?

Do you really have to look for a key to not be null (file or folder) to determine it's type?

Yes. Our data model follows a "facet" approach to describe what an item is. While it might seem like a file system would have a straightforward concept of "file" and "folder" as unique object types, OneDrive has more capability than that. For example, a OneNote notebook that is stored in OneDrive might be a "folder" in some sense and a "file" in others. Similarly, a photo might be a "photo" or a "file" or an "image" depending on the context you want to use.
Our facet data model ensures you can support items that behave the way you want them to behave. For example, if you want to display only photos (images that were taken with a camera) you can look for items that have a non-null photo facet. You can be sure that any item you get back will have thumbnails and photo metadata and built your experience accordingly.
Similarly, if you are looking "folders" you can just as easily enumerate all items that have a "folder" facet on the item, since you know they have the properties you're looking for.

The reason that this is frustrating is that using a JSON interpreter like GSON will require objects to have every possible key in it that then need manual null checking to determine type.

Yes, that's true. You need your native objects to include all of the properties that you expect to want to use. It sounds like you're expecting to have a "Files" and "Folders" class in your app.
We don't have separate classes for files and folders because JSON doesn't really have classes as a concept. If we tried to simulate that in JSON it would be harder to properly deserialize the JSON since you would need to map a single collection in JSON to multiple native classes.
You can follow that model a couple of different ways, although you're right that there is a little more work involved. You could use server-side filtering to only return items with a particular facet on it (?filter=folder%20ne%20null) and then use GSON to map those into a native class that has the properties you expect folders to have, but then you have to make multiple API calls to get files + folders.
You could also do similar filtering client-side to map the Items we return into files or folders and pass those classes back into your program.

Actually no it will be one object with just a type on it (since so many fields are the same).  The object will then have a reference list of its children and its parent parsed out that are also stored.  That way I can easily traverse using the same object.  I have already done this with the ShareFile and Box API in the same UI using interfaces for the navigation methods.

You could easily do that as well with OneDrive. You would just write code into the native class you deserialize into that would provide a "Type" property and do the null-checks to return the right type, something like
String type() {
  if (this.File != null) {
    return "file"
  } else if (this.Folder != null) {
    return "folder"
  };
}

Alternatively you could write something like bool isFile() { return this.File != null; } as well. Neither of those seem that difficult to enable.

Yeah I know how to check for null.  My goal was to not have extra code for deserializing that depends on null checking so that I could automatically parse.

I'm closing this out since it seems like we're at a dead end. GSON can easily deserialize the JSON to a single class file, like it sounds like you are looking for. From there you can either augment that class to provide the additional interface for a type property that you're looking for, or you can use the null checks throughout your code.


Social Media Buttons Not Functioning Properly (Facebook, Twitter, Instagram, YouTube)

The social media buttons for Facebook, Twitter, Instagram, and YouTube on our website are not functioning as expected. Clicking on these buttons does not redirect users to the respective social media pages.

Yes, you can go ahead and start working on this issue I'll supply necessary social links in next comment

Here are social links:
Github: https://github.com/Mayuresh-22/Minglr
Twitter: https://x.com/mayuresh_empire
Linkedin: https://www.linkedin.com/in/mayureshchoudhary/
For now, these links are sufficient, you may need to remove & add new icons for this links you may use https://iconbuddy.com/

Working on this I will rase PR as soon as possible.

A PR has been raised. Please check and merge it into the respective branch.

Thank you for raising an issue and making a PR to solve it. I've merged the PR and closing this issue as completed.


Add note on XFS mkfs

Without xfsprogs, worker nodes fail to format, and consequently bind, XFS iSCSI volumes

Closed by https://github.com/NetApp/trident/commit/a988f83d77b4db7fd34c6461313f8554cec8268a with proper attribution.  Thanks @scaleoutsean!


Dark mode for chatbot and remaining forms

Task

Dark mode for chatbot and remaining forms
Ensure consistency across all screens

Deliverables

Consistent dark mode state across all website screens

Size Estimation: Medium (2-4 hours)

Duplicate.


Port for AngularJS

This isn't really an issue; just a shout out to check if anyone is interested in helping me port this to AngularJS. To me it's both a learning exercise, and to test how far Angular can be taken without jQuery.
I've started on this actually, it probably even has a better base (my implementation can take more than 2 levels of menus), but the UI implementation really has me flummoxed. If anyone is interested do PM me.
My essential goals for the implementation over what is already achieved by this library, is

more than 2 levels of menus (eg: Age > greater than > 30)
"saved facets" box beside the search bar, they can just add facets onto the search bar from it

Did anyone port this?

good share @amcdnl

Did anyone port it to angular ?


Add monorepo support to all commands (except source git related)

TODO:

[ ] Refactorize source git related commands
[ ] Add some more unit tests
[ ] Test new packit code in a packit-service job call (real not just unit and integration tests)

Notes for reviewers
Copr configuration used for tests
packit_instances: ["stg"]
upstream_project_url: https://github.com/fedora-copr/copr.git

packages:

  python:
    downstream_package_name: python-copr
    upstream_package_name: copr
    paths:
      - ./python
    specfile_path: python-copr.spec
    files_to_sync:
      - python-copr.spec

  cli:
    downstream_package_name: copr-cli
    upstream_package_name: copr-cli
    paths:
      - ./cli
    specfile_path: copr-cli.spec
    files_to_sync:
      - copr-cli.spec

  frontend:
    downstream_package_name: copr-frontend
    upstream_package_name: copr-frontend
    paths:
      - ./frontend
    specfile_path: copr-frontend.spec
    files_to_sync:
      - copr-frontend.spec

Open questions:

[ ] I assume paths is just a single string for every package and I use it to change the workdir associated with the subpackage
[ ] I don't know how to find the upstream version for any single monorepo sub-package, git describe will always return the same tag,  the last one, not necessary associated with the sub-package. Now I am printing a warning.
[ ] Do we want a new CommonPackageConfig like class which also knows if it belongs to a monorepo or not and which also knows its related jobs? For now I am injecting data to the old class...

Fixes #1849
RELEASE NOTES BEGIN
Packit now supports monorepo configuration in CLI
RELEASE NOTES END

I assume paths is just a single string for every package and I use it to change the workdir associated with the subpackage

Subpackages can have multiple paths assigned. Is it possible to accommodate this?

[ ]  I don't know how to find the upstream version for any single monorepo sub-package, git describe will always return the same tag,  the last one, not necessary associated with the sub-package. Now I am printing a warning.

For now it is okay to have the same version for every subpackage if the version is obtained with git describe. In case the monorepo uses independent versioning for its subpackages (like copr does it), they can use the get-current-version to customise things to their needs.

[ ]  Do we want a new CommonPackageConfig like class which also knows if it belongs to a monorepo or not and which also knows its related jobs? For now I am injecting data to the old class...

I think I'm missing something here :see_no_evil: Why would this be required/useful?

I assume paths is just a single string for every package and I use it to change the workdir associated with the subpackage

Subpackages can have multiple paths assigned. Is it possible to accommodate this?

Sure but when there is more than one path assigned to the package which one is the workdir? How can I decide? Should I build the same package multiple times? One for every assigned path?

[ ]   I don't know how to find the upstream version for any single monorepo sub-package, git describe will always return the same tag,  the last one, not necessary associated with the sub-package. Now I am printing a warning.

For now it is okay to have the same version for every subpackage if the version is obtained with git describe. In case the monorepo uses independent versioning for its subpackages (like copr does it), they can use the get-current-version to customise things to their needs.
Ok then I will remove my warning!

[ ]   Do we want a new CommonPackageConfig like class which also knows if it belongs to a monorepo or not and which also knows its related jobs? For now I am injecting data to the old class...

I think I'm missing something here see_no_evil Why would this be required/useful?

I realized that we are accessing the jobs configuration from the CLI much more than I thought (for image builder, copr builds and propose downstream). For this reason I have created a PackageConfigView class which is basically a PackageConfig with a runtime constraint: to have just one package config and its related jobs.
A MultiplePackages object can have many PackageConfigView objects which are used when calling the commands.

Subpackages can have multiple paths assigned. Is it possible to accommodate this?

Sure but when there is more than one path assigned to the package which one is the workdir? How can I decide? Should I build the same package multiple times? One for every assigned path?

IIRC, in the original research I was planning to keep the workdir to be always the repo root. In case there are multiple paths specified, the source archive would include both of them. Note, that directories could be on multiple levels, for example: ["a/", "b/c"]. To be more concrete: clang is packaged from the clang and clang-tools-extra directories from the llvm-project repo.

I realized that we are accessing the jobs configuration from the CLI much more than I thought (for image builder, copr builds and propose downstream). For this reason, today, I have created a PackageConfigView class which is basically a PackageConfig with a runtime constraint: to have just one package config and its related jobs. A MultiplePackages object can have many PackageConfigView objects which are used when calling the commands.

Let's discuss this IRL :)

recheck

recheck

I've checked out the PR and so far it's working great with custom actions and all. Looking forward to this and the equivalent service PR.

recheck

Thank you for this work!!!!
I want to confirm that paths to spec files can be some/levels/deep/before/the/specfile appears ;). In LLVM for the python-lit project it is llvm/utils/lit. Note, that currently there's obviously no spec file in the upstream repo.


Fixes messagebus test

Please take a look.

Codecov Report

Merging #270 (46e951c) into 2021.9.x (b37b705) will increase coverage by 0.03%.
The diff coverage is 43.13%.

@@             Coverage Diff              @@
##           2021.9.x     #270      +/-   ##
============================================
+ Coverage     42.87%   42.91%   +0.03%
============================================
  Files           773      773
  Lines         69886    69871      -15
============================================
+ Hits          29966    29985      +19
+ Misses        35739    35704      -35
- Partials       4181     4182       +1

Impacted Files
Coverage Δ

automation/service/trigger.go
54.37% <ø> (ø)

automation/service/workflow_actions.gen.go
50.44% <0.00%> (ø)

automation/types/session.go
66.66% <ø> (ø)

compose/service/namespace.go
41.79% <0.00%> (ø)

pkg/apigw/filter/postfilter.go
70.00% <0.00%> (ø)

pkg/apigw/filter/processer.go
45.54% <0.00%> (ø)

pkg/apigw/pipeline/pipeline.go
65.45% <ø> (ø)

pkg/apigw/route.go
85.00% <ø> (-3.89%)
:arrow_down:

pkg/codegen/afunc.go
0.00% <0.00%> (ø)

pkg/codegen/codegen.go
0.00% <0.00%> (ø)

... and 114 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 bb117df...46e951c. Read the comment docs.


A.05.IR14.ds.keyword.md

This issue has been extracted from the issue list on:https://ies-svn.jrc.ec.europa.eu/issues/2685
Comment
The term 'resource type' in the test method description is not hyperlinked.
'Test method If the type of the resource is not dataset or series, this test is omitted.'
Proposed Change
Change the sentence to:
'Test method
If the resource type is not dataset or series, this test is omitted.'
Make 'resource type' a hyperlink to (hierarchyLevel)

Proposed Resolution
Change resolution to: Add prerequisite A.04.IR01.IR02.hierarchy.md with outcome dataset or series.


Update refined to 0.10.1

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

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "eu.timepit", artifactId = "refined" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "eu.timepit", artifactId = "refined" }
}]

labels: library-update, early-semver-major, semver-spec-minor, commit-count:1

Superseded by #577.


Multilayer profiles support

vvdecapp --output - --y4m --bitstream basketball_2_layers.vvc
VVdeC, the Fraunhofer VVC/H.266 decoder, version 2.3.0 [THREADS=16; PARSE_DELAY=24; SIMD=AVX2]
vvdecapp [error]: decoding failed: decoder exception (decoder requires restart) detail: caught decoder exception:
ERROR: In function "void vvdec::HLSyntaxReader::parseProfileTierLevel(vvdec::ProfileTierLevel*, bool, int)" in /tmp/vvdec-2.3.0/source/Lib/DecoderLib/HLSyntaxReader.cpp:4279: Multilayer profiles not yet supported
ERROR CONDITION: ptl->getProfileIdc() == Profile::MULTILAYER_MAIN_10 || ptl->getProfileIdc() == Profile::MULTILAYER_MAIN_10_STILL_PICTURE || ptl->getProfileIdc() == Profile::MULTILAYER_MAIN_10_444 || ptl->getProfileIdc() == Profile::MULTILAYER_MAIN_10_444_STILL_PICTURE

[file] Reading from stdin...
Failed to recognize file format.
Exiting... (Errors when loading file)

basketball_2_layers.zip

VVdeC doesn't support the Multilayer profiles. Only the Main 10 profile is supported.


client preset is ignoring a lot of configs

Which packages are impacted by your issue?
No response
Describe the bug
The Configs that we should be able to use with the new client preset don't do anything.
The client preset should use the typescript plugin underneath, but the config that can be used with the typescript plugin doesn't do anything.
Can we fix this?
In Addition, the client preset generates types for the Schema and the Queries. But in the index.ts file that is generated these types are not exported.
Steps to Reproduce the Bug or Issue

Try it in any project that is using the client preset

Expected behavior
I want the config for the typescript plugin to also work with the client preset
Screenshots or Videos
No response
Platform

OS: [e.g. macOS, Windows, Linux]
NodeJS: [e.g. 18.5.0]
graphql version: [e.g. 16.3.0]
@graphql-codegen/* version(s): [e.g. 2.6.2]

Codegen Config File
import { CodegenConfig } from "@graphql-codegen/cli";

const config: CodegenConfig = {
  schema: "./__generated__/schema.graphql",
  documents: [
    "./**/*.js",
    "./**/*.vue",
    "./**/*.ts",
    "!./__generated__/schema.graphql",
    "!./**/node_modules/**/*",
    "!./**/*.test.*",
    "!./**/*.d.ts",
  ],
  generates: {
    "./__generated__/gql/": {
      preset: "client",
      presetConfig: {
        gqlTagName: "gql",
        fragmentMasking: { unmaskFunctionName: "getFragmentData" },
        enumsAsConst: true, // Doesn't do anything (probably should not work, but I tried it anyway)
        immutableTypes: true, // Doesn't do anything (probably should not work, but I tried it anyway)
      },
      config: {
        enumsAsConst: true, // Doesn't do anything
        immutableTypes: true, // Doesn't do anything
      },
    },
    "./__generated__/schema.ts": {
      plugins: ["typescript"],
      config: {
        enumsAsConst: true, // Works fine here
        immutableTypes: true, // Works fine here
      },
    },
  },
  ignoreNoDocuments: true,
};

export default config;

Additional context
No response

Here's another bug report related to this:
https://github.com/dotansimha/graphql-code-generator/issues/8576#issuecomment-1422205746

Any news on this? This is key so for example https://the-guild.dev/graphql/codegen/plugins/typescript/relay-operation-optimizer can be used with client-preset

See https://github.com/dotansimha/graphql-code-generator/discussions/8993#discussioncomment-6148858 and https://github.com/dotansimha/graphql-code-generator/pull/9496#issuecomment-1586691223


Code cleanup

In This PR

Refactored model classes.
For example:

const { Performance } = require('../models');

Performance.findCurrent() //db fetching methods are now static functions
.then((performance) => {
  /* Do some stuff */
  /* The returned data is an instance of the Performance class */
});

All model classes are affected. The other changes are just to reflect the changes in model api
TODO

[x] Test pass, but for the love of God, please check this thoroughly on staging!

Architecturally, this looks solid. I notice you're often using multiple similar classes for different "views" - the For pattern. I feel like there ought to be a less repetitive way to do that, but given your security requirements, you need to be sure you won't divulge information to the wrong user. I don't have a better idea at the moment, but it's something I'll ponder.
LGTM


Add new providers

Slack
Spotify
https://github.com/supabase/gotrue/pull/245

Thanks so much @HarryET!


Add validate-strings-file command

validate-strings-file checks for duplicate keys or keys without tags and will exit with a non-zero status code if either of those checks are true.

Not sure if you knew this, but generate-report does something similar. Might make sense to move the validation out of there given this new command, which I like better.
Also, what do you think of showing all validation issues when there are more than one? The current code will exit after the first validation issue it finds.

I saw the similar stuff in generate-report, but mostly wanted the non-zero exit code.
Updated to remove the validation checks from generate-report and report all validation issues.

Looks good! One other question: Is the purpose of this to help fail builds when there are strings file issues? If so, I wonder how useful a --validate flag would be on generate-string-file and generate-all-string-files that runs this validation code first and just exits with error if the validation fails. Thoughts? That change might be easier to integrate into existing build systems.

Yeah, that would make sense too. Though I’d personally still want the separate validate command.
(In particular, I’m setting up a build job to validate pull requests to our strings repository. So having it be separate from the other commands is nice.)

Yeah, I would definitely prefer both exist over just one.