text:
Black CameraView in UNO / MAUI mobile project (Android)

Hi I tried many free and commercial barcode scanning libs in my UNO Platform project.
Scandit works great but I am revisiting free options.
All is done as MAUI components through MAUI embedding in UNO, as newer UNO versions don't have any directly supported barcode scanning libs
CameraView component is just black allways.
Any idea why ?
(camera permissions are ok)
There are no errors.
Mayne UNO is the problem or anything else.

I am using 1.5.2 version because of dll hell with UNO dependencies , so I can't use latest :

Any ide why ?
Or shoot questions for details.
Here is the log if it is any help :

am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "hr.lauscc.webossa/crc6475981dcd67117422.MainActivity"
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=hr.lauscc.webossa/crc6475981dcd67117422.MainActivity }
[.lauscc.weboss] Late-enabling -Xcheck:jni
[.lauscc.weboss] Unquickening 21 vdex files!
[.lauscc.weboss] Unknown bits set in runtime_flags: 0x800000
[.lauscc.weboss] The ClassLoaderContext is a special shared library.
[100] Open /data/app/~~3QsBEPiM3PF6gD2Dj2Y69A==/hr.lauscc.webossa-j5N-nDG81kGusHxyrebToA==/base.apk took:1.411s
[Perf] Connecting to perf service.
[.lauscc.weboss] [GL_OOM] ClearGrowthLimit 536870912
[NetworkSecurityConfig] No Network Security Config specified, using platform default
[NetworkSecurityConfig] No Network Security Config specified, using platform default
[DOTNET] JNI_OnLoad: JNI_OnLoad in pal_jni.c
[DOTNET] GetOptionalClassGRef: optional class com/android/org/conscrypt/OpenSSLEngineImpl was not found
[monodroid] Creating public update directory: /data/user/0/hr.lauscc.webossa/files/.__override__
[.lauscc.weboss] Attempt to remove non-JNI local reference, dumping thread
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8852,server=y,embedding=1,timeout=1723555276
Loaded assembly: System.Private.CoreLib.dll [External]
[monodroid-gc] GREF GC Threshold: 46080
Loaded assembly: Inventura.dll
Loaded assembly: Mono.Android.dll [External]
Loaded assembly: System.Runtime.dll [External]
Loaded assembly: Java.Interop.dll [External]
Loaded assembly: System.Runtime.InteropServices.dll [External]
Resolved pending breakpoint for 'Android.Runtime.JNIEnvInit.RegisterJniNatives(System.IntPtr, System.Int32, System.IntPtr, System.IntPtr, System.Int32)' to /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNIEnvInit.cs:57 [0x00000].
Loaded assembly: System.Collections.dll [External]
Loaded assembly: Mono.Android.Runtime.dll [External]
Loaded assembly: System.Threading.dll [External]
Loaded assembly: System.Threading.Thread.dll [External]
Loaded assembly: System.Diagnostics.StackTrace.dll [External]
[.lauscc.weboss] Attempt to remove non-JNI local reference, dumping thread
Loaded assembly: data-0x7246fe9060 [External]
Loaded assembly: data-0x7246ff9070 [External]
Loaded assembly: data-0x72a7018030 [External]
Loaded assembly: netstandard.dll [External]
Loaded assembly: System.Linq.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
Loaded assembly: System.Collections.Concurrent.dll [External]
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointSendToIde(System.String)' to D:\a_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:423 [0x00000].
Loaded assembly: System.Text.Json.dll [External]
Loaded assembly: System.Text.Encodings.Web.dll [External]
Loaded assembly: System.ComponentModel.dll [External]
Loaded assembly: Uno.UI.RemoteControl.dll [External]
[chatty] uid=10147(hr.lauscc.webossa) identical 2 lines
[monodroid-assembly] open_from_bundles: failed to load assembly Xamarin.HotReload.Contracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
Loaded assembly: Microsoft.Maui.Controls.dll [External]
Loaded assembly: System.ObjectModel.dll [External]
Loaded assembly: Microsoft.Maui.dll [External]
Loaded assembly: Microsoft.Maui.Graphics.dll [External]
Loaded assembly: Microsoft.Maui.Essentials.dll [External]
Loaded assembly: Microsoft.Extensions.Logging.Abstractions.dll [External]
Loaded assembly: System.Runtime.Loader.dll [External]
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to D:\a_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:418 [0x00000].
Loaded assembly: Uno.UI.dll [External]
Loaded assembly: System.Memory.dll [External]
Loaded assembly: System.Reflection.Emit.Lightweight.dll [External]
Loaded assembly: System.Reflection.Emit.ILGeneration.dll [External]
Loaded assembly: System.Reflection.Primitives.dll [External]
Loaded assembly: Mono.Android.Export.dll [External]
Loaded assembly: System.Xml.ReaderWriter.dll [External]
Loaded assembly: System.Private.Xml.dll [External]
Loaded assembly: System.Reflection.Emit.dll [External]
Loaded assembly: callback_factory [External]
Loaded assembly: System.Collections.NonGeneric.dll [External]
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
Loaded assembly: Xamarin.AndroidX.Core.dll [External]
Loaded assembly: Uno.Diagnostics.Eventing.dll [External]
Loaded assembly: Uno.Foundation.dll [External]
Loaded assembly: Uno.Foundation.Logging.dll [External]
Loaded assembly: Uno.dll [External]
Loaded assembly: Uno.UI.Composition.dll [External]
Loaded assembly: Uno.UI.BindingHelper.Android.dll [External]
Loaded assembly: Microsoft.Extensions.Hosting.Abstractions.dll [External]
Loaded assembly: Uno.UI.Dispatching.dll [External]
Loaded assembly: System.Numerics.Vectors.dll [External]
Loaded assembly: System.Private.Uri.dll [External]
Loaded assembly: System.Text.RegularExpressions.dll [External]
Loaded assembly: System.Collections.Immutable.dll [External]
Loaded assembly: System.Console.dll [External]
Loaded assembly: Uno.UI.RemoteControl.Messaging.dll [External]
Loaded assembly: Uno.Extensions.Configuration.dll [External]
Loaded assembly: Microsoft.Extensions.DependencyInjection.Abstractions.dll [External]
Loaded assembly: Uno.UI.FluentTheme.v2.dll [External]
Loaded assembly: Uno.Toolkit.WinUI.Material.dll [External]
[.lauscc.weboss] WaitForGcToComplete blocked RunEmptyCheckpoint on ProfileSaver for 19.631ms
Loaded assembly: System.Net.WebSockets.dll [External]
Loaded assembly: System.Net.WebSockets.Client.dll [External]
Loaded assembly: System.Net.Http.dll [External]
Loaded assembly: System.Net.Primitives.dll [External]
Loaded assembly: System.Net.Security.dll [External]
Loaded assembly: System.Security.Cryptography.dll [External]
Loaded assembly: System.Net.WebHeaderCollection.dll [External]
Loaded assembly: System.Collections.Specialized.dll [External]
Loaded assembly: Microsoft.Win32.Primitives.dll [External]
Loaded assembly: System.Diagnostics.DiagnosticSource.dll [External]
Loaded assembly: System.Diagnostics.Tracing.dll [External]
Loaded assembly: System.Net.Quic.dll [External]
Loaded assembly: System.Threading.Channels.dll [External]
Thread started:  #2
Thread started: .NET TP Gate #3
Thread started:  #4
Loaded assembly: System.Net.Sockets.dll [External]
Loaded assembly: System.Runtime.Intrinsics.dll [External]
Thread started:  #5
Thread started:  #6
Loaded assembly: System.Threading.ThreadPool.dll [External]
Thread started:  #7
Thread started:  #8
Thread started:  #9
Thread started: .NET Sockets #10
Thread started:  #11
Loaded assembly: System.Net.NameResolution.dll [External]
Thread started: .NET Timer #12
Loaded assembly: SkiaSharp.Views.Windows.dll [External]
Loaded assembly: Uno.Extensions.Core.UI.dll [External]
Loaded assembly: Uno.Extensions.Hosting.WinUI.dll [External]
Loaded assembly: Uno.Extensions.Http.WinUI.dll [External]
Loaded assembly: Uno.Extensions.Localization.WinUI.dll [External]
Loaded assembly: Uno.Extensions.Logging.WinUI.dll [External]
Loaded assembly: Uno.Extensions.Maui.WinUI.dll [External]
Loaded assembly: Uno.Extensions.Storage.UI.dll [External]
Loaded assembly: Uno.Material.WinUI.dll [External]
Loaded assembly: Uno.Themes.WinUI.dll [External]
Loaded assembly: Uno.Toolkit.WinUI.dll [External]
Loaded assembly: Uno.UI.Lottie.dll [External]
Loaded assembly: Uno.UI.Toolkit.dll [External]
Loaded assembly: Uno.UI.FluentTheme.dll [External]
Loaded assembly: Uno.UI.FluentTheme.v1.dll [External]
Loaded assembly: Xamarin.AndroidX.ViewPager.dll [External]
Loaded assembly: Xamarin.AndroidX.Fragment.dll [External]
Loaded assembly: Xamarin.AndroidX.SwipeRefreshLayout.dll [External]
Loaded assembly: Uno.Core.Extensions.Disposables.dll [External]
Loaded assembly: Xamarin.AndroidX.Core.SplashScreen.dll [External]
Loaded assembly: SkiaSharp.Skottie.dll [External]
Loaded assembly: SkiaSharp.dll [External]
Loaded assembly: SkiaSharp.SceneGraph.dll [External]
Loaded assembly: UniversalImageLoader.dll [External]
Loaded assembly: System.Drawing.Primitives.dll [External]
[Config:Grabber:OnePlusFontConfig] Index 0 requested, with a size of 0
[309] package:hr.lauscc.webossa took:10397 calssname:android.app.ActivityThread$H callback:null what:110
[.lauscc.weboss] [frame_perf] perfboost open tb_ctl file failed, isApp[1], errno=No such file or directory
[libprocessgroup] set_timerslack_ns write failed: Operation not permitted
Loaded assembly: Xamarin.AndroidX.AppCompat.dll [External]
Loaded assembly: Xamarin.AndroidX.Activity.dll [External]
Loaded assembly: Xamarin.AndroidX.Lifecycle.Common.dll [External]
Loaded assembly: Xamarin.AndroidX.Lifecycle.ViewModel.dll [External]
Loaded assembly: Xamarin.AndroidX.SavedState.dll [External]
Loaded assembly: Xamarin.AndroidX.DrawerLayout.dll [External]
Loaded assembly: Xamarin.AndroidX.CustomView.dll [External]
Loaded assembly: Xamarin.AndroidX.Loader.dll [External]
[AppCompatDelegate] Checking for metadata for AppLocalesMetadataHolderService : Service not found
Loaded assembly: Xamarin.AndroidX.Lifecycle.Runtime.dll [External]
[System] A resource failed to call close.
Resolved pending breakpoint at 'App.xaml.cs:178,1' to void Inventura.App.d__18.MoveNext () [0x000ad].
Resolved pending breakpoint at 'App.xaml.cs:182,1' to void Inventura.App.d__18.MoveNext () [0x000d0].
Loaded assembly: Inventura.MauiControls.dll
Loaded assembly: Uno.Core.Extensions.Logging.Singleton.dll [External]
Loaded assembly: Uno.Core.Extensions.Logging.dll [External]
Loaded assembly: Microsoft.Extensions.Configuration.Abstractions.dll [External]
Loaded assembly: Microsoft.Extensions.Hosting.dll [External]
Loaded assembly: Microsoft.Extensions.FileProviders.Physical.dll [External]
Loaded assembly: Microsoft.Extensions.FileProviders.Abstractions.dll [External]
Loaded assembly: Microsoft.Extensions.DependencyInjection.dll [External]
Loaded assembly: Microsoft.Extensions.Logging.dll [External]
Loaded assembly: Uno.Extensions.Serialization.dll [External]
Loaded assembly: Uno.Extensions.Hosting.dll [External]
Loaded assembly: Uno.Extensions.Core.dll [External]
Loaded assembly: Uno.Extensions.Storage.dll [External]
Loaded assembly: Microsoft.Extensions.Configuration.dll [External]
Loaded assembly: Microsoft.Maui.Controls.Compatibility.dll [External]
Loaded assembly: Microsoft.Maui.Controls.Xaml.dll [External]
Loaded assembly: Xamarin.Google.Android.Material.dll [External]
Loaded assembly: System.ComponentModel.TypeConverter.dll [External]
Loaded assembly: Xamarin.AndroidX.Navigation.Runtime.dll [External]
Loaded assembly: BarcodeScanning.Native.Maui.dll [External]
Loaded assembly: Uno.Extensions.Localization.dll [External]
Loaded assembly: Microsoft.Extensions.Configuration.EnvironmentVariables.dll [External]
Loaded assembly: Microsoft.Extensions.Configuration.CommandLine.dll [External]
Loaded assembly: Microsoft.Extensions.Primitives.dll [External]
Loaded assembly: Microsoft.Extensions.Configuration.FileExtensions.dll [External]
Loaded assembly: Microsoft.Extensions.Configuration.Json.dll [External]
Loaded assembly: System.Text.Encoding.Extensions.dll [External]
Loaded assembly: Microsoft.Extensions.Options.dll [External]
Loaded assembly: Microsoft.Extensions.Logging.Configuration.dll [External]
Loaded assembly: Microsoft.Extensions.Options.ConfigurationExtensions.dll [External]
Loaded assembly: Microsoft.Extensions.Configuration.Binder.dll [External]
Loaded assembly: System.Threading.Tasks.Extensions.dll [External]
Loaded assembly: Microsoft.Extensions.Localization.Abstractions.dll [External]
Loaded assembly: Uno.Extensions.Serialization.Refit.dll [External]
Loaded assembly: Refit.dll [External]
Loaded assembly: Uno.Core.Extensions.Collections.dll [External]
Thread started:  #13
Thread started:  #14
Thread started:  #15
Loaded assembly: System.Runtime.Serialization.Json.dll [External]
Loaded assembly: System.Private.DataContractSerialization.dll [External]
Loaded assembly: System.Runtime.Serialization.Xml.dll [External]
Loaded assembly: System.Runtime.Serialization.Primitives.dll [External]
Loaded assembly: Xamarin.AndroidX.RecyclerView.dll [External]
Loaded assembly: Xamarin.AndroidX.CardView.dll [External]
Loaded assembly: Xamarin.AndroidX.CoordinatorLayout.dll [External]
Loaded assembly: System.ComponentModel.Primitives.dll [External]
[.lauscc.weboss] Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
[.lauscc.weboss] Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
Loaded assembly: CommunityToolkit.Mvvm.dll [External]
[memtrack] Couldn't load memtrack module
Loaded assembly: System.Linq.Expressions.dll [External]
Loaded assembly: CommonServiceLocator.dll [External]
[.lauscc.weboss] Accessing hidden method Landroid/view/View;->initializeScrollbars(Landroid/content/res/TypedArray;)V (greylist, JNI, allowed)
Loaded assembly: Newtonsoft.Json.dll [External]
[OPFD_Manager] Dark? false, OP Force ? false
[ViewRootImpl] The specified message queue synchronization  barrier token has not been posted or has already been removed
[ViewRootImpl] support adaptive color gamut feature!
[309] package:hr.lauscc.webossa took:15808 calssname:android.app.ActivityThread$H callback:null what:159
[SensorManager] registerListenerImpl sensorName:gravity  Non-wakeup,isWakeUpSensor:false,callingApp: hr.lauscc.webossa,callingPid:31968,callingUid:10147
[SensorManager] registerListenerImpl sensorName:gravity  Non-wakeup,isWakeUpSensor:false,callingApp: hr.lauscc.webossa,callingPid:31968,callingUid:10147
[ViewRootImpl] The specified message queue synchronization  barrier token has not been posted or has already been removed
[ViewRootImpl] The specified message queue synchronization  barrier token has not been posted or has already been removed
Loaded assembly: System.Runtime.Numerics.dll [External]
Thread started:  #16
[.lauscc.weboss] Accessing hidden field Landroid/widget/TextView;->mEditor:Landroid/widget/Editor; (greylist, reflection, allowed)
[.lauscc.weboss] Explicit concurrent copying GC freed 3550(328KB) AllocSpace objects, 3(60KB) LOS objects, 49% free, 4605KB/9210KB, paused 39us total 11.514ms
[AdrenoGLES-0] QUALCOMM build                   : 8e5405b, I57aaec3440
[AdrenoGLES-0] Build Date                       : 05/21/21
[AdrenoGLES-0] OpenGL ES Shader Compiler Version: EV031.32.02.10
[AdrenoGLES-0] Local Branch                     : mybranchebba1dbe-451b-f160-ac81-1458d0b52ae8
[AdrenoGLES-0] Remote Branch                    : quic/gfx-adreno.lnx.1.0.r135-rel
[AdrenoGLES-0] Remote Branch                    : NONE
[AdrenoGLES-0] Reconstruct Branch               : NOTHING
[AdrenoGLES-0] Build Config                     : S P 10.0.7 AArch64
[AdrenoGLES-0] Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
[AdrenoGLES-0] PFP: 0x016ee190, ME: 0x00000000
[View] requestLayout() improperly called by Microsoft.UI.Xaml.Shapes.Ellipse during layout: running second layout pass
[View] requestLayout() improperly called by Microsoft.UI.Xaml.Shapes.Ellipse during layout: running second layout pass
[Gralloc4] mapper 4.x is not supported
[Gralloc3] mapper 3.x is not supported
[OpenGLRenderer] Davey! duration=1738ms; Flags=1, IntendedVsync=77319836764721, Vsync=77319836764721, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=77319836841701, AnimationStart=77319837705451, PerformTraversalsStart=77319838352326, DrawStart=77321450882117, SyncQueued=77321504561127, SyncStart=77321504960815, IssueDrawCommandsStart=77321505183210, SwapBuffers=77321572069512, FrameCompleted=77321575795554, DequeueBufferDuration=127396, QueueBufferDuration=3272864, GpuCompleted=0,
[309] package:hr.lauscc.webossa took:1740 calssname:android.view.Choreographer$FrameHandler callback:null what:0
[Choreographer] Already have a pending vsync event.  There should only be one at a time.
[chatty] uid=10147(hr.lauscc.webossa) identical 1 line
[ViewRootImpl] support adaptive color gamut feature!
[Choreographer] Already have a pending vsync event.  There should only be one at a time.
Thread started:  #17
[DecorView] onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@16d2e13[MainActivity]
[ViewRootImpl[MainActivity]] windowFocusChanged hasFocus=true inTouchMode=true
Thread finished:  #17
The thread 17 has exited with code 0 (0x0).
Loaded assembly: ScanditCaptureCoreMaui.dll [External]
Resolved pending breakpoint at 'EmbeddedControl.xaml.cs:38,1' to void Inventura.MauiControls.CameraViewControl..ctor () [0x00008].
Resolved pending breakpoint at 'EmbeddedControl.xaml.cs:194,1' to void Inventura.MauiControls.CameraViewControl.CameraView_OnDetectionFinished (object sender, BarcodeScanning.OnDetectionFinishedEventArg e) [0x00001].
Resolved pending breakpoint at 'EmbeddedControl.xaml.cs:68,1' to void Inventura.MauiControls.CameraViewControl.d__6.MoveNext () [0x0001a].
Loaded assembly: Xamarin.AndroidX.Camera.Core.dll [External]
Loaded assembly: Xamarin.GooglePlayServices.MLKit.BarcodeScanning.dll [External]
Loaded assembly: Xamarin.GooglePlayServices.Base.dll [External]
Loaded assembly: Xamarin.Google.MLKit.Vision.Interfaces.dll [External]
Loaded assembly: Xamarin.AndroidX.Camera.View.dll [External]
Loaded assembly: Xamarin.AndroidX.Lifecycle.LiveData.Core.dll [External]
[CameraManagerGlobal] Connecting to camera service
[CamLifecycleController] Lifecycle is not set.
[CameraController] Use cases not attached to camera.
[CameraManagerGlobal] [soar.cts] ignore the status update of camera: 2
[CameraManagerGlobal] [soar.cts] ignore the status update of camera: 3
Loaded assembly: Xamarin.AndroidX.Lifecycle.LiveData.dll [External]
[CameraRepository] Added camera: 0
[SensorManager] registerListenerImpl sensorName:lsm6ds3c Accelerometer Non-wakeup,isWakeUpSensor:false,callingApp: hr.lauscc.webossa,callingPid:31968,callingUid:10147
[Camera2CameraInfo] Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_FULL
[CameraRepository] Added camera: 1
[Camera2CameraInfo] Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED
[CameraValidator] Verifying camera lens facing on OnePlus6T, lensFacingInteger: null
Loaded assembly: System.Threading.Tasks.Parallel.dll [External]
[CamLifecycleController] Lifecycle is not set.
[CameraController] Use cases not attached to camera.
[sqlite3_android] [IKR-38846] ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
[DynamiteModule] Considering local module com.google.mlkit.dynamite.barcode:10000 and remote module com.google.mlkit.dynamite.barcode:0
[DynamiteModule] Selected local version of com.google.mlkit.dynamite.barcode
Loaded assembly: Xamarin.Google.MLKit.Vision.Common.dll [External]
[TetheringManager] registerTetheringEventCallback:hr.lauscc.webossa
Loaded assembly: Xamarin.GooglePlayServices.Tasks.dll [External]
Loaded assembly: Xamarin.Google.MLKit.Common.dll [External]
Loaded assembly: Xamarin.Google.Android.ODML.Image.dll [External]
Loaded assembly: Xamarin.GooglePlayServices.Basement.dll [External]
Loaded assembly: Xamarin.Google.Guava.ListenableFuture.dll [External]
[SensorManager] registerListenerImpl sensorName:lsm6ds3c Accelerometer Non-wakeup,isWakeUpSensor:false,callingApp: hr.lauscc.webossa,callingPid:31968,callingUid:10147
[CamLifecycleController] Lifecycle is not set.
[CameraController] Use cases not attached to camera.
[CamLifecycleController] Lifecycle is not set.
[CameraController] Use cases not attached to camera.
[ProfileInstaller] Installing profile for hr.lauscc.webossa
Loaded assembly: System.Xml.XmlSerializer.dll [External]
Thread started:  #18
Thread started:  #19
[libc] Requested dump for tid 31968 (.lauscc.webossa)

