text:
[firebase_messaging] My app crash when receiving Push Notification (FCM)

Describe the bug
When the app is running in background or foreground  and receiving a notification the app crash (stop) and sometime show Android message "MyApp keeps stopping". But if the app is closed it's work fine.
Expected behavior
Receiving notifications while the app is running.
Additional context
android/app/build.gradle:
dependencies {
    ....
    implementation 'com.google.firebase:firebase-messaging:20.2.1'
}
apply plugin: 'com.google.gms.google-services'

android/build.gradle:
dependencies {
    ....
    classpath 'com.google.gms:google-services:4.3.3'
}

AndroidManifest.xml:
<service
android:name=".java.MyFirebaseMessagingService"
android:exported="false">
<intent-filter>
    <action android:name="com.google.firebase.MESSAGING_EVENT" />
    </intent-filter>
</service>

<meta-data
    android:name="com.google.firebase.messaging.default_notification_icon"
    android:resource="@drawable/notification_icon" />
<meta-data
    android:name="com.google.firebase.messaging.default_notification_color"
    android:resource="@color/main_color" />

dependencies:
  firebase_messaging: ^6.0.16

Flutter doctor
[flutter] flutter doctor -v
[✓] Flutter (Channel master, 1.20.0-1.0.pre.215, on Mac OS X 10.15.5 19F101, locale en-SA)
    • Flutter version 1.20.0-1.0.pre.215 at /Users/abdulrahman/SDKs/flutter
    • Framework revision 47c5174bef (30 minutes ago), 2020-06-25 18:23:02 -0400
    • Engine revision 9ad489e7d7
    • Dart version 2.9.0 (build 2.9.0-19.0.dev 4079c373c0)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/abdulrahman/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

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

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

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

• No issues found!
exit code 0

Thanks

Hi @Alyahya-A
Tired official example with custom notification on Android 10 (sane as you)

Code Sample
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'dart:async';

import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:flutter/material.dart';

Future<dynamic> myBackgroundMessageHandler(Map<String, dynamic> message) {
  if (message.containsKey('data')) {
    // Handle data message
    final dynamic data = message['data'];
  }

  if (message.containsKey('notification')) {
    // Handle notification message
    final dynamic notification = message['notification'];
  }

  // Or do other work.
}

final Map<String, Item> _items = <String, Item>{};
Item _itemForMessage(Map<String, dynamic> message) {
  final dynamic data = message['data'] ?? message;
  final String itemId = data['id'];
  final Item item = _items.putIfAbsent(itemId, () => Item(itemId: itemId))
    ..status = data['status'];
  return item;
}

class Item {
  Item({this.itemId});
  final String itemId;

  StreamController<Item> _controller = StreamController<Item>.broadcast();
  Stream<Item> get onChanged => _controller.stream;

  String _status;
  String get status => _status;
  set status(String value) {
    _status = value;
    _controller.add(this);
  }

  static final Map<String, Route<void>> routes = <String, Route<void>>{};
  Route<void> get route {
    final String routeName = '/detail/$itemId';
    return routes.putIfAbsent(
      routeName,
      () => MaterialPageRoute<void>(
        settings: RouteSettings(name: routeName),
        builder: (BuildContext context) => DetailPage(itemId),
      ),
    );
  }
}

class DetailPage extends StatefulWidget {
  DetailPage(this.itemId);
  final String itemId;
  @override
  _DetailPageState createState() => _DetailPageState();
}

class _DetailPageState extends State<DetailPage> {
  Item _item;
  StreamSubscription<Item> _subscription;

  @override
  void initState() {
    super.initState();
    _item = _items[widget.itemId];
    _subscription = _item.onChanged.listen((Item item) {
      if (!mounted) {
        _subscription.cancel();
      } else {
        setState(() {
          _item = item;
        });
      }
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Item ${_item.itemId}"),
      ),
      body: Material(
        child: Center(child: Text("Item status: ${_item.status}")),
      ),
    );
  }
}

class PushMessagingExample extends StatefulWidget {
  @override
  _PushMessagingExampleState createState() => _PushMessagingExampleState();
}

class _PushMessagingExampleState extends State<PushMessagingExample> {
  String _homeScreenText = "Waiting for token...";
  bool _topicButtonsDisabled = false;

  final FirebaseMessaging _firebaseMessaging = FirebaseMessaging();
  final TextEditingController _topicController =
      TextEditingController(text: 'topic');

  Widget _buildDialog(BuildContext context, Item item) {
    return AlertDialog(
      content: Text("Item ${item.itemId} has been updated"),
      actions: <Widget>[
        FlatButton(
          child: const Text('CLOSE'),
          onPressed: () {
            Navigator.pop(context, false);
          },
        ),
        FlatButton(
          child: const Text('SHOW'),
          onPressed: () {
            Navigator.pop(context, true);
          },
        ),
      ],
    );
  }

  void _showItemDialog(Map<String, dynamic> message) {
    showDialog<bool>(
      context: context,
      builder: (_) => _buildDialog(context, _itemForMessage(message)),
    ).then((bool shouldNavigate) {
      if (shouldNavigate == true) {
        _navigateToItemDetail(message);
      }
    });
  }

  void _navigateToItemDetail(Map<String, dynamic> message) {
    final Item item = _itemForMessage(message);
    // Clear away dialogs
    Navigator.popUntil(context, (Route<dynamic> route) => route is PageRoute);
    if (!item.route.isCurrent) {
      Navigator.push(context, item.route);
    }
  }

  @override
  void initState() {
    super.initState();
    _firebaseMessaging.configure(
      onMessage: (Map<String, dynamic> message) async {
        print("onMessage: $message");
        _showItemDialog(message);
      },
      onBackgroundMessage: myBackgroundMessageHandler,
      onLaunch: (Map<String, dynamic> message) async {
        print("onLaunch: $message");
        _navigateToItemDetail(message);
      },
      onResume: (Map<String, dynamic> message) async {
        print("onResume: $message");
        _navigateToItemDetail(message);
      },
    );
    _firebaseMessaging.requestNotificationPermissions(
        const IosNotificationSettings(
            sound: true, badge: true, alert: true, provisional: true));
    _firebaseMessaging.onIosSettingsRegistered
        .listen((IosNotificationSettings settings) {
      print("Settings registered: $settings");
    });
    _firebaseMessaging.getToken().then((String token) {
      assert(token != null);
      setState(() {
        _homeScreenText = "Push Messaging token: $token";
      });
      print(_homeScreenText);
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('Push Messaging Demo'),
        ),
        // For testing -- simulate a message being received
        floatingActionButton: FloatingActionButton(
          onPressed: () => _showItemDialog(<String, dynamic>{
            "data": <String, String>{
              "id": "2",
              "status": "out of stock",
            },
          }),
          tooltip: 'Simulate Message',
          child: const Icon(Icons.message),
        ),
        body: Material(
          child: Column(
            children: <Widget>[
              Center(
                child: Text(_homeScreenText),
              ),
              Row(children: <Widget>[
                Expanded(
                  child: TextField(
                      controller: _topicController,
                      onChanged: (String v) {
                        setState(() {
                          _topicButtonsDisabled = v.isEmpty;
                        });
                      }),
                ),
                FlatButton(
                  child: const Text("subscribe"),
                  onPressed: _topicButtonsDisabled
                      ? null
                      : () {
                          _firebaseMessaging
                              .subscribeToTopic(_topicController.text);
                          _clearTopicText();
                        },
                ),
                FlatButton(
                  child: const Text("unsubscribe"),
                  onPressed: _topicButtonsDisabled
                      ? null
                      : () {
                          _firebaseMessaging
                              .unsubscribeFromTopic(_topicController.text);
                          _clearTopicText();
                        },
                ),
              ])
            ],
          ),
        ));
  }

  void _clearTopicText() {
    setState(() {
      _topicController.text = "";
      _topicButtonsDisabled = true;
    });
  }
}

void main() {
  runApp(
    MaterialApp(
      home: PushMessagingExample(),
    ),
  );
}

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.nevercode.triage">
    <!-- io.flutter.app.FlutterApplication is an android.app.Application that
         calls FlutterMain.startInitialization(this); in its onCreate method.
         In most cases you can leave this as-is, but you if you want to provide
         additional functionality it is fine to subclass or reimplement
         FlutterApplication and put your custom class here. -->

    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        android:name=".Application"
        android:label="testapp"
        android:icon="@mipmap/ic_launcher">
        <activity
            android:name=".MainActivity"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <!-- Displays an Android View that continues showing the launch screen
                 Drawable until Flutter paints its first frame, then this splash
                 screen fades out. A splash screen is useful to avoid any visual
                 gap between the end of Android's launch screen and the painting of
                 Flutter's first frame. -->
            <meta-data
              android:name="io.flutter.embedding.android.SplashScreenDrawable"
              android:resource="@drawable/launch_background"
              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
            <intent-filter>
                <action android:name="FLUTTER_NOTIFICATION_CLICK" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />

        <meta-data
            android:name="com.google.firebase.messaging.default_notification_icon"
            android:resource="@drawable/ic_stat_name" />
        <meta-data
            android:name="com.google.firebase.messaging.default_notification_color"
            android:resource="@color/mainColor" />

    </application>
</manifest>

dependencies {
    def multidex_version = "2.0.1"
    implementation "androidx.multidex:multidex:$multidex_version"
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.google.firebase:firebase-analytics:17.2.2'
    implementation 'com.google.firebase:firebase-messaging:20.2.1'
}
apply plugin: 'com.google.gms.google-services'

My example is kotlin based but maybe this is causing issue in your case
<service
android:name=".java.MyFirebaseMessagingService"
android:exported="false">
<intent-filter>
    <action android:name="com.google.firebase.MESSAGING_EVENT" />
    </intent-filter>
</service>

flutter doctor -v
[✓] Flutter (Channel master, 1.20.0-1.0.pre.220, on Mac OS X 10.15.5 19F101,
    locale en-GB)
    • Flutter version 1.20.0-1.0.pre.220 at
      /Users/tahatesser/Code/flutter_master
    • Framework revision 1e6e7150f3 (9 hours ago), 2020-06-26 12:01:59 +0800
    • Engine revision 22b099bc63
    • Dart version 2.9.0 (build 2.9.0-19.0.dev ea87c9b01a)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.0
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

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

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.46.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.11.0