I have the same problem. According to the log, the camera is restarted continuously because the dimensions have been adjusted.
I/EmulatedCamera3_QemuSensor( 1431): captureNV21: Dimensions for the current request (1280x720) differ from the previous request (1280x960). Restarting camera

I have the same problem too. I tried it with the CameraView of the community toolkit. This works..

Sorry, i don't have any experience with UNO...

I found a Solution for me. It sounds weird, but it looks like a render issue. I had the camera view in a . It worked after replacing with a

Any chance of some more hint on the fix. Camera doesn't render on the screen. Not sure what is happening when i navigates to the page second time @afriscic . First time the page loads correctly and the second load the page doesn't load the camera. I checked the handler it is initialized. Not sure why the rendering is not happening @rockit666  Can you please help if you have any finding. Stackpanel didn't fix it. Thanks in advance.

This looks to me like a Handler issue. Try not to call DisconnectHandler()
The thing is if a page is transient (new page gets created on each navigation) then you need to call DisconnectHandler() to prevent memory leaks. But if you previous instance of a page gets reused on navigation, than calling DisconnectHandler() would dispose the Handler instance and you wont have anything to connect to on second page navigation.

Thanks when reading through your issues I also read a comment very similar to this. I had to comment few lines in lib to make it working the Android CameraManager Dispose was causing these issues. I suppose whenever we are removing those camerapages it was calling disconnect handler and that dispose call caused the issue when it reinitialises second time. So I just commented the Executor and scanner interface dispose methods temporarily to see that fixes the issue. Creating a singleton Page and reusing it will solve the problem - But then if i disconnect it once i move back why doesn't it initialises second time - what stops it to do this? I need to use page on need basis only and I just don't want this page to exist as singleton. Can you tell me a better solution if it can work as scoped instance?

authors: DomagojJugovich afriscic philippnies rockit666 varuncogg


text:
插件认证失败

请问我一直认证失败是怎么回事？如何解决？更新到最新版motrix后就出现这个问题了。1.41版完全没问题。现在的情况是可以拦截下载，但是点击插件不能显示，只显示认证失败

你RPC密码填了啥？Motrix 随机产生的密码没那么长吧

原来是这样，已成功解决问题，谢谢，我把token地址填上去了

你RPC密码填了啥？Motrix 随机产生的密码没那么长吧

source: gharchive/issue

authors: agalwood huanghaobaobao

repo: agalwood/Motrix

license: MIT

license_type: permissive

license_source: github-api


text:
[Bug] Contributor Page - Contributors Not Updated and Dynamic (Hardcoded)

What happened?
Currently, the "Contributor" page on our GitHub repository is displaying a static list of contributors, which is hardcoded and not being dynamically updated. This issue hinders our ability to showcase the valuable contributions made by our active community members and may lead to inaccuracies in the displayed list.
How can we reproduce this bug?
Symptoms of the Issue:

Static List: The list of contributors on the "Contributor" page remains the same, regardless of any new pull requests or contributions made to the project. As a result, recent contributors are not being recognized and displayed on the page.

Incomplete Information: Since the list is hardcoded, it lacks essential details about each contributor, such as their GitHub username, profile picture, and contribution statistics. This limits the user's ability to identify and interact with individual contributors.

Manual Updates: To keep the list up-to-date, the current process requires manual intervention, making it prone to human errors and time-consuming for maintainers.

Proposed Solution:
To address this issue and make the "Contributor" page more accurate and dynamic, we propose the following steps:

Implement GitHub API Integration: We will integrate the GitHub API into our "Contributor" page to fetch real-time data about contributors and their contributions. This will allow us to access up-to-date information without relying on hardcoded data.

Dynamic Rendering: With the help of the GitHub API, we will dynamically render the list of contributors on the "Contributor" page. The list will be automatically updated whenever a new contribution (e.g., pull request) is made, ensuring that all active contributors are acknowledged.

Detailed Contributor Information: By utilizing the GitHub API, we can fetch detailed information about each contributor, such as their GitHub username, avatar, and contribution statistics. This will enrich the user experience and encourage more interaction with contributors.

Automated Updates: The integration of the GitHub API will eliminate the need for manual updates, ensuring that the "Contributor" page remains accurate and up-to-date at all times.

User-Friendly Display: We will design the "Contributor" page to present the list of contributors in an organized and user-friendly manner. Users will be able to easily browse and explore the profiles of individual contributors.

Testing and Validation: Before deployment, we will thoroughly test the functionality of the dynamic "Contributor" page to ensure that it fetches and displays data accurately from the GitHub API.

Desktop Information (Optional)
No response
Urgency (Optional)
High priority
Record

[X] I agree to follow this project's Code of Conduct
[X] I have checked the existing issues
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

@agamjotsingh18 ,please assign me this issue

Sure @Nishitbaria

Hey @Nishitbaria , please fetch the latest code as just now merged a pr on contributors page regarding hover effect, so to avoid merge conflicts

@agamjotsingh18        ok


text:
⚠ Integration (redirect) has degraded performance

In a6044a5, Integration (redirect) (https://integration.ageg.ca/) experienced degraded performance:

HTTP code: 200
Response time: 675 ms

Resolved: Integration (redirect) performance has improved in 78c90cf.


text:
Add documentation to workout methods

Add documentation to workout methods

getWorkout
saveWorkout

We currently have an implementation for them, but the documentation is missing

Hello, could you assign this issue to me please?

Hey @TDDR! For sure, just added you as an assignee. Let me know if you need any help with this one

Hey @lucaspbordignon, I have been looking into the code trying to figure out the implementation. After looking into the documentation a little closer I was just wondering if I actually need to own a HealthKit in order  to properly document it?

Hey @TDDR and @seidbar! I'm also not sure what exactly you mean with owning a HealthKit, could you clarify that for us?
Regarding documenting it though, you need a device with HealthKit in order to test the functionality itself, whether a physical iPhone or a simulator
As @TDDR mentioned, we do need also to add the capabilities to Xcode in order for the library to have access to the HealthKit. We do have a section that describes this need, but we should definitively make it more explicit

If step 6 of the mentioned section would move up to the 'Getting started' section that should suffice to get started.
A sample project would be neat. I put something together using functional components and would gladly participate in enhancing the documentation as I use the package more thoroughly.

Hey @TDDR and @seidbar! I'm also not sure what exactly you mean with owning a HealthKit, could you clarify that for us?
Regarding documenting it though, you need a device with HealthKit in order to test the functionality itself, whether a physical iPhone or a simulator
As @TDDR mentioned, we do need also to add the capabilities to Xcode in order for the library to have access to the HealthKit. We do have a section that describes this need, but we should definitively make it more explicit

I proposed a change to resolve this.

@TDDR No problem with that! We have an open issue to create a sample project for the library. We might be able to have that running using Expo Snack or anything related, so we don't require everybody to have an iPhone to play around with the library
But thank you for the support still! Let us know if have any additional idea for the project or you eventually feel ready to contribute to it! :)

Note: getWorkout and getSamples can be used to fetch workouts. One of them should be removed to eliminate duplicate code. Issue about it: https://github.com/agencyenterprise/react-native-health/issues/20

authors: Frans-L TDDR lucaspbordignon seidbar

repo: agencyenterprise/react-native-health


text:
update the mongodb client to 3.6.x ?

If embedded php mongodb client could support the new mongodb+srv:// connect string uri pattern that would make working with replica sets much easier.

could you point me to the related mongodb docs?

authors: aheinze vombor

repo: agentejo/cockpit


text:
add stack LTS builder to Travis builders

@3noch noticed that I prematurely updated to the latest version of cassava and megaparsec. These latest versions were not available on stackage, so stack failed to create a build plan. A CI builder would help to catch such mistakes.

Relevant link: https://www.fpcomplete.com/blog/2016/02/updated-haskell-travis-config

N.B. I have a patch (and reversion patch) to upgrade to megaparsec 0.6 once it is available on stackage.

It would be nice to add a macOS builder to travis as well. That's included in the link above.

license: unlicense

license_source: bigquery


text:
RPI 3B+ network not working

Build image core-image-full-cmdline for Raspberry3-64.
Image starts without errors but dhcp doesn't work.
With tcpdump enabled and eth0 in promiscous mode DHCP works.
Seems linke some initialization of eth0 is missing.
Steps to reproduce the issue:
Build image  core-image-full-cmdline
openembedded-core
meta-poky
meta-oe
meta-python
meta-perl
meta-networking
meta-security
meta-raspberrypi_priv https://github.com/GreSuh/meta-raspberrypi
but same problem with latest https://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/ layer
Describe the results you received:
no IP Address
Describe the results you expected:
System with IP-Address
Additional information you deem important (e.g. issue happens only occasionally):
Additional details (revisions used, host distro, etc.):
sumo
DISTRO
poky
DL_DIR
/build/downloads
IMAGE_FSTYPES
rpi-sdimg tar.bz2 ext4
IMAGE_INSTALL_append
kernel-modules
PACKAGE_CLASSES
package_rpm
SSTATE_DIR
/build/sstate-cache
PREFERRED_PROVIDER_virtual/kernel
linux-raspberrypi-dev
RPI_USE_U_BOOT
1

same problem with default kernel

I suspect a problem with the startup infrastructure.  When I boot the current sumo eth0 works fine, but the MAC address is not the one assigned to the device.  /proc/cpuinfo on other machines provides a serial number from which network addresses are derived; this is not present in the raspberrypi-64 build.  Interestingly the wlan0 mac address is correct.
Check whether the mac address you get on boot matches what you expect in your DHCP server.

This is probably #253.

This is probably #253.
In my setup i updated the machine definition to match raspberry3 device list.

I hit the same issue lately. It should get fixed by @pabigot 's PR.

@GreSuh this issue should be fixed now in sumo and master branches. Please give it a try.

Thanks for todays changes on sumo. Network seems to work now. :)

@GreSuh we owe @pabigot a :beer:

authors: GreSuh agherzan pabigot

repo: agherzan/meta-raspberrypi

license: mit


text:
[WIP/RFT] Rocko Backports

Apologies these are so late, things have been busy!
Changes
Changes to the kernel and firmware are backported along with a couple of other minor fixes.
I've left out the following which could be candidates for backporting. These aren't really things I use heavily though so advice and testing from others would probably be needed to help here:

bluez5
userland
linux-firmware-raspbian

Testing
I've booted tested on all RPi variants I have but that doesn't include an RPi 3 B+.
Testing from anyone with access to an RPi 3 B+ would be much appreciated! Otherwise you'll all have to wait for me to order one some time next week. I wanted to make sure people see some progress here though as I know I'm a bit behind on backports.

Hi, for me it boots to raspberry pi 3b+ using my custom image (with all sort of Qt 5 stuff and eglfs)
Bluetooth is working but WiFi does not.

I found the firmware for the WiFi seems to be working. I will continue testing.
Found a bug: reboot is not working

Reboot problem was due to upgrading the build system. For me now it works now

Thanks for the testing!

source: gharchive/pull-request

authors: betafive davidweisgerber


text:
Project.df() has index columns out of order

Multi-index must be the other way around. As a result, you cannot (say) index by well to get a plot.

I think this can be closed ? @kwinkunks

Looks good, thank you Patrick!