[✓] Connected device (5 available)
    • SM M305F      • 32003c30dc19668f          • android-arm64  • Android 10
      (API 29)
    • Taha’s iPhone • 00008020-001059882212002E • ios            • iOS 13.5.1
    • macOS desktop • macos                     • darwin-x64     • Mac OS X
      10.15.5 19F101
    • Web Server    • web-server                • web-javascript • Flutter Tools
    • Chrome        • chrome                    • web-javascript • Google Chrome
      83.0.4103.116

• No issues found!

Remove it and try again
Thank you

I tried.. still the app crash even if it delete this
<service
android:name=".java.MyFirebaseMessagingService"
android:exported="false">
<intent-filter>
    <action android:name="com.google.firebase.MESSAGING_EVENT" />
    </intent-filter>
</service>

and removing everything. I made my app just for receiving notifications from Cloud Messaging.
Or replacing it with kotlin

Application.kt
package net.example.myapp;

import io.flutter.app.FlutterApplication
import io.flutter.plugin.common.PluginRegistry
import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback
import io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService

class Application : FlutterApplication(), PluginRegistry.PluginRegistrantCallback {
    override fun onCreate() {
        super.onCreate()

        FlutterFirebaseMessagingService.setPluginRegistrant(this);
    }

    override fun registerWith(registry: PluginRegistry?) {
        io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin.registerWith(registry?.registrarFor("io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin"));
    }
}

FirebaseCloudMessagingPluginRegistrant.kt
package net.example.myapp;

import io.flutter.plugin.common.PluginRegistry
import io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin

class FirebaseCloudMessagingPluginRegistrant {
  companion object {
    fun registerWith(registry: PluginRegistry) {
      if (alreadyRegisteredWith(registry)) {
        return;
      }
      FirebaseMessagingPlugin.registerWith(registry.registrarFor("io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin"))
    }

    fun alreadyRegisteredWith(registry: PluginRegistry): Boolean {
      val key = FirebaseCloudMessagingPluginRegistrant::class.java.name
      if (registry.hasPlugin(key)) {
        return true
      }
      registry.registrarFor(key)
      return false
    }
  }
}

AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
 package="net.example.myapp">
    <!-- io.flutter.app.FlutterApplication is an android.app.Application that
         calls FlutterMain.startInitialization(this); in its onCreate method.
         In most cases you can leave this as-is, but you if you want to provide
         additional functionality it is fine to subclass or reimplement
         FlutterApplication and put your custom class here. -->

    <!-- Add this permission -->
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-feature android:name="android.hardware.location.network" android:required="false" />
    <uses-feature android:name="android.hardware.location.gps" android:required="false"  />

    <application
        android:name=".Application"
        android:label="Example"
        android:icon="@mipmap/ic_launcher">
        <meta-data android:name="com.google.android.maps.v2.API_KEY"
               android:value="my_key"/>
        <activity
            android:name=".MainActivity"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <!-- Displays an Android View that continues showing the launch screen
                 Drawable until Flutter paints its first frame, then this splash
                 screen fades out. A splash screen is useful to avoid any visual
                 gap between the end of Android's launch screen and the painting of
                 Flutter's first frame. -->
            <meta-data
              android:name="io.flutter.embedding.android.SplashScreenDrawable"
              android:resource="@drawable/launch_background"
              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>

            <intent-filter>
                <action android:name="FLUTTER_NOTIFICATION_CLICK" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <service
        android:name=".MyFirebaseMessagingService"
        android:exported="false">
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>

        <meta-data
            android:name="com.google.firebase.messaging.default_notification_icon"
            android:resource="@drawable/notification_icon" />
        <meta-data
            android:name="com.google.firebase.messaging.default_notification_color"
            android:resource="@color/main_color" />

        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <!-- <?xml version="1.0" encoding="utf-8"?> -->
        <!-- <full-backup-content>
            <exclude domain="sharedpref" path="FlutterSecureStorage"/>````
        </full-backup-content> -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>

I removed everything related to FCM from my app. Currently I'm using OneSignal which based on FCM. It's work fine for Android

authors: Alyahya-A TahaTesser


text:
[cloud_firestore] Issue

I am having issue when using startAt() endAt() when ordering by title which is a string
It works when i am using startAt() endAt() when ordering by rank which is a number
It also works when i am using startAt() and not using endAt() when ordering by title
It should work regardless if it is type number or type string.
I think it's a bug.
What i have tried:

created indexes on Firestore

Here is the full code:
import 'package:flutter/material.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'dart:async';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  Future getItemsTitle() async {
    QuerySnapshot snapshot5 = await Firestore.instance
        .collection('items')
        .orderBy("title", descending: false)
        .startAt([1])
        .endAt([2])
        .limit(2)
        .getDocuments();

    print(snapshot5.documents[0].data['title']);
    print(snapshot5.documents[1].data['title']);
  }

  Future getItemsRank() async {
    QuerySnapshot snapshot5 = await Firestore.instance
        .collection('items')
        .orderBy("rank", descending: false)
        .startAt([1])
        .endAt([2])
        .limit(2)
        .getDocuments();

    print(snapshot5.documents[0].data['title']);
    print(snapshot5.documents[1].data['title']);
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Container(
          padding: EdgeInsets.all(50.0),
          child: Column(
            children: <Widget>[
              RaisedButton(
                  child: Text("Get By Rank"),
                  onPressed: () {
                    getItemsRank();
                  }),
              RaisedButton(
                  child: Text("Get By Title"),
                  onPressed: () {
                    getItemsTitle();
                  }),
            ],
          ),
        ),
      ),
    );
  }
}

@momoDragon
The issue at https://github.com/flutter/flutter/issues/26872 has been closed and moved here. Future collaboration on this issue will be done here.

Hi @momoDragon
If you are still experiencing this issue
with the latest version of Flutter and FlutterFire plugin
can you please provide your updated  flutter doctor -v
and your and your flutter run --verbose/flutter build --verbose ?
Also, to better address the issue, would be helpful
if you could post a self contained app on github
or the steps to reproduce it.
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so its always better to open new issues and reference related issues.

source: gharchive/issue

authors: iapicca kroikie

repo: FirebaseExtended/flutterfire

license_type: permissive

license_source: github-api


text:
🐛 [cloud_firestore/unknown] An error occured while parsing query arguments, see native logs for more information. Please report this issue.

Bug report
Describe the bug
A clear and concise description of what the bug is.
using collection group to query collections.
//get current user id
 final currentUserId = FirebaseAuth.instance.currentUser!.uid;
final collectionGroup = await FirebaseFirestore.instance
        .collectionGroup("subscribers")
        .where(FieldPath.documentId, isEqualTo: currentUserId)
        .get();

document id is: 2baf82bb-301d-4a51-bd12-728fae89a7b2 (which is manually assigned user id using firebase admin sdk)

Hi @mqhamdam
Could you please provide your flutter doctor -v and flutter pub deps -- --style=compact?
Thank you

authors: markusaksli-nc mqhamdam


text:
🐛 [Flutter_message] The iPhoneX sometimes doesn't get notifications

Bug report
Describe the bug
On iOS and iPhoneX devices, I find that notifications occasionally don't get received, but sometimes they do. When I tested the Cloud Messaging function, everything worked. How do I check for this problem?
Looking forward to your reply.
Thank you
flutter 2.5.3
iOS15.1
The latest plug-in version

@paintingStyle
Does all streams such as  [FirebaseMessaging.onMessage, FirebaseMessaging.onBackgroundMessage, FirebaseMessaging.onMessageOpenedApp] trigger properly and everytime ? Can you add trace information to each handler to see which one is invoked everytime and which isn't ?
Also, you just provided description of the issue without any code or logs, so it's tough to exactly help on what could be the issue. Did you also confirm if your messaging setup for ios is proper as per the documentation ?

authors: darshankawar paintingStyle


text:
🛑 Liga Ardyti is down

In 51ef8db, Liga Ardyti (https://ligaardyti.com.ar) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Liga Ardyti is back up in 42f4b65.

repo: FirenzeDigital/upptime

license: MIT


text:
Something is broken with host.get_fact in version 2.5.2

Describe the bug
host.get_fact(File, path=remote_file_path, _sudo=True) works in 2.5.1 and raises an exception in 2.5.2:
    user_home_link_fact = host.get_fact(Link, path=user_home_link_path, _sudo=True)
  File "/myhome/.local/lib/python3.9/site-packages/pyinfra/api/host.py", line 250, in get_fact
    return get_host_fact(self.state, self, name_or_cls, args=args, kwargs=kwargs)
  File "/myhome/.local/lib/python3.9/site-packages/pyinfra/api/facts.py", line 339, in get_host_fact
    fact_hash = _get_fact_hash(state, host, cls, args, kwargs)
  File "/myhome/.local/lib/python3.9/site-packages/pyinfra/api/facts.py", line 328, in _get_fact_hash
    kwargs = getcallargs(cls().command, *args, **kwargs)
  File "/opt/tools/python-3.9.4/lib/python3.9/inspect.py", line 1396, in getcallargs
    raise TypeError("%s() got an unexpected keyword argument %r" %
TypeError: command() got an unexpected keyword argument '_sudo'

New code in _get_fact_hash seems to be the culprit.
To Reproduce
I suppose any host.get_fact with _sudo=True.
Meta
--> Support information:

    If you are having issues with pyinfra or wish to make feature requests, please
    check out the GitHub issues at https://github.com/Fizzadar/pyinfra/issues .
    When adding an issue, be sure to include the following:

    System: Linux
      Platform: Linux-3.10.0-1160.76.1.el7.x86_64-x86_64-with-glibc2.17
      Release: 3.10.0-1160.76.1.el7.x86_64
      Machine: x86_64
    pyinfra: v2.5.2
    Executable: /opt/tools/python/bin/pyinfra
    Python: 3.9.4 (CPython, GCC 10.3.0)

Argh, this is bad! Really should be tested... now done in https://github.com/Fizzadar/pyinfra/commit/53dc0e16f907e2217846a790f3d848e53281618b. Actual fix in https://github.com/Fizzadar/pyinfra/commit/0a27fff181199505baf8bbe522fb9ca6c5e03168, will roll 2.5.3 shortly.

Thank you for raising this issue!

authors: Fizzadar julienlavergne

repo: Fizzadar/pyinfra

license: mit

license_source: bigquery


text:
Unpack pacman package groups into a list of packages.

Arch linux package groups are not real packages and because of that are not displayed by 'pacman -Q' as installed. This causes pyinfra to reinstall them every time.
To fix that this PR expands groups into the corresponding packages before calling ensure_packages.

After taking a look I can't figure out why the tests are failing. Any pointers?

After taking a look I can't figure out why the tests are failing. Any pointers?

This is better, but I'm unable to fix an issue with the tests.
They fail when supplying a list of arguments. The list gets wrapped around a tuple and the tuple iterated, using the list inside as arguments.

This is better, but I'm unable to fix an issue with the tests.
They fail when supplying a list of arguments. The list gets wrapped around a tuple and the tuple iterated, using the list inside as arguments.

source: gharchive/pull-request


text:
Add Easier to Love You by Porter Robinson

Song Name
Easier to Love You
Artist Name
Porter Robinson
Source
Youtube
Youtube Link
ss_B6NKZ00U
Direct File Link
No response
Song ID
10006555
Start Offset [ms]
0
Extra
Created from Auto Nong.
Created for level: 108595320

yes, i want to submit it
Vào CN, 18 thg 8, 2024 vào lúc 09:25 github-actions[bot] <
@.***> đã viết:

This submission is stale because it has been open for 14 days with no
activity. If it is still relevant, please leave a comment and we will
reopen it.
—
Reply to this email directly, view it on GitHub
https://github.com/FlafyDev/auto-nong-indexes/issues/2267#issuecomment-2295068717,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BJY5UTD4QTKQXAM6MWUYNVLZSAAZZAVCNFSM6AAAAABL5YYZAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJVGA3DQNZRG4
.
You are receiving this because you authored the thread.Message ID:
@.***>

reject
popular songs like "Tomb" are too inconvenient to be replaced by smth unrelated and are therefore usually rejected.
Note that you can still use the song yourself, but it won't be public

repo: FlafyDev/auto-nong-indexes


text:
Code Contribution: 【Lv1】【Bug Fix】- Fixed the issue where the cat operator would throw an error when the dim is a negative number.

concat (cat) 在运行时，dim 为负数的时候有概率会报错，下面是复现代码，使用注释掉的 torch 的 aten 算子运行不会报错
import flag_gems
import torch

def cat_negative_dim_test():
    x = torch.randn(3, 2, device="cuda")
    y = torch.randn(3, 3, device="cuda")
    return flag_gems.cat((x, y, x), -1)
    # return torch.cat((x, y, x), -1)

y = cat_negative_dim_test()
print(y)

报错如下：
  File "/work/FlagGems/src/flag_gems/ops/cat.py", line 41, in cat
    raise RuntimeError(
RuntimeError: Sizes of tensors must match except in dimension -1. Expected size 2 but got size 3 for tensor number 1 in the list

认领方式：

Issue中留言评论：「认领人名称+认领」
在贡献者微信群内发送：认领的Issue号例如：「认领+[https://github.com/FlagOpen/FlagGems/issues/xxx」]

领取后，请于本周内完成，谢谢

PR: https://github.com/FlagOpen/FlagGems/pull/261

repo: FlagOpen/FlagGems


text:
🛑 Production is down

In caabfd1, Production ($PROD_URL) was down:

HTTP code: 502
Response time: 184 ms

Triggered by a restart after the update ignore

authors: Flagmaker-Print-Bot flamableassassin

repo: Flagmaker-Print/status


text:
chore(main): release 2.84.2

:robot: I have created a release beep boop
2.84.2 (2023-11-27)
Bug Fixes

Move organisation tests to proper location (#3041) (34c6d07)
resolve environment N+1 caused by feature versioning v2 (#3040) (5392480)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/Flagsmith/flagsmith/releases/tag/v2.84.2 :sunflower:

repo: Flagsmith/flagsmith


text:
feat(task-processor) add Task Processor inputs as env vars

Thanks for submitting a PR! Please check the boxes below:

[x] I have run pre-commit to check linting
[ ] I have added information to docs/ if required so people know about the feature!
[x] I have filled in the "Changes" section below?
[x] I have filled in the "How did you test this code" section below?
[x] I have used a Conventional Commit title for this Pull Request

Changes
Adds the inputs to the Task Processor as environment variables in the run-docker.sh script. Resolves https://github.com/Flagsmith/flagsmith/issues/3317.
How did you test this code?
Ran the task processor locally using this script, setting each of the variables.
This command
LOG_LEVEL=DEBUG TASK_PROCESSOR_SLEEP_INTERVAL=10000 TASK_PROCESSOR_QUEUE_POP_SIZE=20 TASK_PROCESSOR_GRACE_PERIOD_MS=100000 TASK_PROCESSOR_NUM_THREADS=1 ./scripts/run-docker.sh run-task-processor

Resulted in the following log message in the console:
task_processor.management.commands.runprocessor DEBUG    Running task processor with args: verbosity=1,settings=None,pythonpath=None,traceback=False,no_color=False,force_color=False,skip_checks=False,numthreads=1,sleepintervalms=10000,graceperiodms=100000,queuepopsize=20

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (31af594) 95.94% compared to head (414c3ca) 18.00%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3355       +/-   ##
===========================================
- Coverage   95.94%   18.00%   -77.94%
===========================================
  Files        1067      990       -77
  Lines       32621    28560     -4061
===========================================
- Hits        31298     5143    -26155
- Misses       1323    23417    +22094

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter matthewelwell


text:
[SITE BROKEN] NovelUpdates.com

pasting the NU link in the telegram bot gives nothing.
But NU is updated a one of the sources.

Novel Updates does not work right now, see #135

Alright I think the best easiest semi-automated solution (as well as backup solution for future NU shenanigans):

user has to go to "novel up dates com/series/xxxx-xxxxx/" and click on the "show all chapters“ button
user has to save "novel up dates com/series/xxxx-xxxxx/„ and save the site as mhtml file/save full site
than open the file in Novel Grabber
everything works as previously with novelupdates url

On the developer side, you’d just make the scraper look for the links & chapter numbers in the  „my_popupreading_wrapper“ in the mhtml/HTML file.
Or if they still had the "my_popupreading_wrapper" popup opened when they save it, it should work without changing a thing how the Novel Grabber’s NU scraper works now.

I tested it and https://www.novel up dates.com/extnu links aren’t behind hCaptcha. Well…yet.

Maybe it could be even automated with browser extension, maybe not the clicking on "show all novels button“ (idk really how sensitive hCaptcha is to that), but definitely the - generate html file, save it, open it NovelGrabber, parts could be automated.
I don’t see this backup way (with extension) as massive downside since most users start with browsing to novelupdates to find the Novel link first anyway.
It’s not elegant or automated, but it should at least give a backup solution for user to just download a novel, when that niche novel isn’t anywhere else but NU & NU adds another layer of protection breaking the scraper.

I do get a 403 error on the /extnu links as well, so this won't help. Also, while not fully automated, you could do this with manual grabbing already: Paste a table of contents url, fetch links (doesn't matter if you get a 403, it's needed to work) then manually insert chapter links. There are probably browser addons to copy links from a selection.

I don’t get 403s when I use headless browser, without it I also get them.
What you say about grabbing & pasting the content from the NU pop-up window - that suprisingly works well.
If you meant from pasting ToC & chapter links from the website that hosts the novel - there you run into problem if you have 2+ translation groups working on a novel. Or that their ToC is properly updated for newest chapter links. Or that their site isn’t all badly sitemaped/formatted.
But regardless of which one you meant - both require quite a lot of manual work from the users and presumes that they have a tool & knowleadge so they can extract URLs from text - apart from maybe also reversing lines (NU).
That’s pretty learning heavy, slow & unautomated for normal users.

@Flameish
While we’re on that topic, it would be great if you could post multiple ToCs from multiple sites that have the novel to get the links.
Now whenever you add new ToC link, the currently fetched links disappear.
It would be great if they only disappeared when you click on the trash icon.

Also useful if you spent 10mins editing the chapter links to not have them gone by loading the url again.

And a feature where you can just paste links to the links window if they are text links.
Meaning „Chapter 30“ text that also is a URL link to Chapter 30.
For example:

Headless does indeed work with the /extnu links, my bad.
For manually grabbing to work you need to click on "fetch links" once, doesn't matter if you get a 403/forbidden error, it's an initialization thing. After that you can manually copy and paste the links from NU to it.
I agree that it can be quite a hassle to accomplish that and I like your idea of parsing html to chapter + links directly, even if this doesn't quite work in browsers since they just copy  text as far as I know. You would need something like [this addon](https://addons.mozilla.org/en-GB/firefox/addon/copy-selected-links/ to copy links), it is also what I use for NU in conjunction with this bookmark script:
javascript:(function(){var x = document.querySelectorAll('li a[title]');var i;for(i = 0; i < x.length; i++){x[i].remove();}})();

When executed, this script removes those "Going to chapter" links from the popup window so that you can copy all the links once for the chapter name and once more with the addon for the links.
Nevertheless please keep this issue on topic and create new ones for your feature requests; but be advised that I'm currently in the process of rewriting Novel-Grabber, which is why I'm not adding new features to this version. Separate issues are easier to keep track of than having these requests buried within others.

Yep, I’ll create seperate issues. I was just pitching you the ideas if they make sense or not while we were on topic.

authors: Flameish fangjiejie frykauf

repo: Flameish/Novel-Grabber


text:
#707 Refactor Shared object by splitting it into smaller functions

Fixes #707 Refactor Shared object by splitting it into smaller functions
Checklist

[x] Documented
[x] Unit tested
[x] release_notes.md updated

Codecov Report

Merging #799 into master will increase coverage by 0.07%.
The diff coverage is 88.23%.

@@             Coverage Diff              @@
##             master     #799      +/-   ##
============================================
+ Coverage     79.04%   79.12%   +0.07%
- Complexity      701      709       +8
============================================
  Files           136      136
  Lines          2921     2932      +11
  Branches        419      415       -4
============================================
+ Hits           2309     2320      +11
  Misses          344      344
  Partials        268      268

Also shardCountByTime function needs more work, there are 4 returns and 1 hidden throw + some assignments (value assignments are good for writing but not for reading).
I was thinking about something like that but without magic numbers:
fun shardCountByTime(
    testsToRun: List<FlankTestMethod>,
    oldTestResult: JUnitTestResult,
    args: IArgs
): Int = when {
    args.shardTime == -1 -> -1
    args.shardTime < -1 || args.shardTime == 0 -> throw FlankFatalError("Invalid shard time ${args.shardTime}")
    else -> testsToRun.testTotalTime(oldTestResult, args).let { testsTotalTime ->
        if (testsTotalTime <= args.shardTime) -1
        else min(ceil(testsTotalTime / args.shardTime).toInt(), args.maxTestShards)
    }
}

private fun List<FlankTestMethod>.testTotalTime(
    oldTestResult: JUnitTestResult,
    args: IArgs
) = sumByDouble {
    if (it.ignored) Shard.IGNORE_TEST_TIME
    else createTestMethodDurationMap(oldTestResult, args)[it.testName] ?: Shard.DEFAULT_TEST_TIME_SEC
}

Additionally flank now is using ftl api to run shards, and this api has restriction on maximum test shards up to 50. So below code is not valid now:
        // If there is no limit, use the calculated amount
        if (args.maxTestShards == -1) {
            return shardsByTime
        }

createShardsByShardCount is still breaks SRP. As I see, it makes at least 3 things.

It creates testsCases and cacheMiss.
It creates shards from testCases
prints info.

Additionally flank now is using ftl api to run shards, and this api has restriction on maximum test shards up to 50.

FYI the API restriction is changing soon to 250. I don't want to hardcode the API restriction in Flank as Firebase can change this anytime.

Additionally flank now is using ftl api to run shards, and this api has restriction on maximum test shards up to 50.

FYI the API restriction is changing soon to 250. I don't want to hardcode the API restriction in Flank as Firebase can change this anytime.

We have IArgs.AVAILABLE_SHARD_COUNT_RANGE value, it is used to validate possible maximum shards on config level. Without hardcoded max value we are losing ability to check it early so It will be done later on ftl side.

We have IArgs.AVAILABLE_SHARD_COUNT_RANGE value, it is used to validate possible maximum shards on config level.

We'll likely have to revisit this design. 50 is currently the global limit for both physical and virtual devices. In the future 250 will be the limit for virtual devices. Physical devices will still be limited to 50.

Without hardcoded max value we are losing ability to check it early so It will be done later on ftl side.

That's a good point. Let's keep the hard coded values.
Ideally FTL would expose an API for us to fetch the shard limits so we don't have to push a new Flank release every time. Probably the numbers change infrequently enough this won't be a big deal. If they did keep changing it then possibly https://firebase.google.com/docs/remote-config would be helpful.

Additionally flank now is using ftl api to run shards, and this api has restriction on maximum test shards up to 50. So below code is not valid now:
        // If there is no limit, use the calculated amount
        if (args.maxTestShards == -1) {
            return shardsByTime
        }

so what should be done here? remove this condition?

so what should be done here? remove this condition?

I think we should update to respect the limit defined in AVAILABLE_SHARD_COUNT_RANGE, then in a future PR we'll have to solve for the 250 limit once FTL makes this change.

AVAILABLE_SHARD_COUNT_RANGE

so what should be done here? remove this condition?

I think we should update to respect the limit defined in AVAILABLE_SHARD_COUNT_RANGE, then in a future PR we'll have to solve for the 250 limit once FTL makes this change.

so new condition will look
// If there is no limit, use the calculated amount
if (args.maxTestShards == NO_LIMIT) {
return AVAILABLE_SHARD_COUNT_RANGE.last
}

1). IMO we should continue our effort with second part, maybe not within this issue but followup one

Agreed. We can consider converting the Flank refactor (https://github.com/Flank/flank/issues/718) ticket into an Epic composed of multiple tickets. I'd like to get the remaining features/bug fixes out and then focus on the refactor. What do you think?

authors: bootstraponline codecov-commenter jan-gogo piotradamczyk5

repo: Flank/flank


text:
API "PUT"  method for variables endpoint fails to update variables.yml

Expected behaviour: The variables.yml file to be updated to reflect the json payload sent via curl.
Actual behaviour: No updates are made.
Steps to reproduce:

Step 1: Create variables.yml file with only the following single line:

a:b

Step 2: From terminal, execute: curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Token TOKEN_REDACTED' -d '{"a":"c"}' 'http://localhost:5050/api/variables/'

Step 3: Observe output as:
a:b

Config:
web_server: yes
templates:
  dl:
    deluge: yes
....
...
...

Variables:
a: b

Log:

No information was added to the log after the API call.

Additional information:

FlexGet version: 2.21.25
Python version: 3.7.3
Installation method: pip3
Using daemon (yes/no): yes
OS and version: Kubuntu 19.04
Link to crash log: null

@gazpachoking was able to shed some light on this issue via the slack channel.
It seems that the variables.yml acts as a 'seed' for the variables section in the flexget database, when the line variables: /path/to/variables.yml is included in config.yml.  The PUT method for the flexget API with the variables endpoint only works when the that line in config.yml is amended to variables: yes instead of the location of the variables.yml file.
However, using the command:
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Token TOKEN_REDACTED' -d @variables.json 'http://localhost:5050/api/variables/'
results in the the variables being wiped out and replaced by the JSON payload (the @variables.json in the above command).
I have a very long list of variables (hundreds). So I would need to use the GET method on the variables first, save the output as a variables.json file, make the change(s), save it, then use the PUT method to reinstall the new variables in the database via the updated variables.json file.
Is it possible to use the API to simply change a single value within the variables? Or is that function not available?

The API only operates on the DB and not on the file. This was a design decision as to eliminate having two sources of truth.

@liiight The new issue he was talking about is that sending a PUT replaces the entire variable store. So to update a single variable you have to do a get, modify the returned data structure, then submit the whole thing back. Maybe we should add a PATCH endpoint or something where you can send in just the variables you want updated.

Ah ok. I'm not sure how to do that since variables is just a json blob basically. We have no base structure for it so I'm not sure how we could add single "entity", since that entity's definition can change for each user.

I mean, if we wanted a PATCH, it could just load the current variables, call an update on it and save it again.

I'm not sure how that would work. How would you join the existing data to the new payload?

Oh, you something like do a dict .update() using the new payload? Guess that could work

Yep, a dict.update is exactly what I was thinking.

Hmm, not sure the optimal way PATCH should work for heavily nested variables files. Would it be a recursive dict.update, or just on the first level?

I think first level is good enough.
Although, I maybe something like glom would be nice here. I use it heavily at work and it's amazing for operating on nested data (among other things).

If we want the update to work with nested data that's easy enough to do. We could also change the api interface to allow using json pointers to get/change specific nested data.
e.g. PUT /variables/some/nested/path/0

Maybe only doing a first level update with PATCH, and adding the nested access via path is the nicest way.

dunno, I don't really like the path approach. I see variables as a single object, I don't really like to start manipulating it so dynamically. Also, json pointer like that via path is kinda weird to me, never saw something like out in the wild

I see variables as a single object

I see them as separate... variables. 😉
I still like the path idea, but I also like keeping it simple unless we have some demand for it, so I'm good with your solution.

What I meant is since variables are not bound to any structure, I think the user should have the responsibility of managing it.

authors: gazpachoking liiight metaMMA

repo: Flexget/Flexget


text:
The big component refactor

Lots of changes here but all I've really done is made everything a component and broke up some of the monolithic views into smaller components.
I tried my best to not break anything and I don't think I did but I didn't want to merge this in until someone else could sanity check me.

good work!

authors: kristenmills stevezau


text:
1.8.8 无法跨服聊天

没有任何报错只显示未启用跨服聊天 设置以及spigot全部都开启了bc 其他服务器可以 只有1.8的传送大厅不行

检查下settings.yml里的GENERAL.PROXY是否为BUNGEE

这是来自阳阳邮箱的自动回复邮件。你好，我最近很忙，无法亲自回复你的邮件。我将在忙完后，尽快给你回复。

还有开服时是否显示已支持Bungee通讯

@Hua-Fan-Yang

尝试https://github.com/FlickerProjects/TrChat/releases/tag/v2.0.0-PRE-1 是否还有此问题

这是来自阳阳邮箱的自动回复邮件。你好，我最近很忙，无法亲自回复你的邮件。我将在忙完后，尽快给你回复。

Fixed in PRE-4

这是来自阳阳邮箱的自动回复邮件。你好，我最近很忙，无法亲自回复你的邮件。我将在忙完后，尽快给你回复。

authors: Hua-Fan-Yang ItsFlicker NekoYyang

repo: FlickerProjects/TrChat


text:
Inputs of MoorDyn_Step function

Hi,
I am currently in the process of coupling Mordyn v2.2.1 with my code, and I am seeking clarification regarding the inputs of the MoorDyn_Step function, specifically in terms of their definitions and units. Your assistance in clarifying this matter would be greatly appreciated.
The MoorDyn_Step function has the following input parameters:
MoorDyn_Step(MoorDyn system, const double *x, const double *xd, double *f, double *t, double *dt)
Based on my understanding, the input vectors x (Position vector) and xd (Velocity vector) should be structured as follows:
x : {CoM_X, CoM_Y, CoM_Z, phi, theta, psi}
CoM_X: Coordinate the center of mass in the x-direction (meter)
CoM_Y: Coordinate the center of mass in the y-direction (meter)
CoM_Z: Coordinate the center of mass in the z-direction (meter)
phi:  roll angle (rad)
theta: pitch angle (rad)
psi: yaw angle (rad)
xd : {V_X, V_Y, V_Z, omega_I(0), omega_I(1), omega_I(2)}
V_X: Velocity of the center of mass in the x-direction (m/s)
V_Y: Velocity of the center of mass in the y-direction (m/s)
V_Z: Velocity of the center of mass in the z-direction (m/s)
omega_I(0): Angular velocity around the x-direction (rad/s)
omega_I(1): Angular velocity around the y-direction (rad/s)
omega_I(2): Angular velocity around the z-direction (rad/s)
Thanks in advance.

Thank you so much for your prompt response. Now my code is working. I have one more (and last :) question about the moorDyn time step.
I am currently fine-tuning its integration with my computational framework. However, I might encounter a situation where the time step size in my code, which is controlled under the CFL condition, occasionally results in very small time step sizes. In contrast, the MoorDyn time step, as initially defined in the input file, may remain relatively large. So I'm curious whether it is possible to adjust the MoorDyn time step dynamically during the simulation.

If you ask MoorDyn to integrate a time step, dt, which is smaller than the
inner/model time step, dtM, then dtM is automagically corrected as dtM = dt
Even more, dt will be always honoured. If you ask to integrate a dt which
is not divisible by dtM, then Moordyn will do as many steps with dtM as
possible followed by a last smaller one.
On Tue, 3 Oct 2023, 17:25 Ahmet Soydan, @.***> wrote:

Thank you so much for your prompt response. Now my code is working. I have
one more (and last :) question about the moorDyn time step.
I am currently fine-tuning its integration with my computational
framework. However, I might encounter a situation where the time step size
in my code, which is controlled under the CFL condition, occasionally
results in very small time step sizes. In contrast, the MoorDyn time step,
as initially defined in the input file, may remain relatively large. So I'm
curious whether it is possible to adjust the MoorDyn time step dynamically
during the simulation.
—
Reply to this email directly, view it on GitHub
https://github.com/FloatingArrayDesign/MoorDyn/issues/144#issuecomment-1745210385,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMXKKF3JURXXHPQQ4G4DIDX5QU7DAVCNFSM6AAAAAA5PWH36OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBVGIYTAMZYGU
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

authors: sanguinariojoe soydanahmet

repo: FloatingArrayDesign/MoorDyn


text:
Organize files from bulk_edit raising destination_exists problem

it seems like a bulk_edit move_files is acting differently than from the organize files in a model, and even though it is performing the move, it is raising a destination_exists.
The only way that this seems likely that it could happen is that somehow move_files is being called twice?

That's odd! Does it depend on whether or not the model ID suffix is turned on in your settings? Because the ID is there to avoid any naming conflicts, if it's off, conflicts are possible, which wasn't a thing before. I've been meaning to check that gets handled OK (which it probably doesn't)

I'll have to play around a bit with it... I just noticed a few hundred problems after doing a large bulk edit, even though all of them successfully moved.

Just realised this is probably the same thing as I've logged in #1089. In that case I've still got {modelId} in there, so that's not it.

Yes, definitely #1089 is a duplicate.   Even if you have {modelId} that's not a safeguard for someone doing something manual in the filesystem, so the check is still necessary IMO.   I'm still convinced the rename is getting triggered twice and failing the second time because it already happened.  I'll try to look at this issue next, because it's certainly a bit annoying.

authors: Floppy ksuquix


text:
1.20.4 fixes

1.20.2 / 1.4.0 launches on 1.20.4 and some of it's features function.
other buttons cause a crash when pressed.
crash report:
https://pastebin.com/xz46GsLk

Hello,
v1.4.0 wasn't compatible with 1.20.4 (owo-lib wasn't updated yet at this point in time).
The new version v1.4.1 has been pushed with 1.20.4 support.
Enjoy!

authors: FlorentTomi mine-also-craft

repo: FlorentTomi/ArmorStatuesCompanion


text:
Note freezes when switching to the Reading View

After last update one note (just one) freezes when switching to the Reading View. just shows an empty note and freezes.
Steps to reproduce the behavior:

Go to 'Note'
If "Reading View" mode is On the Obsidian hangs and stuck untill restart. The note is quite large, over 30000 characters, the other notes work fine.
CPU and memory are not loaded, Obsidian just can't open the note. After disabling the plugin everything became OK, when enabling it back - everything repeats. The Refresh button in the plugin settings does not help. Icon pack: lucide-icons (li)

I think I need more details here. How does the content look like?

I have been running into a similar issue. Obsidian (v1.6.7) will hang with Iconize (2.14.3), with a link that includes symbols. I have not exhaustively tested what other characters may cause a hang, but the registered trademark symbol in the link below, in a note, will cause Obsidian to hang. Removing the registration symbol, will resolve the hanging behavior.
[MITRE ATT&CK®](https://attack.mitre.org)

I hope this info helps! Cheers, and thank you for your work on this plugin @FlorianWoelki

Hi, I've also been having this issue. The issue isn't just links that involve symbols though: any time I place a character like ™ in my notes, Obsidian freezes when switching to reading view (or switching to the note while in reading view). This happens regardless of whether Twemoji is enabled, and even with debug turned on, there's no info logged to the console about what the problem may be. Hopefully this helps as well!

After some debugging, I figured out the issue. In short:

For some unicode (like ™), the twemoji parser just returns the token as-is instead of replacing it with an image (seeing as it's not an emoji)
Since the functions that handle the replacement are postprocessing effects on the markdown, they effectively run every time the DOM changes (or attempts to change)
Since these tokens are returned as-is, they're detected in the markdown every time the effect runs, without actually getting replaced
This causes an infinite loop of trying (and failing) to replace these specific tokens

I can gather some debug screenshots of me printing an infinite loop of logs to the console, but this is effectively the issue. As a quick fix, you can do something like this:
const parseEmoji = (
  style: EmojiStyle,
  str: string,
  size = 16,
): string | null => {
  switch (style) {
    case 'twemoji':
      const parsed = twemoji.parse(str, {
        folder: 'svg',
        ext: '.svg',
        attributes: () => ({
          width: `${size}px`,
          height: `${size}px`,
        }),
      });
      if(parsed == str) return `<code>${parsed}</code>`; // code blocks are ignored in the code that does replacements
      else return parsed;
    case 'native':
      return str;
    default:
      return null;
  }
};

This is ugly though and very visible on some themes. I'm sure there's a better way to do it, but I tried testing out one (adding a class that's ignored in the same place code blocks are ignored) but it wasn't working for me. It's late where I am, but I can see about getting that to work tomorrow if I have the chance.

authors: FlorianWoelki goga2k greysdawn lodaket

repo: FlorianWoelki/obsidian-iconize


text:
[✨] Functioning Settings Menu, (Not fully completed)

[✨] Functioning Settings Menu
I will finish my rewrite for the settings app later.

not sure if its just me but dynamic was useless last time. might want to switch that one with rammerhead as its sometimes better than ultraviolet

just remove the const url = to fix the ts standard since an error can still show up even if its not stored

 just remove the const url = to fix the ts standard since an error can still show up even if its not stored

I don't think you understand the code at all...
That line checks if the URL is valid or not by checking if it results in a error when converted.

 just remove the const url = to fix the ts standard since an error can still show up even if its not stored

I don't think you understand the code at all...
That line checks if the URL is valid or not by checking if it results in a error when converted.

I understand what the code does. I'm saying you need to remove the variable as it's not needed or used. You have to remove the code for making the variable not the actual code assigned to it

@idk-pixel is very correct, you do not need to have the const there as it is an unused variable which ts-standard does not like...

authors: RisingGlitch ThinLiquid idk-pixel


text:
feat: Add possibility to configure securityContext for each pod

Description
Add possibility to configure securityContext for forge and broker pods.
Additionally, set a default value for seccompProfile to RuntimeDefault for both pods.
Related Issue(s)
#323
Checklist

[x] I have read the contribution guidelines
[ ] Suitable unit/system level tests have been added and they pass
[ ] Documentation has been updated

[ ] Upgrade instructions
[ ] Configuration details
[ ] Concepts

[ ] Changes flowforge.yml?

[ ] Issue/PR raised on FlowFuse/helm to update ConfigMap Template
[ ] Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

[ ] Backport needed? -> add the backport label
[ ] Includes a DB migration? -> add the area:migration label

@ppawlowski do we need to talk about what security context will be applied to the NR instance pods?

@ppawlowski do we need to talk about what security context will be applied to the NR instance pods?

NR instances are created by the application with kubernetes driver thus it is outside of the scope of the change introduced in this PR. However, it is worth to implement security context parameters on NR as well, but as a separate task.

NR instances are created by the application with kubernetes driver thus it is outside of the scope of the change introduced in this PR. However, it is worth to implement security context parameters on NR as well, but as a separate task.

Yes, but I was meaning should we have a paired drive pr to match? And should it use some of the same values?

NR instances are created by the application with kubernetes driver thus it is outside of the scope of the change introduced in this PR. However, it is worth to implement security context parameters on NR as well, but as a separate task.

Yes, but I was meaning should we have a paired drive pr to match? And should it use some of the same values?

Can be implemented independently. Regarding values - for the seccomp profile it should be fine, although some tests should be performed. For the user/group ID - this might change due to https://github.com/FlowFuse/helm/issues/251 .

OK, so the only thing missing from this (we will look at the driver update later) is adding to the file-server pod

authors: hardillb ppawlowski

repo: FlowFuse/helm


text:
既に設定が保存されたPIのinputがおかしい

Inputが最新ではない

Done?

repo: FlowingSPDG/streamdeck-vmix-plugin


text:
[BUG] Qdrant didn't follow metadata search filter

Describe the bug
Upserting two txt documents marked by a different "source" metadata (following this  approach), and setting in Qdrant filtering parameters the correct structure as defined here, in any case only a single document information is retrieved during the chat, always the same document. Tested both with Claude and GPT, checked and Qdrant has correctly saved the data with their metadata.
To Reproduce
Steps to reproduce the behavior:

Use attached flow, change the system prompt in English
Use attached txt (apologize they are in Italian, but doesen't matter with the multilanguage LLMs like Claude)
Ask about the content of the document, will be always answered about the Neanderthal even if in the Qdrant filter is set habilis as source

Expected behavior
Since the source is set "habilis" I expect will answer questions regarding the habilis document.
Screenshots
Ask anything
Flow
Attached
Setup

Installation npx flowise start
Flowise Version 1.6.5
OS: linux
Browser Firefox
Qdrant 1.9.0 image running locally using
docker run -p 6333:6333 -p 6334:6334     -v $(pwd)/qdrant_storage:/qdrant/storage:z     qdrant/qdrant

Additional context
Habilis.txt
Neanderthal.txt
Two document Qdrant test Chatflow.json

@davide445 thanks for the bug! PR to fix that - https://github.com/FlowiseAI/Flowise/pull/2285
Reason being the filter was not passed to the VectorStore To Document node

repo: FlowiseAI/Flowise


text:
[BUG] Terraform - After deployment Issue

Describe the bug
I am able to deploy the application but its getting error to display chatflows.

To close this issue.

need to enable uuid-ossp in postgres sql
remove zone option in database tf
add DATABASE_SSL=true in webapp.tf

which terraform guide are you using? if possible, an update on the docs would be helpful! https://github.com/FlowiseAI/FlowiseDocs

authors: HenryHengZJ Krishna-Maiden


text:
⚠ Unifi Controller has degraded performance

In 16e4d50, Unifi Controller (https://unifi.vflits.com/) experienced degraded performance:

HTTP code: 200
Response time: 2703 ms

Resolved: Unifi Controller performance has improved in a68d4c8 after 20 minutes.

repo: Fluffy-Pan/upptime


text:
Can no longer start/continue a run when AdvancedCompany is present

Describe the bug
As of more recently, I've been unable to start/continue a run at all after hitting "Continue".  My console seems to hang with a specific error (see screenshot below) and never proceeds to starting a run. I am able to quit out of the preset menu, but that does not fix the issue of the continue button not proceeding to a run. I believe something for AC got corrupted when my PC was forcefully shut off due to my power going out.
To Reproduce
Steps to reproduce the behavior:

Go to the preset menu and try to edit some values.
Have the PC forcefully shut off in some way.
Boot up the game again like normal.
Attempt to start/continue a run.
Check console and see if the game hangs due to a specific error.

Expected behavior
Should be able to start/continue a run like normal after I hit "Continue" on the preset screen.
Screenshots
My console seems to hang at this error shown below:

Additional context
I thought at first this issue was occurring due to a mod incompatibility with my usual group pack
Code: 018d7b20-82c9-7665-9c33-59e70928e8ef
At the time this bug occurred, I was editing the spawn weights of the "Immortal Snail" enemy on all maps.
During this time I had a nasty thunderstorm occurring and it knocked out my power for several hours.
After enough testing via disabling mods, I finally ruled out that AC seems to be the one causing the issue to hang when trying to start runs, as the profile linked below (that does NOT use AC) can start/continue a run just fine.
Code: 018d7b25-d244-721d-8a9f-70b957a41840
Logfiles
Player.log
Add a list of all of your mods
BepInEx-BepInExPack-5.4.2100
Rune580-LethalCompany_InputUtils-0.6.3
PotatoePet-AdvancedCompany-1.0.148

Apologies for the immediate update but I managed the fix the issue, here's what I did to fix it:
I went to where the game's log files are stored as I noticed there's files tied to advancedcompany stored here as well, I deleted these and rebooted the game to regenerate them, and that's seem to fix the issue.
Directory for the game log files being this one: %AppData%..\LocalLow\ZeekerssRBLX\Lethal Company

repo: FluffyFishGames/AdvancedCompany


text:
[Enhancement] 빨간색으로 표시된 날짜에 대한 설명

사용자들이 어떤 날짜는 빨간색으로 표시되어있는 것을 이상하게 느낄 수 있을거라 생각합니다.
일별 그래프 하단 혹은 레포트 최상단의 '이 레포트는 ~ 제작되었습니다.' 밑에
주말은 빨간색으로 표시하였다는 설명을 추가하면 좋을 것 같습니다.

이상하게 우측의 assignees 와 labels 추가가 안되어서 멘션하겠습니다..ㅎㅎ
@sayiovme

우선 이런 식으로 문구를 넣어보았습니다.
폰트 사이즈 / 위치 등에 있어 의견이 있으면 언제든 댓글 주세요.

우선 이런 식으로 문구를 넣어보았습니다.
폰트 사이즈 / 위치 등에 있어 의견이 있으면 언제든 댓글 주세요.

저는 만족합니다! 감사합니다.

repo: FluidTrack/Report


text:
MAMP

I cloned the repository into /htdocs using MAMP. If I go through the commands listed in the readme I get the following errors:

Going to _http://localhost:8888/angular-symfony/web/#/login_ or _http://localhost:8888/angular-symfony/web/app_dev.php/#/login_ the js does not find the templates.
Playing around with the paths in app.js I will get /username/salt not defined.
Which symfony2 version do u used? "SecurityContextInterface" is deprecated at me (See WsseListener) UPDATE: version 2.6.x cleares this problem.

Do I missed some setup step?
U.I Symfony2 version 2.7.10

Hi, do you have mod_rewrite enabled? You should access the project using http://localhost:8888/angular-symfony/ (no web).
To install dependencies (with symfony) you should use composer.phar install

I personally use a virtualhost for my testings, let me try with a subfolder to see if I get the problem

Issue should have been resolved with commit 752adc86400fa5e318da4d57d195f7ac04fe3722. Let me know if it's OK now.

authors: FlyersWeb zsala

repo: FlyersWeb/angular-symfony


text:
🛑 Autogestión Clientes is down

In 730e272, Autogestión Clientes (https://sacautogestion.focasoftware.com/index) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Autogestión Clientes is back up in 68e7aac.

repo: Foca-Software/status


text:
🛑 Homepage is down

In f4d5da0, Homepage (https://forgoodeyesonly.eu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Homepage is back up in 9b0db52 after 32 minutes.

repo: ForGoodEyesOnly/status


text:
Update buildconfig.md

Typo in URL for kubernetes.sh.

Thanks for considering a contribution to ForestFlow.
A few notes:
1 - The "build" directory was recently renamed and there are more locations that reference the old structure even in the same buildconfig.md file. Here's an example:
./../buildah/.build-local.sh
Mind if you looked at correcting all of them in that file and/or the rest of the docs?
2 - The DCO check failed. This is a check that requires certification of code which just means your name/email need to be in the commit message. It's actually pretty easy and git provides a shortcut. When you issue a git commit, add a "-s" flag and git will do it automatically for you. It also shows you how to correct your previous commit retroactively.
Thanks!

Yep, happy to do so.

authors: aalkilani baldwinSPC

repo: ForestFlow/ForestFlow


text:
Added jUnit reports for jest tests needed for Jenkins builds

This PR request is needed for the Jenkins integration - builds and tests.

run tests

run tests

run tests

run tests

run tests

run tests

repo: ForgeRock/forgerock-javascript-sdk-ui


text:
Update webpack dependency

create-react-app@2.1.3 was the last version to use webpack@4.19.1. Since v2.1.4, create-react-app uses webpack@4.28.3.
When using v2.1.4 or above, the following error occurs:

> frontend@0.1.0 start /home/bernardo/Documents/project
> craco start

There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

  "webpack": "4.28.3"

Don't try to install it manually: your package manager does it automatically.
However, a different version of webpack was detected higher up in the tree:

  /home/bernardo/Documents/project/node_modules/webpack (version: 4.19.1)

Manually installing incompatible versions is known to cause hard-to-debug issues.

If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That will permanently disable this message but you might encounter other issues.

To fix the dependency tree, try following the steps below in the exact order:

  1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
  2. Delete node_modules in your project folder.
  3. Remove "webpack" from dependencies and/or devDependencies in the package.json file in your project folder.
  4. Run npm install or yarn, depending on the package manager you use.

In most cases, this should be enough to fix the problem.
If this has not helped, there are a few other things you can try:

  5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead.
     This may help because npm has known issues with package hoisting which may get resolved in future versions.

  6. Check if /home/bernardo/Documents/project/node_modules/webpack is outside your project directory.
     For example, you might have accidentally installed something in your home folder.

  7. Try running npm ls webpack in your project folder.
     This will tell you which other package (apart from the expected react-scripts) installed webpack.

If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That would permanently disable this preflight check in case you want to proceed anyway.

P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frontend@0.1.0 start: `craco start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frontend@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bernardo/.npm/_logs/2019-03-01T15_23_12_995Z-debug.log

By pinning react-scripts@2.1.3 the error is solved, but this should only be a temporary solution while webpack in craco-less is not updated.

Hi @bernardobelchior, thanks for letting me know! I've bumped all the versions and have released craco-less version 1.7.0. Please let me know if you run into any issues with the latest version. Thanks!

authors: bernardobelchior ndbroadbent

repo: FormAPI/craco-less


text:
Update README.md

correct the package.json snippet to correct JSON format

Thanks @goldensunliu !

authors: blainekasten goldensunliu

repo: FormidableLabs/enzyme-matchers


text:
Wrapping Component with Radium & Connect

Spent a few hours investigating why
on one of my components Radium media queries works fine, and on another, getting
0:[object Object]
The reason was decoration order:
@connect(createSelector(args), mapDispatchToProps)
class SharePanel extends {}
return Radium(SharePanel);

do not work

@Radium
@connect(createSelector(args), mapDispatchToProps)
class SharePanel extends Component {}
return SharePanel;

do not work

@connect(createSelector(args), mapDispatchToProps)
@Radium
class SharePanel extends Component {}
return SharePanel;

works!

Hope it will save time for others

Thanks @olegkalyta! We'll work on updating the docs to better reflect this.

Hey @olegkalyta ,
I'm having trouble implementing @Radium with @Connect. Do you have any open source projects with an example of this?

Hi @IrvingAxelB
unfortunately no :(
send me pm, will try to help

authors: IrvingAxelB alexlande olegkalyta

repo: FormidableLabs/radium


text:
Can we create topic subscription problematically using .net core 2

is that possible ?

@LilanMadusankaSilva We have a net standard client 6.1 client located on our nightly nuget feed on myget (https://www.myget.org/gallery/exceptionless) See this for more info (https://github.com/FoundatioFx/Foundatio.AzureServiceBus/pull/2)
If you specify your azure ad credentials it will create topic subscription you define in the passed in options for you. But we don't expose any management api's directly to do any management other than delete the queue. We are not going to be releasing this other than a nightly feed until Microsoft brings back the connection string based management features as requiring AD credentials to even create a topic is insane. Does this help?
@shahbarkha Am I missing anything?

@niemyjski - Thats correct. We don't expose separate API to manage any entities like creating/deleting topic subscriptions . Although we ensure they get created as soon as the user tries to send or recv the message to and from the topic through PublishAsync and SubscribeAsync.
So programatically topics are getting created though above APIs.

@shahbarkha - So programmatically topics are getting created though above APIs.
That means I can create topic subscriptions pragmatically. Can you give me sample code for that?

@LilanMadusankaSilva Which code are you accessing? I don't see that we are using IAzureSubscriptionReceiver anywhere.
You should use IMessage interface to access the functionality. Something like this:
IMessageBus messageBus =
new AzureServiceBusMessageBus(new AzureServiceBusMessageBusOptions() {
Topic = "Topic1",
SubscriptionName = "Subscriber1",
ConnectionString = "Endpoint=sb://nnn.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=lpgwMXDswO3SgJkfEPoF/pZ/HAizlMgkWnNDaAvfuug=",
SubscriptionId = "69636ii3-911f-4ac0-bda9-12d6126471df",
ResourceGroupName = "resourcegroup",
NameSpaceName = "namespace",
Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IlZXVkljMVdEMVRrc2JiMzAxc2FzTTVrT3E1USIsImtpZCI6IlZXVkljMVdEMVRrc2JiMzAxc2FzTTVrT3E1USJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MzBjNTliZC05NTIyLTRkZTEtYjE1Yy05NzU2YTA1NTA2MGMvIiwiaWF0IjoxNTAyMjk4ODk1LCJuYmYiOjE1MDIyOTg4OTUsImV4cCI6MTUwMjMwMjc5NSwiYWlvIjoiWTJGZ1lGaWoyV0wrZEU3YlhybnNqSTVqRnczMkFBQT0iLCJhcHBpZCI6ImYxODkyY2U0LTg5MjQtNGU1Yi05Y2E4LWNiNWRiM2I3NWE1OCIsImFwcGlkYWNyIjoiMSIsImVfZXhwIjoyNjI4MDAsImlkcCI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzczMGM1OWJkLTk1MjItNGRlMS1iMTVjLTk3NTZhMDU1MDYwYy8iLCJvaWQiOiIxMjVkN2MzYi0zYTVjLTQ0ZWYtOTk2OS1iZTJlMDg5NWM4YmMiLCJzdWIiOiIxMjVkN2MzYi0zYTVjLTQ0ZWYtOTk2OS1iZTJlMDg5NWM4YmMiLCJ0aWQiOiI3MzBjNTliZC05NTIyLTRkZTEtYjE1Yy05NzU2YTA1NTA2MGMiLCJ2ZXIiOiIxLjAifQ.rWbOooQ7Jrdjblj0pBDy07hIe3IAcktu-2apM8DZztG6fZMhJLCts_PsKMh0-u3j2boG_bfFFxI9OwgxYqDWonQMVAhHlANgM3KEmEoKv_4WgG7rawamipi6JAGTejfVOQeaoUZFCHbC0N02hMNeaReyhj8gukwmQMruUOTA_u9STM5ra13BSiZZMH8OSS3HwvnI5-nkIzbQqdOD5KaR1PDPMMHKR104lX43zhK9HyJvPlv1d16BwT8ejoAUfIrJ0zxgFpsPoJg1XdVkS7FA5XB_Js0bCt5Kto0EXltx8H5bcpTB5kjZvPVsv9TmakwwutOv9dPBDU36euSNMaLjEQ"
});
messageBus.SubscribeAsync(msg => { Console.WriteLine(msg); }).GetAwaiter().GetResult();

If you can please provide me working sample code?


text:
FID of VQVAE

Great work! I really liked it.
Could you provide the FID score of your multi-scale VQVAE on ImageNet? I think it was not mentioned in the paper.
Thanks.

It is about 0.9

repo: FoundationVision/VAR


text:
Reduce memory consumption and increase performance for image comparison

[ ] Determine memory usage for individual image (both raw and loaded into resemble)
[ ] Determine what impact converting image to smaller size has on cumulative memory usage, comparison speed, and general cpu usage
[ ] Potentially refactor image comparison object usage (repeat/recent reference objects) based on results from above

Turns out the majority of run time is due to downloading images. Also using "ignore colors" or setting a bounding box on comparison actually slowed comparisons down b/c resemble is doing more work in those instances...
Was able to reduce rule run time in f8fc63991f6b8f732878c722790ee7a3a07d9bff by:

refactoring image fetch into an async getter (get on-demand)
use reddit previews where possible so the downloaded image is a smaller resolution (if comparable to reference preview resolutions)
do image comparisons in parallel using Promise.all instead of for-looping

Unfortunately comparisons in parallel is making memory usage skyrocket. Need to investigate p-map so i can set concurrency to something reasonable (or user-configurable)

repo: FoxxMD/context-mod


text:
Item edition service

Clicking on save will now save the changes and update the displayed values, but not on the left menu.
Also the toast aren't working currently.

Codecov Report

Merging #144 into master will decrease coverage by 0.07%.
The diff coverage is 20.00%.

@@            Coverage Diff             @@
##           master     #144      +/-   ##
==========================================
- Coverage   43.73%   43.65%   -0.08%
==========================================
  Files          86       86
  Lines        1141     1143       +2
  Branches      192      192
==========================================
  Hits          499      499
- Misses        618      620       +2
  Partials       24       24

Impacted Files
Coverage Δ

src/app/core/app.component.ts
3.70% <0.00%> (ø)

...red-components/components/input/input.component.ts
10.00% <0.00%> (-2.50%)
:arrow_down:

src/app/shared/services/current-content.service.ts
80.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

authors: AyeRlS codecov-io

repo: France-ioi/AlgoreaFrontend


text:
Feature/typescript improvements

Description
Fixes #857
Notes (out of scope, known isues, hints for reviewing code, ...)  (optional)
...
Test cases

[auto-generated message] E2E test report on: https://algorea-static.s3.eu-central-1.amazonaws.com/branch/feature/typescript-improvements/playwright-report/index.html

authors: Iloveall smadbe


text:
Feature/path suggestion overlay

Description
Fixes #615
Notes (out of scope, known isues, hints for reviewing code, ...)  (optional)
While BE going to add type to the root breadcrumbs response, we can consider all items are activity.
I've found that mapToFetchState doesn't change isFetching field to true for second request, you can see this affect when change hover from row to row in table. I can add merge fetchingState but not sure if it's correct and only one way. Let me know what you think
Test cases

[ ] Case 1:

Given I am the usual user
When I go to this page
And hover on one of row table
Then I see overlay with path suggestion

The path is not readable at all, but I doubt that there's actually a way to make sure it is readable with such a popover.

How do you reached this page? It looks you have a loop in your items which is normally impossible.
It looks like the concatenation of 2 readable breadcrumbs. What should be displayed has two lines not including the last "Les tests" as this is the already visible element.
Ok, so this example will not really happen in practice...
Then we can decide to always display the tail (not including the searched item itself) and truncate the head. This is the most important part.
Probably there will be other improvements to be done once I saw what it gives in practice.

Also I've add one more test case


text:
Create brownie

added a brownie recipe

#11


text:
Feature request (ink-story-web-player): Refactor to avoid code duplication

What MIST package?
ink-story-web-player
Is your feature request related to a problem? Please describe.
There is code duplication on packages/ink-story-web-player/src/components/InkStoryWebPlayer/index.test.js.
Describe the solution you'd like
Stay DRY!
Additional context
Details about the duplication on codacy: packages/ink-story-web-player/src/components/InkStoryWebPlayer/index.test.js

Is this issue still up for grabs? I would like to take it.

authors: AlvaroAlonsoFlor FranciscoFornell

repo: FranciscoFornell/MIST


text:
Improve implementation of get_management_info function

Hi!
I've hacked a bit further and I think the get_management_info message seem to work for me now, so we can see when the battery requests charging and when it allows charging / discharging - which could be used for inverter control.
Please let me know if you think this looks right or if there's any comments or concerns :)

Hi,
Trying to test the and I get the following error:

Trying to test this and I get the following error:
>>> print(p.get_management_info())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Pylontech.get_management_info() missing 1 required positional argument: 'dev_id'

I played with get_management_info function on low-level with my US5000 and this is what I get:
query: 7e | 32 30 | 30 32 | 34 36 | 39 32 | 45 30 30 32 | 30 32 | 46 44 32 45 | 0d
reply: 7e | 32 30 | 30 32 | 34 36 | 30 30 | 42 30 31 34 | 30 32 | 44 30 30 32 | 41 46 43 38 | 30 30 30 30 | 46 43 45 30 | 34 30 | 46 39 33 46 | 0d
Reply analysis:
7e: SOI
32 30: VER 0x20
30 32: ADR 0x02
34 36: CID1 0x46 (const)
30 30: RTN = 0 = normal
42 30 31 34 = LENGTH = 0x14 = 20, Checksum 0x42
 INFO:
30 32: Command value 0x02
  Charge and discharge management value:
44 30 30 32: Charge voltage limit (uint16) 0xD002 = 53250 / 1000 = 53.25V
41 46 43 38: Discharge voltage limit (uint16) 0xAFC8 = 45000 / 1000 = 45.0V
30 30 30 30: Charge current limit (uint16) 0x0 = 0 / 10 = 0A
46 43 45 30: Discharge current limit (int16) 0xFCE0 = -800 / 10 = -80A
34 30: Charge, discharge status: 0x40, bit 7 - charge enable, bit 6 discharge enable, bit 5 charge immediately, bit 4 charge immediately, bit 3 full charge request
46 39 33 46: CHKSUM 0xF93F
0d: EOI

Sorry for the delay; thanks !

@abelsson @Frankkkkk
So I'm getting the below, seems it is treating the ChargeVoltageLimit and DischargeVoltageLimit as signed integers, should be unsigned?
[11:13:51][I][main:178]: Start: Recieved new data
[11:13:51][I][uart_log:035]: <<< 7E:32:30:30:32:34:36:39:32:45:30:30:32:30:32:46:44:32:45:0D
[11:13:51][I][main:557]: Send Pylon charge, discharge management info
[11:13:51][I][main:588]: status byte hex: 40
[11:13:51][I][main:626]: charging_voltage D868
[11:13:51][I][uart_log:035]: >>> 7E:32:30:30:32:34:36:30:30:42:30:31:34:30:32:44:38:36:38:41:42:45:30:30:30:30:30:46:43:45:30:34:30:46:39:33:35:0D

>>> print(p.get_management_info(2))
b'\x02\xd8h\xab\xe0\x00\x00\xfc\xe0@'
10
Container:
    ChargeVoltageLimit = -10.136
    DischargeVoltageLimit = -21.536
    ChargeCurrentLimit = 0.0
    DischargeCurrentLimit = -80.0
    status = Container:
        ChargeEnable = False
        DischargeEnable = True
        ChargeImmediately2 = False
        ChargeImmediately1 = False
        FullChargeRequest = False
        ShouldCharge = False

Right, yes it does appear that it should be unsigned - sorry! The protocol specification was unclear and it seems the data from my battery didn't show the signedness bug. Thanks for catching it!

authors: Frankkkkk Uksa007 abelsson rotorman

repo: Frankkkkk/python-pylontech


text:
Cleanup NodeBuilder

NodeBuilder uses rawNode to apply metadata. Optional parameters location and code are not in the rest of the codebase used and removed to cleanup the NodeBuilder code.

The remaining failing tests are in the python frontend. Since we are re-writing this anyway, we are not fixing this in the old frontend, but are blocked by https://github.com/Fraunhofer-AISEC/cpg/pull/1282, which we will merge soon.

authors: maximiliankaul oxisto

repo: Fraunhofer-AISEC/cpg


text:
DIVA (Meta-)Data Network

A data network is an interesting concept to link together related metadata. For example one could link resources to assets or data owners to their resources. This network can then be used to understand relationships more clearly.
The network should be persisted in a graph database. There, all entities are created as nodes with specific types. An assistant can then be accessed to create or delete relations between nodes.
Describe alternatives you've considered
Currently, our asset-management has a list of entities contained. This is not sufficient. It costs much more to request if a resource is part of an asset as it is the other way around.

@DaTebe
We are going to merge this as successful PoC. For quick recap: we added a simple DNA (Data Network Assistant) service that is responsible for the semi-automated construction of the DIVA data network. We've approved the technical decoupling of the relations between entities that opens opportunities for more rich network construction. Some key points:

All relation between entities are represented and handled through DNA
Only few technically required attributes (e.g. creatorId, attributedTo) may contain reference to other entites. This attributes however are static, they never changes and are necessary to ensur the consistency
Data Owners and Assets network managing is already migrated to DNA as PoC
As prototype solution we also replicate relations between entities in denormalized ES indices to be able to apply security policies for search

Here is a little expression of the network:

authors: DaTebe setaman

repo: FraunhoferISST/diva


text:
Unable to compact Microsoft (Xbox) games

Whenever I try to compact an Xbox game on PC (Forza Horizon 4 for example) it says Access Denied: OS error 5. Any way to solve this? I have full admin control on my user and I've tried launching the .exe as admin.

Microsoft Store apps are protected by NTFS ACLs, even from Administrator accounts - you'll need to jump through hoops to allow yourself access, or maybe arrange for Compactor to be ran as TrustedInstaller - though my attempts at this haven't got very far.

I'm going to close this, since I believe the issue is intractable.
Microsoft Store apps are actually stored in archives, and their contents exposed to the filesystem via reparse points and a filter driver - exactly the same mechanism used by Compactor, just with storage backed by the archives instead of compressed alternate streams.
With this in mind it makes sense you can't stack individual file compression on top the files themselves - since they're not actually real files - and the archives themselves also don't appear compressible for.. whatever reason.  I would hope they're already compressed.

repo: Freaky/Compactor


text:
Fill in the blank with placeholder text

Challenge http://freecodecamp.com/challenges/waypoint-fill-in-the-blank-with-placeholder-text has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

put kitty ipsum text in the p elemment

repo: FreeCodeCamp/FreeCodeCamp


text:
The code is not working on "Ctrl+Click" .. The mobile screen on the side is left BLANK with no output. Please fix this asap.

Challenge Waypoint: Disable an Element Using jQuery has an issue.
User Agent is: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

jQuery Playground

#left-well

        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>

#right-well

        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>

In jQuery section --> Question no. 7 and onwards, the screen is not showing any output and my level is not incrementing.

According to your user agent you are using Chrome 22. If that's true I would recommend updating as that is 3 years old. I am not able to reproduce this error using Chrome 46.

Ok thanks for your response, will try it soon.
On 20-Nov-2015 12:14 pm, "Logan Tegman" notifications@github.com wrote:

According to your user agent you are using Chrome 22. If that's true I
would recommend updating as that is 3 years old. I am not able to reproduce
this error using Chrome 46.
—
Reply to this email directly or view it on GitHub
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/4577#issuecomment-158296305
.


text:
Run Test button, do not recognize the correct result

Challenge Waypoint: Target Elements by ID Using jQuery has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; rv:42.0) Gecko/20100101 Firefox/42.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

jQuery Playground

#left-well

        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>

#right-well

        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>

jQuery Waypoints 2-5 are not working properly and do not recognize my input when trying to use addClass() method.

Closing as a duplicate of #4865. The waypoints may not be the same but the symptoms are. We have a PR awaiting merge that should solve this problem.
Thanks and happy coding!

authors: Oofnik ltegman


text:
Fix: Refactor Waypoint Javascript Slot Machine

Fixes #4236
I refactored the code and moved the 'Not a winner' statement below.

When the numbers are equal then, it will print 'It's a Win' .
The statement 'Not a Win' will append to the .logger field instead of replacing the numbers.

Note: I haven't tested this locally. Haven't found the time to setup the dev env. Please check it locally.

Woo -- the slot machine works! Only issue that because variations of this seed code are used in multiple lessons and the part you fixed is actually entered by the user in one of the earlier lessons you'll need to make a couple more changes. You'll need to alter the seed for the next lesson to match the changes you made and also change the lesson before so that the student is asked to enter in code that looks like what you've put in the seed.

Is this ok? or should I add more in the description?

It still looks fine in my editor :/ so had to manually edit here. If this is fine, I'll squash the commits into one. @SaintPeter

It's not a matter of how it looks, unless you can have "show whitespace" toggled on.  The issue is that there were two hard tabs (ASCII #0009) INSIDE the string.  Those are not allowed by the JSON Spec (Page 10).  This was really tricky to track down.  So, thanks, I guess, for highlighting a deficiency in our linter.
There is still one lingering tab at the start of line 1826.  Go ahead an get rid of that and squash these down and I'll test again.

Ah, ok. Didn't know about that :/, Sorry again for that! squashed the commits, hope this is fine now.
@SaintPeter

@faizaanceg If it's any consolation, I didn't know either.  I've had a bit of "fun" learning about it today. ;)

"Waypoint: Add your JavaScript Slot Machine Slots"
I believe the sample code is wrong and doesn't match the code in the next waypoint.
if(slotOne !== slotTwo || slotTwo !== slotThree){
  return null;
}

It is note entirely clear to me where the "It's a Win" message should go in that waypoint, based on the instructions.
For "Waypoint: Bring your JavaScript Slot Machine to Life"
This needs to be fixed:
if (slotOne === slotTwo && slotTwo === slotThree) {
      $(".logger").html(" It's A Win")
      return slotOne;  // Should return null
    }

Same for the next waypoint.
Waypoint: Give your JavaScript Slot Machine some Stylish Images
$('.logger').append('Not A Win');

Needs a space before 'Not a Win'.
One last thing -
Maybe it should be "It's a Win!", because, yay, gambling.

@faizaanceg you'll need to do a rebase off staging for Travis tests to run.

Done and done =). Playing around with Git is fun and annoying :P
Is this ready to be merged @SaintPeter ?

Ok, looking at "Waypoint: Add your JavaScript Slot Machine Slots":

If they have, we should notify our user that they've won and we should return null.
null is a JavaScript data structure that means nothing.
The user wins when all the three numbers match. Let's create an if statement with multiple >conditions in order to check whether all numbers are equal.
if(slotOne === slotTwo && slotTwo === slotThree){
return null;
}
Also, we need to show the user that he has won the game when he gets the same number in all the >slots.
If all three numbers match, we should set the text "It's A Win" to the element with class logger or leave it as it is.

But the expected code is:
if(slotOne === slotTwo || slotTwo === slotThree){

      $(".logger").html(" It's a Win");

      return null;
    }

I'm not sure if we should explicitly include the logger stuff in the sample code above or not.  We don't actually check for it in the tests.
Otherwise, this is ready to merge.

@SaintPeter  If we add that line to the sample code, wouldn't we be giving away the entire answer? I thought the sample code should be a starting point, not a copy-paste answer.

I'm not sure, actually, which is why I'm asking.  I'm just not sure if the instructions are enough:

If all three numbers match, we should set the text "It's A Win" to the element with class logger or leave it as it is.

Maybe an alternate:

If all three numbers match, we should also set the text "It's A Win" to the element with class logger.

Hmm. That 'also' does make some difference. Hmm will do those changes

This looks good @faizaanceg.
:+1:
Thank you so much for taking the time to help get this right.  I know it's been a lot of work, but I think it will ultimately pay off with our users.

Awesome job on this change both of you! :smile:

:+1:

authors: BerkeleyTrue SaintPeter faizaanceg ltegman