authors: kwinkunks patrick-reinhard

repo: agile-geoscience/welly


text:
undefined method `exposures' for Entity::Class

I have a problem with testing grape entities.
Error text: undefined method 'exposures' for ExampleEntity:Class. Did you mean?  expose
Line: /Users/denyszemlianoi/.rvm/gems/ruby-2.7.2@test_project/gems/grape-entity-matchers-1.3.0/lib/grape_entity_matchers/represent_matcher.rb:65
Gemfile.lock
    grape-entity (0.8.2)
      activesupport (>= 3.0.0)
      multi_json (>= 1.3.2)
    grape-entity-matchers (1.3.0)
      grape-entity (>= 0.5.0)
      rspec (>= 3.2.0)

Code
require 'grape-entity-matchers'
RSpec.describe ExampleEntity do
  subject(:entity) { described_class }

  describe 'when fields are correct' do
    describe '#id' do
      it { is_expected.to represent(:id).with_documentation(type: String, required: false) }
    end
  end
end

Does anyone have any suggestions? Maybe it depends on too high version of grape-entity?

I was having the same issues, and, from what I can tell, it does not look like this project is being maintained anymore. I just extracted the code I used and started the project rspec-grape-entity.

repo: agileanimal/grape-entity-matchers


text:
Jenkins: Vagrant boxes for AWS and Virtualbox

Outcome
Vagrant .box files for

AWS
Virtualbox

Packer templates and Vagrantfiles for the same.
Purpose

Create reusable environment for workshops
Enable easier setup by IT guys preworkshop
Use this as post-workshop practice environment

Contents
The box will contain the following:

Jenkins
Ansible
Vagrant
Docker
Maven
Git

This issue is basically fixed; waiting for testing of Packer box.

Packer-built boxes for Virtualbox and AWS are tested; closing.

repo: agilityroots/vagrant-toolchains


text:
How about room mapping instead of trilateration?

The main problems with trilateration are:

there have to be as many proxies as there are areas to track
in practice proxy placement can't always be ideal and/or antenna gain can vary, causing areas to bleed over each other
there can't easily be any dead-space, e.g. a user being outside the home in the garden will get detected as being in a nearby room

Mapping could solve these
We'd do room calibration by walking around with a beacon e.g. into each corner of an area, capturing the RSSI to all proxies.
These points would effectively create a polygon corresponding to that area.
Doing this for each area would effectively create a map (in the proxy RSSI space).
And the beacon would be assigned a given location when it's within that polygon (likely with a bunch of heuristics fuzzing the edges).
Side benefits
Any overlap in the areas would quickly indicate problematic areas to the end user.
These could be handled by:

changing proxy placement or orientation (unfortunately requiring remapping)
prioritizing areas e.g. if it's better to be detected in one over another
manually adjusting the mapping

Any space between the areas most likely corresponds to wall attenuation.
We could allow marking which areas are touching, to eliminate these and always assign one or the other when a beacon ends up in between.
Challenges
The RSSI also depends on the beacon strength, so the math has to be normalized/relative.
In the sense that e.g. coordinates (50, 30, 10) from a strong beacon are the same as (5, 3, 1) from a weak beacon (grossly oversimplifying of course).
RSSI to far away proxies is likely going to be very variable, so there will have to be heuristics to either:

only use a few nearest proxies
have a wider margin of error depending on RSSI

The map effectively has as many dimensions as there are proxies, and various points will only have coordinates for some of them. This would make visualizing the data a bit difficult and may make debugging complex cases challenging.
In general there will likely have to be many heuristics to make this work well, which also implies many tunable parameters, which is both good and bad.
P.S.
I'm definitely willing to help with this, especially the math.
Unfortunately I'm not familiar with python, nor hass internals, so I'd be quite clumsy.
I'd expect the UI to be the main difficulty as this will involve a fair number of mapping interactions, visualization/debugging helpers.

P.P.S.
Despite the title this doesn't actually have to be done instead of trilateration.
It could just be an addition to solve problematic areas;)
Meaning that by default everything is as it currently is, and if there's a problematic area, then the user could map it.

I think both is needed in the end, trilateration to get x,y(,z) then map to floorplan to get area/room.
Or at least have proxy location x,y in floorplan instead of proxy=area 1-on-1 mapping.

Hmm I don't think you'll get reliable real-world space coordinates, hence why I said "in RSSI space".
The two are strongly correlated but not in a simple way.
If you could record a bunch of realworld x,y,z position accurately along with the corresponding RSSIs you could create the complex map from RSSI to realworld. But I feel like that's overcomplicating it for no real gain.
Just having the area's mapped into RSSI space (or whatever measure is used, sorry, I'm actually not sure) should make it fairly simple and hopefully good enough for the intended purpose.
Also keep in mind RSSI is not static, e.g. it'll strongly depend on whether a door is closed or open between two rooms. Or on where your beacon vs your body is e.g. phone in pocket with your body between it and the proxy will attenuate a lot vs holding a phone out. Besides no antenna is ever perfectly omnidirectional.
Point being that imho realworld positioning is going to be inaccurate enough to be useless (except maybe in large open spaces with proxies on the ceiling).

@agittins I started experimenting on a hackish proof-of-concept for this.
So I guess the main question is how open are you to such a thing?
Should I share it as a pull request and/or give more details?
Mathematically it's not all that different, what you have right now is kindof like a voronoi diagram, my suggestion is to instead allow mapping those regions arbitrarily. It'll still work best if there's a device in each area, and I doubt that'll change dramatically.
The main difference comes down to setup/tuning, in what I'm suggesting in configuration you'd select a beacon and area, click start, walk around with the beacon in that area, click save. Then do that for all areas you want to map.

I'd like to throw on my two cents.
I case room level accuracy is enough, and I think it is enough for the vast amount of people, then a neural network is a great candidate.
People can train the NN for each room and even "simulate" different conditions, like doors open, phone in hand or in pocket and so on.
The inputs for the NN are the beacons while, for starters, a single layer representing rooms would be worth a try.

I am really for being able to map room would increase my accuracy massively.
As I see it the currently method assumes rooms are circular and the bluetooth detection point is in middle of the room. I have Shelley 1 and 2 PM behind all my wall switches as well as some other bluetooth proxies so some of my room I have multiple shelley's in the same location for multiple rooms (or even 1 single shelley 2 for 2 rooms) and in one place I have 2 shelley's in the corner of 3 rooms.
So being able to map a room based upon 2 or 3 points will make it so much more accurate. As it is now I can stand in the middle of my lounge room and not move and my location will jump between 2 or 3 rooms.

Sorry I just haven't had time to explain the situation here, life has been way too busy for me to get into it - despite attempting a few drafts over the last few weeks :-)
Suffice to say - Bermuda does not currently use trilateration at all, and as you'll see in a lot of places, it's next on the cards.
The current area detection is deliberately described as a "naive, simplistic nearest-area" match, and in no way a trilateration attempt.
I have set plans for the next phase, and there's plenty of writing about how I plan to do so. Sorry I don't have time right now to map it out but there's over a years' worth of discussion in the existing issues and threads that should help for now, and contribs are very welcome but there's significant context and discussion to get up to speed on to be able to get into the nitty gritty. One thing I seem to keep learning is that ideas are the easy bit, the implementations are hard :-)

@agittins No problem. I'll try to post my current hacks soon-ish. Python's not my thing and my editor was being a bit troublesome so sorry for what you'll see there;p
At the moment just consider it a curious experimental branch.
@gheydon  Ok, you might be a good test-case for this:) I have too few proxies.
In general so far the data looks much worse than I hoped, so I doubt this'll ever work well with any less than 1 per area (though that depends on the use-case).
Anyway will you be up for lots of early testing?
@dekiesel Yeah, it's probably the most classic application for NN. Though at such small scale it's apparent that it's just curve fitting based on statistics. So calling it AI/NN/etc isn't necessary unless someone wants to find investors;)

@timon37 @agittins
Do you have a floor plan creation/visualization in mind to display the Bermuda location even if it iis roughly accurate?
https://github.com/ExperienceLovelace/ha-floorplan
https://github.com/createcandle/homeRoughEditor
https://github.com/ESPresense/Floorplan-Creator
https://espresense.com/companion/configuration/

@timon37
I have a few Shelly plugs acting as btproxies and Shelly blu buttons as ble emitters and I would love to try out your current hacks using them to roughly locate/classify where the button press happened . Count me in as a beta tester

@dekiesel Yeah, it's probably the most classic application for NN. Though at such small scale it's apparent that it's just curve fitting based on statistics. So calling it AI/NN/etc isn't necessary unless someone wants to find investors;)

That investor comment hit a bit too close to home :D
I still think it's the best choice since it's easy to scale to any number of beacons and it can get us basically as close as we want to the best fitting function.
But as @agittins said, ideas are cheap. I'm in the process of renovating and moving and it'll be some time until I have a setup that's right for testing neural networks as a possible solution.

@saket424 Personally I'm explicitly aiming to not need any "real coordinate map", and so far it seems unfeasible to have them (to me). But I've been surprised many times in life so who knows what others come up with.
@dekiesel Yeah, I've struggled with hand tuning mediocre heuristics often enough that I'm warming up to the idea quite quickly already:)
I hope late next week I should have enough time to make it such that it can be used besides bermuda without interfering with it. So you can test without screwing up your current setup.
In the meantime a spoiler screenshot of a debug graph:

And some example stats which show that e.g. 'corridor' in my case is basically undetectable with the sensor placement (and not so great heuristics) that I have.

authors: agittins dekiesel gheydon saket424 tbrasser timon37

repo: agittins/bermuda


text:
persistent sqlite example produces an error in MflowPersistent.hs

Stuart • 2 days ago
This doesn't seem to work. The "click here" after the blog post goes to page not found
http://mflowdemo.herokuapp.com/noscript/databasesamples/mflowpersist#comment-1452941811

On trying to find the exact request that caused this, I think I may have broken the server. This is the command line I used:
while exec 5>&1; stat="$(curl -s -vvvvv -o /dev/null --trace-ascii - --trace-time 'http://mflowdemo.herokuapp.com/noscript/databasesamples/mflowpersist' -H 'Cookie: flow=1423997006; cookieuser=user;' --data 'p0=a&p1=1&p2=enter' |tee /dev/fd/5)"; [[ "$(echo $stat | head -n1 | tr -d '\r')" == "HTTP/1.1 200 OK" ]]; do sleep 20; done
It seems like leaving out &p2=enter is what broke it, but I'm not sure. If you get the server running again, and the omission of &p2=enter no longer kills it, the script should provoke the 404 within 5 requests.
Here's the output of a previous, less verbose version:
$ while stat="$(curl -s -o /dev/null -D /dev/stdout 'http://mflowdemo.herokuapp.com/noscript/databasesamples/mflowpersist' -H 'Cookie: flow=1423997006; cookieuser=user;' --data 'p0=a&p1=1&p2=enter' | head -n1 | tr -d '\r')"; echo "$stat" | xxd; [[ "$stat" == "HTTP/1.1 200 OK" ]]; do sleep 20; done
0000000: 4854 5450 2f31 2e31 2032 3030 204f 4b0a  HTTP/1.1 200 OK.
0000000: 4854 5450 2f31 2e31 2032 3030 204f 4b0a  HTTP/1.1 200 OK.
0000000: 4854 5450 2f31 2e31 2034 3034 204e 6f74  HTTP/1.1 404 Not
0000010: 2046 6f75 6e64 0a                         Found.

I´m looking at it. Some problems with cabal for rebuilding the examples with the latest Yesod stuff

@agocorona The problem seems to have been fixed?

Hi Janus:
All the Yesod framework seems to change from version to version in
incompatible ways. and it is hard to keep compatibility from one version to
other.
Currently I'm implementing MFlow and hplayground over Transient, a new
monad that have many advantages.
https://www.fpcomplete.com/user/agocorona/EDSL-for-hard-working-IT-programmers
If you absolutely need it, I can take a deeper look at the bug. I think
that the best option to interface TCache with a SQL database is to target
it directly instead of using an intermediate layer such is Persistent.
2015-07-09 0:32 GMT+02:00 Janus Troelsen notifications@github.com:

@agocorona https://github.com/agocorona The problem seems to have been
fixed?
—
Reply to this email directly or view it on GitHub
https://github.com/agocorona/MFlow/issues/42#issuecomment-119750132.

--
Alberto.

I do not need it, I am just asking for curiosity and to understand. I am glad the project is progressing.

authors: agocorona ysangkok

repo: agocorona/MFlow


text:
Testing with nock returns network request failed.

Hi,
no matter the url I use to nock I always get REQUEST action dispatched twice,
once with meta, payload as undefined and once with error: true and payload:[RequestError: Network request failed] .
Is there any solution to this? or something that I can do to debug it?
  it("creates FETCH_FILES_SUCCESS when fetching files has been done", () => {
    nock("http://localhost:3000/")
      .get("/jessica/hyde/files")
      .reply(200, { data: []});

    const expectedActions = [
      { type: types.FETCH_FILES_REQUEST, meta: undefined, payload: undefined },
      {
        type: types.FETCH_FILES_SUCCESS,
        meta: undefined,
        payload: {
          entities: {},
          result: {}
        }
      }
    ];

    const store = mockStore({ files: []});

    return store
      .dispatch(
        actions.loadFiles({
          user: { data: { username: "jessica" } },
          slug: "hyde"
        })
      )
      .then(() => {
        // return of async actions
        expect(store.getActions()).toEqual(expectedActions);
      });
  });

(awesome plugin though, really appreciate it :) )
Using the next branch.

Hi @koox00,
This package's tests use nock themselves -- see https://github.com/agraboso/redux-api-middleware/blob/next/test/index.js#L1270 for reference.
I think you need to set a content type on the mocked response: .reply(200, { data: []}, { 'Content-Type': 'application/json' }), but I don't know enough about your project/setup to help much more. If you can't resolve it, a simple demo repo might help debug

Thank you @nason , I will also try stackoverflow as it is more appropriate.
The second thing is that instead of a FAILURE type action on the network failure, a REQUEST type gets dispatched with error:true. I will try to reproduce it in a demo repo over the weekend and post my findings

I've made a demo repo with just one test and one action. It fails with the same error.
Can you check it out: https://github.com/koox00/redux-api-middleware-simple-case

Hi @koox00, thanks that made things a lot simpler! In your case, it looks like the request is failing due to CORS checks. Changing the nock setup to look like
    nock("https://api.github.com")
      .get("/users/jessicahyde")
      .reply(200, {
        data: { id: "id" },
      }, {
+        'Access-Control-Allow-Origin': '*',
        'Content-type': 'application/json'
      });

Gets the test to pass for me.

Another option that's new in 2.0/next is the ability to mock global fetch. That would look more like:
const mockResponse = (status, statusText, response) => {
  return new window.Response(response, {
    status: status,
    statusText: statusText,
    headers: {
      'Content-type': 'application/json'
    }
  });
};

window.fetch = jest.fn().mockImplementation(() =>
  Promise.resolve(mockResponse(200, null, JSON.stringify({data: { id: "id" }}))));

Instead of nock, and would avoid hitting the network layer entirely.
Hope that helps resolve your issue!

Yeap that did the trick in the demo!
Not in my real app though. Seems that something else is missing too.
It would be super nice if we could have more detailed errors.
e.g:
nock without using the middleware informs that the expected url didn't match the actual one, using the middleware we only get Network request failed.
Anyway mocking jest did the trick !!

Thanks @nason's answer, it's also work for me 👍

authors: AllenFang koox00 nason

repo: agraboso/redux-api-middleware


text:
Incorrect rows/columns comment

https://github.com/agyorev/Eigenfaces/blob/202e8f517f89722199a55d5e36597dc75d0b61b0/eigenfaces.py#L102
As per the np.linalg.eig docs, the vectors are column wise, not row wise
https://docs.scipy.org/doc/numpy-1.15.1/reference/generated/numpy.linalg.eig.html

I think the line need to be deleted and the code can be run

I think the line need to be deleted and the code can be run

Yes, you're right.

@clhne submitted a fix so now it should work. Thanks everyone!

authors: agyorev cdilga clhne zhji2822

repo: agyorev/Eigenfaces


text:
numbered list at start of field becomes a header

This rule: [r"^\s\d\.", r'#'] converts:
 1. list item one
 2. ...

Into
# list item one
 2. ....

which is clearly not right

see protoch ticket 510 description

Probably the rule should be [r"\n\s\d+.\s", r'\n\d+.\s'] or something like that.

for now, commented out that translation rule

repo: ahelsing/tratihubis


text:
Minterms not covered by epis

Added a function to return uncovered minterms from a vector of implicants.

@MohamedEbrahem1 It seems like the unit tests are failing due to having a wrong include in uncovered_minterms file as #include "minterm.h" is not found. I believe it should be #include "../logic_utils/minterm.h" as your new file is in qm folder while minterm.h is in logic utils. Could you please fix it so we can proceed with the PR?

repo: ahmed-alllam/AlphaLogos


text:
Give more document space to the DNS setup step

LOVING this tutorial so far, but I noticed one issue on this page:
https://github.com/ahmetb/gke-letsencrypt/blob/master/40-deploy-an-app.md

After it works, update your domain name records (at your domain registrar or DNS provider) with this IP address.

This is a critical instruction, but you presented it as a single line with no highlight or bullet or anything. It's easy to gloss over instructions like this. I understand not wanting to link to every conceivable DNS update mechanism, but can you just make this take up more space on the page? Even something as simple as adding a bullet or some bold would help it stand out. (Notably, the other instructions on the same page don't need anything extra, because they're followed by code blocks.)
Great job on this tutorial in general, I was really struggling with cert-manager until I found it!

I'm not asking for more detailed instructions, just literally more space on the page so your eyes don't skip over this, and so you can find where, in the process, you expect this to happen. I'll send a PR.

[https://github.com/ahmetb/gke-letsencrypt/pull/5](PR #5 to add some bold)

repo: ahmetb/gke-letsencrypt


text:
Atomic Disassembler interaction with EnderZoo

One of the newer mobs in EnderZoo is triggered to spawn when dirt isn't broken with a "shovel". Dirt broken with the Atomic Disassembler is triggering this spawn, making the AD all but useless as a shovel where both mods are installed. (Current workaround is to deactivate the EZ mod.)
MC 1.7.10
Mek 8.1.9
EZ 1.0.15.32

Already reported. Definitely a strange interaction

authors: Karmacopper aidancbrady

repo: aidancbrady/Mekanism


text:
Obsidian leggings give +12 armor

Obsidian leggings are way out of balance with the other leggings and other obsidian pieces. Well, actually, MOST of the tools and armor are completely out of balance with both vanilla and other mods (for example, you have to go to Draconic Evolution to find other swords that beat out the default 14 damage your obsidian swords does, and that's BEFORE enchants. And Bronze does 10?). However, I'm assuming the leggings are a bug given just how out of line they are, combined with the fact that tweaking the config doesn't seem to effect them at all.

Fixed- somehow armor balance values were reversed for armor indices.


text:
Update aiida-core requirement to allow aiida-core 2.0

Since reentry is not installed for aiida-core 2.0 these errors are ignored in the CI

@greschd I think the repository settings for required checks for a PR also have to be adjusted. The expected tests tests (3.9, django) and tests (3.9, django, -e) no longer exist

Thanks @janssenhenning!

authors: greschd janssenhenning

repo: aiidateam/aiida-testing


text:
How do you even use this?

This project is missing pretty much all usable documentation, same for Spigot and Bukkit and Paper as well. I don't know how anybody learns how to use any of this.
I'm just trying to make a long running task in a separate thread and all I have to go on is old questions people have asked which talked about this project because there's never any proper well-written up-to-date and short and concise tutorials anywhere. A bunch of Spigot threads dumped me here and I'm still lost.
The Usage page on the wiki is all I have on how to use this and it's not even a tutorial, it's just a copy and paste blob of code that doesn't make any kind of sense at all.
Can we start with a HelloWorld tutorial that's as short and simple as possible then progressively explain each and every feature stepping me through bit by bit one at a time with each tutorial being as small, short, and simple as possible until we progress to the intermediate and then advanced stages.
I'm never going to understand any of this without that and I don't see how anybody else can either. Why do developers almost exclusively just give a giant mutli-page blob of code and then expect everyone to figure it out on their own?
Sorry for rant, I feel like I'm climbing mount everest and back just to do the simplest things which adds days and weeks to the simplest plugins because there's almost always never any tutorials anywhere by anyone unless it's 10 years out of date and poorly written. It's often just here's a blob of code or JavaDoc, figure it out yourself.

Creating documentation takes time which is generally in short supply.
This issue tracker does not exist for the purpose of support conversations about using TaskChain. With that being said. There is a fair amount of documentation for this project.
See...
https://github.com/aikar/TaskChain/blob/master/README.md

There are many examples on this page: https://github.com/aikar/TaskChain/wiki/Usage

authors: aikar chickeneer junebug12851

repo: aikar/TaskChain


text:
Update tests.ak

update to 'use cardano/transaction.{Datum, InlineDatum}'

This test uses stdlib 1.9.0 still, so this change would make it fail. Unless strictly necessary though, we don't have to update this.

no not strictly necessary, disregard

thanks though ❤

authors: KtorZ johnnygreeney rvcas

repo: aiken-lang/aiken


text:
Mcts helper v2

Другая версия работы MCTSHelper. Сделан новый класс потомок от GraphVocabularyEnvironment, содержащий helper как поле. step сделан отдельной функцией. Теперь GraphVocabularyEnvironment можно использовать не только в mcts, а вот для использования поиска нужно создать хелпер и использовать версию Environment специально созданную для MCTS

Структурировать новые классы и функции. Далее можно сливать с master

authors: Huowl MikhailChaikovskii

repo: aimclub/rostok


text:
Server Error

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'myshop.mshop_locale_site' doesn't exist: SELECT mlocsi."id" AS "locale.site.id", mlocsi."siteid" AS "locale.site.siteid", mlocsi."code" AS "locale.site.code", mlocsi."label" AS "locale.site.label", mlocsi."config" AS "locale.site.config", mlocsi."status" AS "locale.site.status", mlocsi."icon" AS "locale.site.icon", mlocsi."logo" AS "locale.site.logo", mlocsi."rating" AS "locale.site.rating", mlocsi."ratings" AS "locale.site.ratings", mlocsi."refid" AS "locale.site.refid", mlocsi."theme" AS "locale.site.theme", mlocsi."editor" AS "locale.site.editor", mlocsi."mtime" AS "locale.site.mtime", mlocsi."ctime" AS "locale.site.ctime" FROM "mshop_locale_site" mlocsi WHERE ( mlocsi."code" = 'default' ) ORDER BY mlocsi."id" ASC LIMIT 1 OFFSET 0

Have there been any errors during setup? Seems like the database tables haven't been created

Thank you. It's now working

authors: aimeos kawsarujjaman

repo: aimeos/aimeos


text:
Release/v1.1.0

New updates:

Fix invalid receipts error with rest function call
Tweak transfer gc rule (with new min_gc_num_siblings_deleted = 10)
Add dryrun json rpc API (ain_sendSignedTransactionDryrun) for gas fee estimation
Improve UX for blockchain tools (avoid bandage file info logging and ain_blockchain_data dir creation)

Thanks for the review! Now merging.. @woomurf

repo: ainblockchain/ain-blockchain


text:
Consumer config

Is line 110-111 here redundant? It's not clear to me why we set self.name but then don't use it.
https://github.com/aineko-dev/aineko/blob/9eb368352d637ca01ca147b6759895a1d3d89335/aineko/core/dataset.py#L103-L115

I'm doing a deep dive of the Kafka setup right now, came across this. Obviously not high priority or blocking but context here would be helpful to know if I'm missing something around how we're using this class / setting config.

We're using it to describe the consumer in:
https://github.com/aineko-dev/aineko/blob/9eb368352d637ca01ca147b6759895a1d3d89335/aineko/core/dataset.py#L164-L166 and
https://github.com/aineko-dev/aineko/blob/9eb368352d637ca01ca147b6759895a1d3d89335/aineko/core/dataset.py#L210-L214

repo: aineko-dev/aineko


text:
Tests are failing with python 3.6

Hi,
it looks like aiosmtpd tests down't work with python 3.6.
[   45s] ==================================== ERRORS ====================================
[   45s] ____________ ERROR collecting aiosmtpd/tests/test_proxyprotocol.py _____________
[   45s] /usr/lib/python3.6/site-packages/pluggy/hooks.py:286: in __call__
[   45s]     return self._hookexec(self, self.get_hookimpls(), kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:93: in _hookexec
[   45s]     return self._inner_hookexec(hook, methods, kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:87: in <lambda>
[   45s]     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:224: in pytest_pycollect_makeitem
[   45s]     res = list(collector._genfunctions(name, obj))
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:409: in _genfunctions
[   45s]     self.ihook.pytest_generate_tests(metafunc=metafunc)
[   45s] /usr/lib/python3.6/site-packages/pluggy/hooks.py:286: in __call__
[   45s]     return self._hookexec(self, self.get_hookimpls(), kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:93: in _hookexec
[   45s]     return self._inner_hookexec(hook, methods, kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:87: in <lambda>
[   45s]     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:133: in pytest_generate_tests
[   45s]     metafunc.parametrize(*marker.args, **marker.kwargs)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:953: in parametrize
[   45s]     ids = self._resolve_arg_ids(argnames, ids, parameters, item=self.definition)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:1007: in _resolve_arg_ids
[   45s]     ids = idmaker(argnames, parameters, idfn, ids, self.config, item=item)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:1197: in idmaker
[   45s]     for valindex, parameterset in enumerate(parametersets)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:1197: in <listcomp>
[   45s]     for valindex, parameterset in enumerate(parametersets)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:1184: in _idvalset
[   45s]     if ids is None or (idx >= len(ids) or ids[idx] is None):
[   45s] E   TypeError: 'dict_keys' object does not support indexing
[   45s] ____________ ERROR collecting aiosmtpd/tests/test_proxyprotocol.py _____________
[   45s] /usr/lib/python3.6/site-packages/pluggy/hooks.py:286: in __call__
[   45s]     return self._hookexec(self, self.get_hookimpls(), kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:93: in _hookexec
[   45s]     return self._inner_hookexec(hook, methods, kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:87: in <lambda>
[   45s]     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:224: in pytest_pycollect_makeitem
[   45s]     res = list(collector._genfunctions(name, obj))
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:409: in _genfunctions
[   45s]     self.ihook.pytest_generate_tests(metafunc=metafunc)
[   45s] /usr/lib/python3.6/site-packages/pluggy/hooks.py:286: in __call__
[   45s]     return self._hookexec(self, self.get_hookimpls(), kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:93: in _hookexec
[   45s]     return self._inner_hookexec(hook, methods, kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:87: in <lambda>
[   45s]     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:133: in pytest_generate_tests
[   45s]     metafunc.parametrize(*marker.args, **marker.kwargs)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:953: in parametrize
[   45s]     ids = self._resolve_arg_ids(argnames, ids, parameters, item=self.definition)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:1007: in _resolve_arg_ids
[   45s]     ids = idmaker(argnames, parameters, idfn, ids, self.config, item=item)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:1197: in idmaker
[   45s]     for valindex, parameterset in enumerate(parametersets)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:1197: in <listcomp>
[   45s]     for valindex, parameterset in enumerate(parametersets)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:1184: in _idvalset
[   45s]     if ids is None or (idx >= len(ids) or ids[idx] is None):
[   45s] E   TypeError: 'dict_keys' object does not support indexing
[   45s] ____________ ERROR collecting aiosmtpd/tests/test_proxyprotocol.py _____________
[   45s] /usr/lib/python3.6/site-packages/pluggy/hooks.py:286: in __call__
[   45s]     return self._hookexec(self, self.get_hookimpls(), kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:93: in _hookexec
[   45s]     return self._inner_hookexec(hook, methods, kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:87: in <lambda>
[   45s]     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:224: in pytest_pycollect_makeitem
[   45s]     res = list(collector._genfunctions(name, obj))
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:409: in _genfunctions
[   45s]     self.ihook.pytest_generate_tests(metafunc=metafunc)
[   45s] /usr/lib/python3.6/site-packages/pluggy/hooks.py:286: in __call__
[   45s]     return self._hookexec(self, self.get_hookimpls(), kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:93: in _hookexec
[   45s]     return self._inner_hookexec(hook, methods, kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:87: in <lambda>
[   45s]     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:133: in pytest_generate_tests
[   45s]     metafunc.parametrize(*marker.args, **marker.kwargs)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:953: in parametrize
[   45s]     ids = self._resolve_arg_ids(argnames, ids, parameters, item=self.definition)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:1007: in _resolve_arg_ids
[   45s]     ids = idmaker(argnames, parameters, idfn, ids, self.config, item=item)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:1197: in idmaker
[   45s]     for valindex, parameterset in enumerate(parametersets)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:1197: in <listcomp>
[   45s]     for valindex, parameterset in enumerate(parametersets)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:1184: in _idvalset
[   45s]     if ids is None or (idx >= len(ids) or ids[idx] is None):
[   45s] E   TypeError: 'dict_keys' object does not support indexing
[   45s] _________________ ERROR collecting aiosmtpd/tests/test_smtp.py _________________
[   45s] /usr/lib/python3.6/site-packages/pluggy/hooks.py:286: in __call__
[   45s]     return self._hookexec(self, self.get_hookimpls(), kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:93: in _hookexec
[   45s]     return self._inner_hookexec(hook, methods, kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:87: in <lambda>
[   45s]     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:224: in pytest_pycollect_makeitem
[   45s]     res = list(collector._genfunctions(name, obj))
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:409: in _genfunctions
[   45s]     self.ihook.pytest_generate_tests(metafunc=metafunc)
[   45s] /usr/lib/python3.6/site-packages/pluggy/hooks.py:286: in __call__
[   45s]     return self._hookexec(self, self.get_hookimpls(), kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:93: in _hookexec
[   45s]     return self._inner_hookexec(hook, methods, kwargs)
[   45s] /usr/lib/python3.6/site-packages/pluggy/manager.py:87: in <lambda>
[   45s]     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:133: in pytest_generate_tests
[   45s]     metafunc.parametrize(*marker.args, **marker.kwargs)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:953: in parametrize
[   45s]     ids = self._resolve_arg_ids(argnames, ids, parameters, item=self.definition)
[   45s] /usr/lib/python3.6/site-packages/_pytest/python.py:997: in _resolve_arg_ids
[   45s]     if len(ids) != len(parameters):
[   45s] E   TypeError: object of type 'itertools.count' has no len()
[   45s] !!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!!
[   45s] =========================== 4 error in 2.91 seconds ============================

https://build.opensuse.org/package/live_build_log/home:gladiac:mailman3/python-aiosmtpd/openSUSE_Leap_15.2/x86_64
I would be great if they would successfully run not only with python 3.8 :-)

I found it. aiosmtpd requires pytest > 6.0

repo: aio-libs/aiosmtpd


text:
作品ページのダイアログが表示されると、Navが消滅する

DevTool眺めてても、要素が見つからないので、完全にどこかでinvisibleしてる?

現在は再現しない。

repo: aipictors/aipictors


text:
Docker File for node and login

Write docker files for node and login

commit: 181abb713cec985213afba16a5684bde50dbf1f9

repo: airavata-courses/Envy


text:
When not using new version_associations calling destroy on a version will generate an error

I just upgraded an existing project to paper_trail 4.0.0.beta2 and was presented by this error when running my test suite:
ActiveRecord::StatementInvalid: Could not find table 'version_associations'

I think this is caused by the dependent: :destroy in PaperTrail::VersionConcern in the has_many :version_assosciations. What would be the best way to work around this? Is it possible to fix this in the concern, or should I just call delete instead?

Thanks for reporting this! I need to do a better job of testing this feature out extensively on dummy apps outside of the gem test framework to really try and push all possible outcomes.

No problem, we found it before an official release :)

Hello @batter and @frenkel:
I happened to encounter this issue on PaperTrail 4.0.0.beta3.
I'm using Rails 3.2.21 and Ruby 1.9.3-p551. Initially, I ran rails generate paper_trail:install and I opted to use a separate table for my Post model and named it post_versions instead of the default versions. I generated a migration that's similar to the CreateVersions migration wherein I just configured it to use 'post_versions' instead of 'versions'. After running the migrations, I now have the versions and the post_versions table. I generated a model for the PostVersion that I sub-classed from PaperTrail::Version as instructed in the PaperTrail README.md. I didn't forget to set the table name to 'post_versions' for the PostVersion model, I also set has_paper_trail class_name: 'PostVersion' within the Post model.
Now when I'm on within the Rails console, I created a Post model and a version of it was automatically created as well. If I call destroy on that created version, I get an error as described below:
[3] pry(main)> post.versions.last.destroy
  PostVersion Load (0.7ms)  SELECT `post_versions`.* FROM `post_versions` WHERE `post_versions`.`item_id` = 1 AND `post_versions`.`item_type` = 'Post' ORDER BY `post_versions`.`created_at` DESC, `post_versions`.`id` DESC LIMIT 1
   (0.3ms)  BEGIN
   (0.4ms)  ROLLBACK
ActiveRecord::StatementInvalid: Mysql2::Error: Table 'dummy_2_development.version_associations' doesn't exist: SHOW FULL FIELDS FROM `version_associations`
from /home/emmanne/.rvm/gems/ruby-1.9.3-p551@dummy_2/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'

Even if I declare the PaperTrail::Version to be abstract within an initializer (as described on PaperTrails' README.md), I still get the same error whenever I destroy a version.
Can anyone confirm that this bug is still present on PaperTrail version 4.0.0.beta3?

@emmanne08 - What commit SHA do you have bundled?

On my Gemfile.lock, revision is at 6b039a260777291d3fd31b12bd812765927a4cbd.

Hi. I have encountered the same issue. Ruby 2.3.0, rails 4.2.5, papertrail 4.0.0. Running
cap staging db:pull

I get
rake aborted!
ActiveRecord::StatementInvalid: Mysql2::Error: Table 'my_database_development.version_associations' doesn't exist: SHOW FULL FIELDS FROM `version_associations`

Hi Andrey. This issue is closed. Can you please open a new issue, and provide the information requested in our contributing guide: https://github.com/airblade/paper_trail/blob/master/CONTRIBUTING.md Thanks!

authors: andreydeineko batter emmanne08 frenkel jaredbeck


text:
How to disable associations tracking for a certain model

Is it possible to disable the associations tracking for a model?

Hi Weston, thanks for your interest in PaperTrail! Our volunteers' time is limited, so we can only respond on GitHub to bug reports and feature requests. Please ask usage questions on StackOverflow (https://stackoverflow.com/tags/paper-trail-gem) so that the whole community has a chance to answer your question.

As the documentation doesn't mention a way to disable association tracking for certain models, I assume it's not possible right now. So can we turn the question into a feature request and reopen the issue?

As the documentation doesn't mention a way to disable association tracking for certain models, I assume it's not possible right now.

Please see https://github.com/airblade/paper_trail#per-class

@jaredbeck: I don't want to turn off PaperTrail as a whole, but only the association tracking on a specific model.

@jaredbeck: I don't want to turn off PaperTrail as a whole, but only the association tracking on a specific model.

I see. I don't think we have such a feature, but I could see it being useful.

authors: jaredbeck westonganger wynksaiddestroy


text:
Scrolling bug when calendar view extends outside of safe area

I have the calendar view extending to top and bottom edges of the screen:
NSLayoutConstraint.activate([
    calendarView.leadingAnchor.constraint(equalTo: view.layoutMarginsGuide.leadingAnchor),
    calendarView.trailingAnchor.constraint(equalTo: view.layoutMarginsGuide.trailingAnchor),
    calendarView.topAnchor.constraint(equalTo: view.topAnchor),
    calendarView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
])

When I scroll to the end it glitches:
calendarView.scroll(
            toDayContaining: Date(),
            scrollPosition: .centered,
            animated: true)

https://user-images.githubusercontent.com/470753/105067755-e57e7000-5a34-11eb-9b38-f5cb892b3982.mov
If I constrain the top and bottom to the layoutMarginsGuide I don't have this issue. I'd prefer to extend to the edges of the screen so that I get the content under the navigation bar and home indicator visual effect.

Oh yikes! Definitely a bug, thanks for reporting. I'll look into this soon.

Oh yikes! Definitely a bug, thanks for reporting. I'll look into this soon.

@hiltonc fix will be merged Monday at the latest, thanks for reporting this bug!
https://github.com/airbnb/HorizonCalendar/pull/101

Awesome, thank you @bryankeller!

Fixed in v1.7.1 🙂

authors: bryankeller hiltonc

repo: airbnb/HorizonCalendar


text:
Question: Can I set airflow configuration parameters from the environment?

I am running airflow under a heroku-like PaaS.  Can I somehow use environment variables to specify configuration like the sql_alchemy_conn and broker_url variables?

Funny, I was just looking at this today. As far as I know ConfigParser doesn't support env var interpolation; it has to be coded explicitly.
In the past we've used code like this to do a one-time override with env vars during import:
config = configparser.ConfigParser()

# load config file
config.read_file(airflow_config)

# Check for env vars that overwrite config vars.
# Env vars have the format "airflow_{section}_{key}"
# For example core:sql_alchemy_conn would be overwritten by
# $AIRFLOW_CORE_SQL_ALCHEMY_CONN
for section in config.sections():
    for key, value in config[section].items():
        env = 'AIRFLOW_{s}_{k}'.format(s=section.upper(), k=key.upper())
        if env in os.environ:
            config.set(section, key, os.getenv(env))

However, Airflow already uses a custom ConfigParser that checks for default values, so it might be simpler to add the env var check to its get() method.

I'd approve a PR that does that well. I'm fine env vars having precedence as long as they namespaced in a way that would prevent any collision. There should be an obvious direct mapping with the configuration section and key.
Maybe AIRFLOW__SECTION__VALUE (note the double underscores)

authors: RasterBurn jlowin mistercrunch

repo: airbnb/airflow


text:
Code reuse with Dags

I'd like clone a dag multiple times to replicate the logic for multiple similar markets/sources.
I drive most of my dag configuration by pulling json Variables to parametrize values, so having configuration for each market isnt a problem. My problem is actually cloning the dag+tasks without actually having two seperate scripts containing the same code (albeit with different dag names).
Is this possible or does it go against the design pattern of aiflow dags?

from copy import deepcopy
new_dag = deepcopy(dag)

It's actually probably cleaner to write a function or a class that generates dag objects base on input parameters

Thanks for the pointer, out of interest should this work too?
markets = ['a', 'b', 'c']

for dag_market in markets:
    dag = DAG(dag_id='my_dag_'+dag_market, default_args=global_args)

   #tasks here...

If I use this logic and push each dag into a list, I can see all 3 dags with three unique dag ids (when printing the list following the loop). However they dont all get put into the DagBag. I'm guessing this is some python shallowcopy business that I've not yet come across primarily being from a Java background.
I think I'll go down your route of a parent dag generator function.

@martingrayson I'm not sure but I think it's because each dag object gets overwritten by the next one in the loop, so when the script is finished only the last dag is available for import. I think @mistercrunch has an idiom for this which goes something like:
for dag_market in markets:
    globals()[dag] = DAG(...)

but I haven't done this myself so I'm not 100% sure.

For folks generating multiple dags in a script, maybe a DagContainer object (which is just a list subclass) would be nice... then in addition to any DAG objects found in a script, anything in any DagContainers is also imported. Not sure how many people are actually doing this but I know it's come up a few times.

Thanks @jlowin I'll give this a bash tomorrow.

Yes, this should work, the DagBag crawls through the folder importing python modules and inspecting their global namespace for dag objects.
@jlowin, I agree that this is magical and that we should have an alternative to use an explicit method to add a dag to the dagbag. I'll add a note.

Thanks guys, this works perfectly for me at the moment. I'll keep an eye on the roadmap and switch to a DagContainer style object if you decide that's the way to go.
I guess this could also help to group dags into logical areas if you're able to name a dag container. That could make the UI pretty by giving the ability to hide a whole group of dags.

authors: jlowin martingrayson mistercrunch


text:
SLA Miss Alert Callbacks : Allow DAGs to specify a callback function for SLA miss handling

This is in response to https://github.com/airbnb/airflow/issues/873
Essentially, I would like to add a callback function to SLA miss handling. In the callback function, I can decide whether to post to Slack and to VictorOps/PagerDuty, or some other 3rd party ops solution. Email is too limiting.
I've added another column to the table to track SLA notifications in general. Not in this PR is a fix for a general problem which can occur is SLAs were enabled on a task but no emails or sla alert call back were provided. In this case, the query to return all SLA misses would progressively return more and more data, slowing down the Scheduler. We need a separate fix to place a window on the max number of sla misses queried.

FYI, I tried to write a test for this, but it proved too difficult .. There was way to execute SchedulerJob.manage_slas that I could find in a few hours of digging.

@r39132  love the sla callback. I myself make extensive use of callbacks. At first glance my only question is why the callback is not defined in the BaseOperator along with the success,retry, and failure callbacks ... as well as the task level SLAs ?

Thanks @syvineckruyk
Currently, SLA miss checks are done in the scheduler. Each worker or executor will execute an operator. The central scheduler (or perhaps another daemon in the future) queries the DB to figure out which tasks are falling behind and sends a report of all tasks that have missed their SLAs in a single email. In that centralized logic, I added the callback hook to allow for similar notifications : I currently publish the list of delayed tasks to both VictorOps and Slack. Here's a screen capture of the Slack Notification for one execution of a callback -- 2 tasks were behind.

Though each task defines its SLAs, the detection and reporting of the SLA misses happens in the scheduler in jobs.py.

@r39132 got it.. thanks


text:
Unable to customize focus outline

react-dates version
react-dates@21.8.0
Describe the bug
I would like to customize the focus outline for the calendar days by including focus styles in the style override props passed to CustomizableCalendarDay, but they aren't being included in the css.
I'm passing
const defaultStyles = {
    background: white,
    border: 0,
    color: darkColor,
    padding: 0,

    ':focus': {
        outline: 'none',
        border: '1px solid blue',
    },
};

as the defaultStyles prop for CustomizableCalendarDay, but the border styles are not being applied when the day receives keyboard focus.

Hmm - this seems like a react-with-styles thing. Perhaps @lencioni has insight?

I'm not very familiar with this code, but looking at how it is implemented I think this won't work because these styles are being passed to the style attribute on the DOM node, which does not support pseudo-selectors like :focus.
You can see the defaultStyles is destructured from this.props here: https://github.com/airbnb/react-dates/blob/05356400baa8e05a9d7ea17e74fbb04bb3b23fa8/src/components/CustomizableCalendarDay.jsx#L285
And that object is passed to a getStyles() function here: https://github.com/airbnb/react-dates/blob/05356400baa8e05a9d7ea17e74fbb04bb3b23fa8/src/components/CustomizableCalendarDay.jsx#L324
getStyles() is defined here: https://github.com/airbnb/react-dates/blob/05356400baa8e05a9d7ea17e74fbb04bb3b23fa8/src/components/CustomizableCalendarDay.jsx#L18-L27
Which will basically pass the entire object down to react-with-styles. Since this object isn't inside the withStyles HOC, it will be passed straight through to React's style prop as inline styles.
I think if you wanted to make this work, you'd have to do something similar to how the hover state is managed here, but for focus instead. It looks like there is already an isFocused prop, so maybe that part of it is already ready, and the getStyles() function would just need to have a way to get the right styles from a nested focus object instead?

authors: lencioni ljharb nkinser

repo: airbnb/react-dates


text:
Maybe bring back modifiers on DateRangePicker

I've seen that modifiers prop has been removed from DateRangePicker and now only exists on DayPicker. I was wondering if the prop could be brought back so it's easier to extend with custom classes and so on.
I wanted to use modifiers to add a "today" class but maybe that's a generic enough feature that it could be added by default instead? I dunno and leave that decision up to you guys.

The modifiers prop has never been on the DateRangePicker. Having a today modifier seems really reasonable though and I would definitely be open to adding that. I probs won't have bandwidth until after Friday, but would def approve a PR that did this.

I see now that you're correct about modifiers not being a prop on DateRangePicker. I should've looked further into the commit https://github.com/airbnb/react-dates/commit/1984a74cd6d33628efaefb437b67ac3b9d568412 than just the commit message.
But nevertheless, I've created a small PR with only adding the today modifier without any styling because I wasn't sure how the process goes for that.

authors: ChristerGustavsson majapw


text:
fitToCoordinates() does not work with navigator.geolocation.getCurrentPosition()

fitToCoordinates() does not work with navigator.geolocation.getCurrentPosition().
When I call fitToCoordinates() and then call navigator.geolocation.getCurrentPosition() it seems that the view zooms in to just the last coordinate object inside the array of coordinates.
The fitToCoordinates() works perfectly when navigator.geolocation.getCurrentPosition() is not called.
Any ideas?

I'm not sure I understand what you mean. Can you post some code with the behavior that you expect versus what is happening?

Not related. navigator.geolocation.getCurrentPosition() is out of scope of this lib

authors: Larney11 alvelig lelandrichardson

repo: airbnb/react-native-maps


text:
[lambda][rule] classifier convert type bug

to: @jacknagz
cc: @airbnb/streamalert-maintainers
size: small
resolves N/A
Background
Discovered an issue with nested type conversion where the schema would still pass even if a value of a nested key was not of the right type.
Changes

Returning the recursive result of StreamClassifier._convert_type from within the method.

Testing
Adding unit test to ensure that a failed type conversion of a nested value will result in a classification failure.

Coverage remained the same at 95.583% when pulling feb56be93e410cfebbb9a48a4a3e59fd04e553d1 on ryandeivert-classifier-convert-type-bug into 6c2903e95eb47ca21726fdaef4e908dde8f63cc9 on master.

Coverage remained the same at 95.583% when pulling 147b1ada86cc39310dea9655ef591d2a6282a760 on ryandeivert-classifier-convert-type-bug into e8e62fe62210f1d74a167760f36d68bab11bc9bf on master.

Coverage remained the same at 95.583% when pulling b2a098e0a74ef09cd8a5134d2b2af4822c5c0788 on ryandeivert-classifier-convert-type-bug into d0de528e51c2a57ea6e41f96fde67b9ce899fbda on master.

authors: coveralls ryandeivert

repo: airbnb/streamalert


text:
Some questions about the index page

superset==0.17.0
May i can ask some questions about the homepage that i would like to go directly to a default dashboard instead of showing a list of dashboards when i landed an account, is it more reasonable?

Same question about it, or it's better can redesign the landing index page.

Notice: this issue has been closed because it has been inactive for 403 days. Feel free to comment and request for this issue to be reopened.

authors: asdf2014 data-strategy mistercrunch

repo: airbnb/superset


text:
Improve performance of compareTo

This PR improves performance of compareTo. This is accomplished by saving the expensive call to compareUnsignedLongs for longs that are know to be equal.
This saves 0 to 40 percent of time, depending on the joint portion of the slices.

Can you add a JMH benchmark?

@martint Provided the class for benchmark and the results. I have also added a commit with direct use of address with unsafe.
Original Version
Benchmark                 Mode  Cnt   Score   Error  Units
BenchmarkSlice.compareTo  avgt   20  32,132 ± 0,044  ns/op

Reorded compare
Benchmark                 Mode  Cnt   Score   Error  Units
BenchmarkSlice.compareTo  avgt   20  28,729 ± 0,323  ns/op

Using directly address with unsafe
Benchmark                 Mode  Cnt   Score   Error  Units
BenchmarkSlice.compareTo  avgt   20  26,221 ± 0,240  ns/op

I made a few changes and merged it. Thanks!
BTW, here's a more comprehensive benchmark result for different sizes:
Before:

Benchmark                 (size)  Mode  Cnt     Score     Error  Units
BenchmarkSlice.compareTo       1  avgt   20     6.248 ±   0.535  ns/op
BenchmarkSlice.compareTo       7  avgt   20    14.806 ±   0.233  ns/op
BenchmarkSlice.compareTo       8  avgt   20     5.967 ±   0.098  ns/op
BenchmarkSlice.compareTo      16  avgt   20    10.031 ±   0.171  ns/op
BenchmarkSlice.compareTo      32  avgt   20    15.668 ±   0.295  ns/op
BenchmarkSlice.compareTo      64  avgt   20    24.333 ±   0.675  ns/op
BenchmarkSlice.compareTo     127  avgt   20    50.837 ±   0.741  ns/op
BenchmarkSlice.compareTo   32779  avgt   20  8359.595 ± 122.491  ns/op

After:

Benchmark                 (size)  Mode  Cnt     Score    Error  Units
BenchmarkSlice.compareTo       1  avgt   20     6.036 ±  0.097  ns/op
BenchmarkSlice.compareTo       7  avgt   20    11.913 ±  0.195  ns/op
BenchmarkSlice.compareTo       8  avgt   20     6.176 ±  0.133  ns/op
BenchmarkSlice.compareTo      16  avgt   20     7.561 ±  0.128  ns/op
BenchmarkSlice.compareTo      32  avgt   20     9.654 ±  0.132  ns/op
BenchmarkSlice.compareTo      64  avgt   20    14.359 ±  0.361  ns/op
BenchmarkSlice.compareTo     127  avgt   20    27.731 ±  0.361  ns/op
BenchmarkSlice.compareTo   32779  avgt   20  3666.218 ± 70.419  ns/op

authors: fmeiser martint

repo: airlift/slice


text:
Extend documentation

Hey there! I found this through your comment on reddit. This is just amazing.
I'm going through every single line right now and I think that this repo has the potential to be one of the standard apps for the node+react stack (You should reach out to shopify too).
However, the documentation is a bit lacking. I noticed that much of the code is not commented and having to learn from so many files and libraries all at once is a bit overwhelming. Better documentation can easily fix that :)
We can have way more readmes too, maybe even start a wiki to walk beginners through the code :)
What do you think? (P.S: I'll be more than willing to help out with this, maybe just the node side since I'm a react newbie)

Hi,
Thank you for the kind words! Yeah, although the repository has Shopify related functionalities, it's actually a starter app for any Node + React project.  I'm still working on the documentation.  This is what I have in the pipeline for now:

A video quick-start where we show how to set everything up and run the app in Shopify Admin.
I'll go through the code once more and add another round of comments.
I'll add tests to client side components.

As for the wiki, I saw a suggestion to make a series of Medium articles explaining different topics. What do you think about that? We could port that text to a Wiki here afterward.

Sounds great! Yes, a series of articles would be good too!

repo: airmiha/create-shopify-app


text:
Should TimePoint and TimeQuantity objects be merged?

The TimePoint and TimeQuantity objects both serve to represent a time value, and only differ slightly in their property names and descriptions. Should we merge these into a single object?

From the call:

We want to keep this as is, as these are semantically distinct.

authors: javh ustervbo

repo: airr-community/airr-standards


text:
Germline doc

This closes multiple points raised in #559 and #562 - see comment in those threads, and the change notes below. In addition I have raise two new minor issues #591 and #592 so that #559 and #562 can be closed once this pull request is accepted and merged.

Also now addresses #556 and #572

And is also intended to close #590

germline_description_description doesn't trip off the tongue. Changed the _descriptions to curational_notes, hope that's ok

I think if the only place we ever plan to use _notes is in the germline objects, then I think that's fine.  If we think we might add similar fields outside these objects, maybe we can do a quick informal poll?
Some suffix suggestions:

_doc
_notes
_comment
_description
None (just curation)

Prefix ideas:

curational_
curation_
None (just notes)

I might be a bit overly cautious about future-proofing here, but... thoughts?

I kinda like just comments
A prefix/suffix seems like overkill unless we think we will also have some other kind of _notes (or some other curation_, I suppose)

@williamdlees I updated the sections of the Schema that were changed by #524, #564 and #603, but excluded the (non-MHC) germline objects. The merge to master should now work again, the only problem is that the R test is failing again (@javh, any ideas)?

I just checked the R package locally and I'm not seeing the same Duplicate map key: 'InformationProvider' error from yaml::yaml.load_file.  I'll have to fight with it.

The R check failure was due to merging against master generation a duplicate copy of the InformationProvider object in the specs, which is why the error wasn't present locally. I'm not sure how that happened, but I blame the force-push creating an improper merge conflict resolve.
Seems fixed now.

@javh Thanks for all the troubleshooting! I really hate to say it but you fixed the consistency check, but now the merge conflicts are back :cry: I did so testing locally and the order of the commits seems to matter, so let me check whether squashing solves the issue...

Haha. Okay, well.. Let's hope. We may have to clean it up post-merge or something.  I think we just have the "notes" fields to deal with for this PR, yes?

Finally! It did not require squashing, a rebase to the current master was sufficient. So know we got consistency checks, commit history and the ability to actually merge this :tada: Everyone who is on a local repo, please remember to update this branch before making any new commits.

@javh

I think if the only place we ever plan to use _notes is in the germline objects, then I think that's fine. [...]  Maybe we can do a quick informal poll?

In general I hope that we will not need additional comments fields like this, as they might be abused as dumps for information that should go into other existing fields. However, I recognize that when representing/exchanging GLDB data there is a valid use case for comments on the curation process. So it is ok to make an exception here, but IMO we do not need to agree on a common suffix.

@javh Is there anything more we need to discuss regarding the curational_notes?

Not really, I think you're right that it's unlikely to have a broader use case, so we just need to pick something.  Any objections to just curation?

No objection from me.
From: Jason Vander Heiden @.>
Sent: 05 May 2022 23:09
To: airr-community/airr-standards @.>
Cc: William Lees @.>; Mention @.>
Subject: Re: [airr-community/airr-standards] Germline doc (PR #593)
Not really, I think you're right that it's unlikely to have a broader use case, so we just need to pick something. Any objections to just curation?
—
Reply to this email directly, view it on GitHub https://github.com/airr-community/airr-standards/pull/593#issuecomment-1119089645 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXBI7NRDUBZXYGKCDVK27LVIRBJBANCNFSM5PO2EZZA .
You are receiving this because you were mentioned.Message ID: @.***>

This would be ok with me. The description already says ‘curational notes’ so it doesn’t really matter if it’s in the name. In my use case at least.
From: Chaim Schramm @.>
Sent: 27 April 2022 15:16
To: airr-community/airr-standards @.>
Cc: William Lees @.>; Author @.>
Subject: Re: [airr-community/airr-standards] Germline doc (PR #593)
I kinda like just comments
A prefix/suffix seems like overkill unless we think we will also have some other kind of notes (or some other curation, I suppose)
—
Reply to this email directly, view it on GitHub https://github.com/airr-community/airr-standards/pull/593#issuecomment-1111058046 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXBI7P33KGZ3PHLNHN5CBLVHFD2LANCNFSM5PO2EZZA .
You are receiving this because you authored the thread.Message ID: @.***>

authors: bussec javh scharch williamdlees


text:
apm install failing silently

During apm install, downloading one of the dependencies did timeout.
However apm went on to the end without reporting an error: except a x symbol next to the package name when it tried downloading. The package wasn't installed, so the next steps in the build chain failed.
apm install should keep a log of errors when doing apm install, display them at the end of the process and exit with a non-zero code if there where any.

The invocation forwarded to primary instance issue has been resolved in the latest AIR and apm releases.
I'm going to close out this issue as I believe it was likely related to either that or the other launch issues related to adl that were solved in an earlier release of AIR.
But if you can replicate it please let me know.
Cheers

repo: airsdk/apm