adding version to the template class

ovirt templates have versions, we want that information available.

The version of a template is not a simple string, but a structure with three components (see the XML schema from the oVirt Engine repository in [1]):
<xs:complexType name="TemplateVersion">
  <xs:sequence>
     <xs:element name="base_template" type="Template"  minOccurs="0" maxOccurs="1"/>
     <xs:element name="version_number" type="xs:int"  minOccurs="0" maxOccurs="1" />
     <xs:element name="version_name" type="xs:string"  minOccurs="0" maxOccurs="1"/>
  </xs:sequence>
</xs:complexType>

With your current code you are getting just the text of the "version" element. That will result in concatenation of the contents of "base_template", "version_number" and "version_name". If only one of them happens to be populated things will work, but the moment two or more are populated your code will get incorrect results.
To do this correctly you need to define a new TemplateVersion class corresponding to the above XML complex type, and parse it correctly (maybe only the elements that you currently need). Then the @version attribute of the Template class should be  an instance of that class.
[1] http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=blob;f=backend/manager/modules/restapi/interface/definition/src/main/resources/modules/restapi/interface/definition/src/main/resources/api.xsd;h=85d76fd3829b8f47265f9211fed5c5de2da9ed2f;hb=HEAD#l493

@jhernand - done, pushed a new commit with the TemplateVersion class.

Looks good, thanks.

please LMK when this is released in a new version of the gem

Your change is included in release 0.0.32: https://rubygems.org/gems/rbovirt/versions/0.0.32

I am not familiar with the specific use case that you are handling, but worth to note that there's an additional new boolean property for stateless vms: use_latest_template_version, I didn't see it was handled in this patch.
see here:
http://www.ovirt.org/Features/Template_Versions#REST_API


MSTest SDK does not work with Central Package Management

Describe the bug
When using MSTest.SDK for a test project under Central Package Management, NU1008 is encountered.

Projects that use central package version management should not define the version on the PackageReference items but on the PackageVersion items: PackageId.

Steps To Reproduce

Start with an existing project that uses Central Package Management that has packages defined in a Directory.Packages.props file at root.
Update the test csproj file to use MSTest.SDK (and optionally update the global.json file to specify version)

Expected behavior
Project should build and test exe should be produced
Actual behavior
Nuget Error NU1008 is encountered.
Additional context
MSTest.SDK has a few PackageReference Includes that clash with Central Package Management. Correct behavior for a dotnet SDK is to either override or not include package versions.

Attempting a fix with #2569

Start with an existing project that uses Central Package Management that has packages defined in a Directory.Packages.props file at root.

Looking at the error I suppose you have some MSTest library inside the Directory.Packages.props. If so it will collide with the versions we "fixed" inside the SDK self.
To use the SDK you should remove all the MSTest.* packages you've referenced in your solution/projects and rely only on the version you specify inside the SDK. The SDK takes care about the correct set of dependencies. Finally you don't have anymore to know what dependencies are needed to run your tests, we take care of everything and you've only to decide if put the version inside the test project self or use the global.json at repository level and share same version (this is our suggested approach to keep everything aligned).


Unhandled Exception: Bad state: Cannot add new events after calling close

Describe the bug
A clear and concise description of what the bug is.
Unhandled Exception: Bad state: Cannot add new events after calling close
When I used second-time SearchField, I didn't know why it gave me this error.
sorry I don't have wide info about error.

when I click the error line in debug console.

my code
Form(
                              key: _soldierFormKey,
                              child: SearchField<FilterModel>(
                                suggestions: birthPlaceList
                                    .map(
                                      (e) => SearchFieldListItem<FilterModel>(e.title,
                                          item: e,
                                          child: Text(
                                            e.title,
                                            style: CustomTextStyles(context).headline5(
                                              fontWeight: FontWeight.normal,
                                              darkThemeColor: Colors.black,
                                              lightThemeColor: Colors.black,
                                            ),
                                          )),
                                    )
                                    .toList(),
                                suggestionState: Suggestion.expand,
                                textInputAction: TextInputAction.done,
                                hint: langTranslation!.search,
                                hasOverlay: false,
                                autoCorrect: false,
                                suggestionAction: SuggestionAction.unfocus,
                                searchStyle: CustomTextStyles(context).headline5(
                                  fontWeight: FontWeight.w500,
                                  darkThemeColor: Colors.black,
                                  lightThemeColor: Colors.black,
                                ),
                                validator: (validatorText) {
                                  if (validatorText != null && validatorText.isEmpty) {
                                    return null;
                                  } else if (validatorText != null &&
                                      !ref.read(containBirthPlaceProvider(validatorText))) {
                                    return "";
                                  } else if (validatorText != null &&
                                      ref.read(containBirthPlaceProvider(validatorText))) {
                                    int id = ref.read(getIdFromBirthPlaceListProvider(validatorText));
                                    placeId = id;
                                    print(" placeId $placeId ");
                                    ref.refresh(searchProvider).getSearchViewModel(
                                          soldierId: ref.refresh(soldierIdProvider.notifier).update((state) => 0),
                                          birthPlaceId: placeId,
                                        );
                                    ref.refresh(statusControlProvider.notifier).update((state) => null);

                                    bottomNavKey?.onTap!(1);
                                    return null;
                                  } else {
                                    return null;
                                  }
                                },
                                controller: _textEditingController,
                                searchInputDecoration: filterFormFieldDecoration(
                                  contentPaddingHorizontal: 20.w,
                                  contentPaddingVertical: 1.sm,
                                  context: context,
                                  errorBorderWidth: 2,
                                  suffixIcon: Row(
                                    mainAxisAlignment: MainAxisAlignment.end,
                                    mainAxisSize: MainAxisSize.min,
                                    children: [
                                      IconButton(
                                        splashColor: Colors.transparent,
                                        highlightColor: Colors.transparent,
                                        padding: EdgeInsets.zero,
                                        constraints: const BoxConstraints(minWidth: 1, minHeight: 1),
                                        splashRadius: 0.1,
                                        onPressed: () {

                                        },
                                        icon: const Icon(
                                          Icons.search,
                                          color: Colors.blue,
                                        ),
                                      ),
                                      IconButton(
                                        splashColor: Colors.transparent,
                                        highlightColor: Colors.transparent,
                                        splashRadius: 0.1,
                                        onPressed: () {

                                        },
                                        icon: const Icon(
                                          Icons.place_outlined,
                                          color: Colors.blue,
                                        ),
                                      ),
                                    ],
                                  ),
                                  errorStyle: const TextStyle(height: 0, color: Colors.transparent),
                                ),
                                onSubmit: (textValue) => _soldierFormKey.currentState?.validate(),
                                maxSuggestionsInViewPort: 3,
                                emptyWidget: Container(
                                  // height: 50,
                                  width: double.infinity,
                                  padding: EdgeInsets.only(
                                    top: 15.h,
                                    bottom: 15.h,
                                    left: 10.w,
                                  ),
                                  color: whiteColor,
                                  child: Text(
                                    langTranslation.noresult,
                                    style: CustomTextStyles(context).headline5(
                                      fontWeight: FontWeight.normal,
                                      darkThemeColor: Colors.black,
                                      lightThemeColor: Colors.black,
                                    ),
                                    // textAlign: TextAlign.center,
                                  ),
                                ),
                                itemHeight: 45.h,
                                onSuggestionTap: (SearchFieldListItem<FilterModel> value) {
                                  placeId = value.item?.id;
                                  _soldierFormKey.currentState?.validate();
                                },
                              ),
                            ),

HI @Shahmirzali-Huseynov, Thanks for filing the issue. Can you please try using fix-17 branch as mentioned here https://github.com/maheshmnj/searchfield/issues/17#issuecomment-1200108227 , I believe that issue is fixed.

Also see https://github.com/maheshmnj/searchfield/issues/17#issuecomment-1207684032

@maheshmnj  thanks for replying, but I used 0.6.8 version of the package, but isn't fixed. the same error.

@maheshmnj Actually I noticed this error happen when I use GlobalKey for changing bottom nav.
bottomNavKey?.onTap!(1);

Thanks for the update @Shahmirzali-Huseynov, Can you please share a minimal and complete sample code? which I can directly run with minimal or no code changes. You may use the example app to share the reproducible code

I will, but unfortunately, I don't have time now, but I will try this week, and also I don't understand how the error is gone. but whatever I will do the minimal and complete sample code.

sure no worries take your time. And thank you so much for helping out to improve this package.

@maheshmnj  sorry for the delay. this is the minimal and complete sample code.
flutter_searchfield_issue.zip

Thanks will take a look at it

@Shahmirzali-Huseynov Can you please explain what are the steps to reproduce the issue? I am unable to reproduce the error with your code sample. (I verified on macOS desktop app)

Can you also test with new release v0.7.0?

I tested but the problem is continuing. I share with you the screen record.
Screen Recording 2022-08-30 at 17.02.36.zip

@Shahmirzali-Huseynov  sorry for the delay please try version 0.7.1.

I tried but was not solved, again ->

Thanks for the update @Shahmirzali-Huseynov Looks like the widget is getting disposed of because of the Global key, removing the code in didChangeDependencies doesn't reproduce the issue, Theres definetly something wrong, I 'll need to figure that out.
final GlobalKey<State<BottomNavigationBar>> bottomNavBarKey;

  @override
  void didChangeDependencies() {
    if (widget.bottomNavBarKey.currentWidget != null) {
      bottomNavKey =
          widget.bottomNavBarKey.currentWidget as BottomNavigationBar;
    }
    super.didChangeDependencies();
  }

code sample
import 'package:flutter/material.dart';
import 'package:searchfield/searchfield.dart';

class PageOne extends StatefulWidget {
  const PageOne({Key? key, required this.bottomNavBarKey}) : super(key: key);

  final GlobalKey<State<BottomNavigationBar>> bottomNavBarKey;

  @override
  State<PageOne> createState() => _PageOneState();
}

class _PageOneState extends State<PageOne> {
  final List<String> _suggestions = [
    'United States',
    'Germany',
    'Washington',
    'Paris',
    'Jakarta',
    'Australia',
    'India',
    'Czech Republic',
    'Lorem Ipsum',
  ];

  BottomNavigationBar? bottomNavKey;

  @override
  void didChangeDependencies() {
    if (widget.bottomNavBarKey.currentWidget != null) {
      bottomNavKey =
          widget.bottomNavBarKey.currentWidget as BottomNavigationBar;
    }
    super.didChangeDependencies();
  }

  final _searchController = TextEditingController();
  final _formKey = GlobalKey<FormState>();
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: ListView(
        children: <Widget>[
          const SizedBox(
            height: 100,
          ),
          Padding(
            padding: const EdgeInsets.all(8.0),
            child: SearchField(
              suggestionState: Suggestion.expand,
              suggestionAction: SuggestionAction.unfocus,
              suggestions:
                  _suggestions.map((e) => SearchFieldListItem(e)).toList(),
              textInputAction: TextInputAction.done,
              controller: _searchController,
              hint: 'SearchField Example 1',
              hasOverlay: false,
              autoCorrect: false,
              maxSuggestionsInViewPort: 3,
              itemHeight: 45,
              onSuggestionTap: (x) async {
                bottomNavKey?.onTap!(1);
              },
            ),
          ),
        ],
      ),
    );
  }
}

maybe the problem is in the function that runs or responds after the widget dispose.

@shahmirzali49 Could you please try the latest version of the plugin?
Thanks

Unfortunately, my project got old and I tried to run but there was an error I couldn't fix.

No worries, I am going to close this issue for now. In case you still encounter the issue please free to file a new issue and I would be happy to review

@maheshmnj sorry for the delay. this is the minimal and complete sample code.
flutter_searchfield_issue.zip

actually you can test the issue

@maheshmnj sorry for the delay. this is the minimal and complete sample code.
flutter_searchfield_issue.zip

actually, if you want, you can test the issue

@shahmirzali49 is the bug still reproducible on the latest version of the package 0.9.7?

No worries, thanks for the sample code I will take a look.

@shahmirzali49 The code is not downloadable can you please reupload?

sorry for the delay
flutter_searchfield_issue.zip

minimal reproducible code

code sample
import 'package:flutter/material.dart';
import 'package:searchfield/searchfield.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'Material App',
      home: BottomNavBarHome(),
    );
  }
}

class BottomNavBarHome extends StatefulWidget {
  const BottomNavBarHome({Key? key}) : super(key: key);

  @override
  State<BottomNavBarHome> createState() => _BottomNavBarHomeState();
}

class _BottomNavBarHomeState extends State<BottomNavBarHome> {
  late PageController _pageController;
  late final GlobalKey<State<BottomNavigationBar>> _bottomNavBarKey;
  DateTime? currentBackPressTime;
  @override
  void initState() {
    _pageController = PageController();
    _bottomNavBarKey = GlobalKey<State<BottomNavigationBar>>();
    super.initState();
  }

  int selectindex = 0;
  void _onItemTapped(int selectedIndex) {
    setState(() {
      selectindex = selectedIndex;
      _pageController.jumpToPage(selectindex);
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Scaffold(
        extendBody: true,
        body: PageView(
          controller: _pageController,
          children: [
            PageOne(
              bottomNavBarKey: _bottomNavBarKey,
            ),
            PageSecond(),
            PageThird(),
          ],
          // onPageChanged: _onPageChanged,
        ),
        bottomNavigationBar: BottomNavigationBar(
          currentIndex: selectindex,
          type: BottomNavigationBarType.fixed,
          key: _bottomNavBarKey,
          onTap: _onItemTapped,
          items: const [
            BottomNavigationBarItem(
              icon: Icon(Icons.home),
              label: 'Page 1',
              backgroundColor: Colors.blue,
            ),
            BottomNavigationBarItem(
              icon: Icon(Icons.person),
              label: 'Page 2',
              backgroundColor: Colors.blue,
            ),
            BottomNavigationBarItem(
              icon: Icon(Icons.book),
              label: 'Page 3',
              backgroundColor: Colors.blue,
            ),
          ],
        ),
      ),
    );
  }
}

class PageOne extends StatefulWidget {
  const PageOne({Key? key, required this.bottomNavBarKey}) : super(key: key);

  final GlobalKey<State<BottomNavigationBar>> bottomNavBarKey;

  @override
  State<PageOne> createState() => _PageOneState();
}

class _PageOneState extends State<PageOne> {
  final List<String> _suggestions = [
    'United States',
    'Germany',
    'Washington',
    'Paris',
    'Jakarta',
    'Australia',
    'India',
    'Czech Republic',
    'Lorem Ipsum',
  ];

  BottomNavigationBar? bottomNavKey;

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Padding(
        padding: const EdgeInsets.all(8.0),
        child: SearchField(
          suggestionState: Suggestion.expand,
          suggestionAction: SuggestionAction.unfocus,
          suggestions: _suggestions.map((e) => SearchFieldListItem(e)).toList(),
          textInputAction: TextInputAction.done,
          hint: 'SearchField Example 1',
          autoCorrect: false,
          maxSuggestionsInViewPort: 3,
          itemHeight: 45,
          onSuggestionTap: (x) async {
            if (widget.bottomNavBarKey.currentWidget != null) {
              bottomNavKey =
                  widget.bottomNavBarKey.currentWidget as BottomNavigationBar;
            }
            bottomNavKey?.onTap!(1);
          },
        ),
      ),
    );
  }
}

class PageSecond extends StatelessWidget {
  const PageSecond({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Center(child: Text('Page Second')),
    );
  }
}

class PageThird extends StatelessWidget {
  const PageThird({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Center(
          child: Text(
        'Page Third',
      )),
    );
  }
}

@shahmirzali49 I have filed the issue in flutter/flutter lets wait until it's triaged.

Bumping down the priority unless there is anything actionable on our side.

sorry I didn't understand).   Do I need to do something and how can I ?

@shahmirzali49 No you are fine.

Bumping down the priority unless there is anything actionable on our side.

This issue cannot progress unless, theres is an update on the issue that we have filed in flutter/flutter

Thank you for filing this issue with the Flutter team.  I know I said I had this issue resolved and I thought it was, but it returned and I can't replicate it in sample code.  Glad you are on it and aware.

Apologies in advance if my comment is redundant. Based on this StackOverflow answer,, I found the following modification to eliminate the error:
// searchfield.dart, lines 415-423
void removeOverlay() {
  if (_overlayEntry != null && _overlayEntry!.mounted) {
    isSuggestionsShown = false;
    if (_overlayEntry != null) {
      _overlayEntry?.remove();
    }
  }
  _overlayEntry = null; // <- Added line
}

I wish I knew why this worked. I'm very new to Flutter and I don't know what on earth I'm doing.

Flutter 3.24.3 • channel [user-branch] • unknown source
Framework • revision 2663184aa7 (2 months ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3


As a user, when I add a course and click on a section, I should see that section darkened to see that I made a choice

Risk: Low
Priority: Low
Points: 5
Hours: 5 hours
Acceptance criteria: Given that the user is on the homepage, when I click on "Add a course" button, I will see a list of sections to choose from. After I make that selection, that section should be darkened to see that I made a choice.

Should we maybe also see the names of the sections to which a user is subscribed in low-opacity font right below the course name? So on my homepage for example, I would see "LEC: N" "TUT: NX" "LAB: NX-J" in smaller font under say "COEN342".

This user story can be closed.  Now when the user searches for a course, the sections are separated into lectures, tutorials and/or labs. When the user clicks on a section, the section is darkened to indicate the user's choice. This issue was committed to the designWebsite branch for which a PR was created. The PR was reviewed and tested. Since it successfully passed, this can now be closed.

hours: 6


header "SQLite-Swift.h" not found, among other errors

I've been using this library in my project for over a year, but I ran pod update this morning and now I have this error and 89 others. I assume it's all coming down to this. I found this answer, which didn't help at all. Tried all these steps which also didn't work.
@stephencelis

Please include specifics on "the 89 others" errors. Also which Xcode version and cocoapod version are you running?


Baseline Prediction for TreeExplainer and XGBoost is not being computed correctly.

I think we might have broken something with XGBoost and TreeExplainer. It seems like the baseline values are not being computed correctly (it's always sitting at zero). Currently there is already a TODO about this in the code.
# TODO: for the current implementation this is correct for other trees this may vary
self.baseline_value = sum(
    [treeshapiq.empty_prediction for treeshapiq in self._treeshapiq_explainers]
)

I think this needs to be resolved either in the conversion from XGBoost models into TreeModels or in the Explainer. If it can be resolved in the conversion this would definetly be the preferred fix.
Code to reproduce this:
from xgboost import XGBRegressor
from sklearn.tree import DecisionTreeRegressor
from sklearn.ensemble import RandomForestRegressor
import shapiq
x_data, y_data = shapiq.datasets.load_california_housing(to_numpy=True)
x_train, x_test, y_train, y_test = train_test_split(x_data, y_data, test_size=0.2, random_state=42)
models = [
    XGBRegressor(random_state=42),
    DecisionTreeRegressor(max_depth=8, random_state=42),
    RandomForestRegressor(n_estimators=10, max_depth=8, random_state=42)
]
for model in models:
    print(f"{model.__class__.__name__}:")
    model.fit(x_train, y_train)
    explainer = shapiq.TreeExplainer(model=model, max_order=1, index="SV")
    sv = explainer.explain(x=x_test[0])
    baseline_value = round(sv.baseline_value, 3)
    sv = sv.get_n_order(min_order=1, order=1)
    sum_sv = round(sum(sv.values), 3)
    sum_sv_baseline = round(sum_sv + baseline_value, 3)
    y_pred = round(float(model.predict(x_test[0].reshape(1, -1))[0]), 3)
    print(f"Predicted Value: {y_pred}")
    print(f"Sum of SV + Baseline: {sum_sv_baseline}")
    print(f"Sum of SV: {sum_sv}")
    print(f"Baseline Value: {baseline_value}\n")

Produces:
XGBRegressor:
Predicted Value: 0.594
Sum of SV + Baseline: -1.477
Sum of SV: -1.477
Baseline Value: -0.0

DecisionTreeRegressor:
Predicted Value: 0.688
Sum of SV + Baseline: 0.689
Sum of SV: -1.383
Baseline Value: 2.072

RandomForestRegressor:
Predicted Value: 0.681
Sum of SV + Baseline: 0.681
Sum of SV: -1.391
Baseline Value: 2.072

For the decision tree and the random forest the predicted value and the sum of the SVs and the baseline are equal. This is to be expected. For the XGBoost model this is not the case.

SIs don't sum to the model's prediction? See
import shapiq
# load data
X, y = shapiq.load_california_housing(to_numpy=True)
# train a model
from sklearn.ensemble import RandomForestRegressor
model = RandomForestRegressor()
model.fit(X, y)
# set up an explainer with k-SII interaction values up to order 4
explainer = shapiq.TabularExplainer(
    model=model,
    data=X,
    index="k-SII",
    max_order=2
)
# explain the model's prediction for the first sample
interaction_values = explainer.explain(X[0], budget=256)
# analyse interaction values
interaction_values.plot_force()

# vs
model.predict(X[[0]])


omg it's andrew yaurrr 💅

even more silliness!

this is a cool demonstration that you can collab with people on their own website :D


Calling TarHeader.GetAsciiBytes and passing null (default) for nameEncoder does not seem to Encode ASCII as Expected.

https://github.com/icsharpcode/SharpZipLib/blob/fec479c2e1a2c7cd58ba8319450901fe40eb070f/src/ICSharpCode.SharpZipLib/Tar/TarHeader.cs#L1088
Steps to reproduce

see https://dotnetfiddle.net/lATEXU

public static void Main()
{
	var s1_UTF_16 = "ABC网络D";
	var b1_UTF_16 = Encoding.Unicode.GetBytes(s1_UTF_16);
	var buffer_UTF_16_default = new byte[b1_UTF_16.Length];
	var buffer_UTF_16_ASCII = new byte[b1_UTF_16.Length];
	var buffer_UTF_16_UTF8 = new byte[b1_UTF_16.Length];
	var buffer_UTF_16 = new byte[b1_UTF_16.Length];

	GetAsciiBytes(s1_UTF_16, 0, buffer_UTF_16_default, 0, buffer_UTF_16_default.Length, null);
	GetAsciiBytes(s1_UTF_16, 0, buffer_UTF_16_ASCII, 0, buffer_UTF_16_ASCII.Length, Encoding.ASCII);
	GetAsciiBytes(s1_UTF_16, 0, buffer_UTF_16_UTF8, 0, buffer_UTF_16_UTF8.Length, Encoding.UTF8);
	GetAsciiBytes(s1_UTF_16, 0, buffer_UTF_16, 0, buffer_UTF_16.Length, Encoding.Unicode);

	var defaultBufferedString = Encoding.ASCII.GetString(buffer_UTF_16_default);
	var asciiBufferedString = Encoding.ASCII.GetString(buffer_UTF_16_ASCII);
	var utf8BufferedString = Encoding.UTF8.GetString(buffer_UTF_16_UTF8);
	var utf16BufferedString = Encoding.Unicode.GetString(buffer_UTF_16);

	WriteToConsole(nameof(defaultBufferedString), defaultBufferedString);
	WriteToConsole(nameof(asciiBufferedString), asciiBufferedString);
	WriteToConsole(nameof(utf8BufferedString), utf8BufferedString);
	WriteToConsole(nameof(utf16BufferedString), utf16BufferedString);

	var b_asciiConvertResult = Encoding.Convert(Encoding.Unicode, Encoding.ASCII, b1_UTF_16);
	var s_asciiConvertResult = Encoding.ASCII.GetString(b_asciiConvertResult);

	WriteToConsole(nameof(s_asciiConvertResult), s_asciiConvertResult);

	void WriteToConsole<T>(string nameOf, T value) => Console.WriteLine($"{nameOf} => \"{value}\"");
}

Expected behavior
Calling GetAsciiBytes and passing parameter encoder null should behave the same as passing Encoding.ASCII
Actual behavior
Calling GetAsciiBytes and passing parameter encoder null converts some non-ASCII characters into ASCII characters without encoding
Version of SharpZipLib
Obtained from (only keep the relevant lines)

Copied method from GitHub

Also, you may want to reconsider the name of this helper method

Why was this expected? If you are referring to the comment for the encoding argument, it should perhaps be updated to better reflect that supplying no encoding means "no encoding conversion / just use the lower 8 bits".
This is because  of backwards compatibility, as this was what it did previously.

Why was this expected? If you are referring to the comment for the encoding argument, it should perhaps be updated to better reflect that supplying no encoding means "no encoding conversion / just use the lower 8 bits".
This is because  of backwards compatibility, as this was what it did previously.

right, the merit to the expectation is the references to 'ASCII only' and 'non-ASCII' throughout the codebase (including the obsolete attribute message on several constructors of types it seems), as well as parameter description of encoder here (and perhaps the method name).
I'm not sure whether the backward compatibility to this lower 8 bit copy behavior is something that should be preserved (that's a product support concept); But, yes, I do think a task to clarify what null or default value of encoder actually does is warranted.

note that this concept of default encoding actually became a point of confusion in a recent SO question and answer (ref https://stackoverflow.com/q/65847723/1366179 )

right, the merit to the expectation is the references to 'ASCII only' and 'non-ASCII' throughout the codebase (including the obsolete attribute message on several constructors of types it seems), as well as parameter description of encoder here (and perhaps the method name).
I'm not sure whether the backward compatibility to this lower 8 bit copy behavior is something that should be preserved (that's a product support concept); But, yes, I do think a task to clarify what null or default value of encoder actually does is warranted.

note that this concept of default encoding actually became a point of confusion in a recent SO question and answer (ref https://stackoverflow.com/q/65847723/1366179 )

What "non-ASCII" and "ASCII only" is trying to convey, is that characters that are outside the "ASCII range" is not guaranteed to be preserved, and that you should make a conscious of how to handle those bytes (by specifying an Encoding).
Now, the names of the methods were both wrong before, when there were no attempts of encoding, and they are now. But since they were only used internally inside the header parser for Tar archives, I didn't figure renaming them was critical, as the PR was already kind of big.

What "non-ASCII" and "ASCII only" is trying to convey, is that characters that are outside the "ASCII range" is not guaranteed to be preserved, and that you should make a conscious of how to handle those bytes (by specifying an Encoding).
Now, the names of the methods were both wrong before, when there were no attempts of encoding, and they are now. But since they were only used internally inside the header parser for Tar archives, I didn't figure renaming them was critical, as the PR was already kind of big.


There is no straight download link to Origins Classes mod.

I can't find Origins Classes on CurseForge even if I search for it. In CurseForge is literally no such mod.

https://www.curseforge.com/minecraft/mc-mods/origins-classes

Close this please?

ok

Close this please?

thanks, and ok


Shain/solaris10 update

This PR adds the ability to use build essential cookbook on Solaris 10 with the omnibus build essential package.

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.
Non-GitHub Verified Committers
There are 1 commit author(s) whose commits are authored by a non-GitHub verified email address. Chef will have to manually verify that they are authorized to contribute.
Please sign the CLA here.

@schisamo @yzl @curiositycasualty

Hi. Your friendly Curry bot here. Just letting you know that all commit authors have become authorized to contribute. I have added the "Signed CLA" label to this issue so it can easily be found in the future.

:+1: Works with the 0.0.4 i86pc packages/checksum

lgtm

@scotthain looks good. IMO we should squash this down into a single commit.

:+1:


Inconsistent badge padding with badge-maker

Are you experiencing an issue with...
badge-maker NPM package
🐞 Description
When creating badges with custom logos, in some cases (such as on https://www.randomairborne.dev/contact/) there is very little padding after the text on the YouTube and Discord badges.

🔗 Link to the badge
No response
💡 Possible Solution
No response

I was hitting that issue, and have proposed a fix as a PR. Closing this one in favor of that PR and the previous issue.


Allow to set a custom OpenAI endpoint URL

Which would be super useful to pair with https://github.com/aaamoon/copilot-gpt4-service.

Hey @felipecrs, I just added support for changing the API URL in 0.3.6. You can set the environment variable for OPENAI_CHAT_URL and it will use that. Let me know if that works for you!

That's awesome! Thanks a lot.

BTW works like a charm!
❯ docker run -d --name copilot-gpt4-service -p 8080:8080 aaamoon/copilot-gpt4-service:latest
❯ export OPENAI_API_KEY="ghu_***"
❯ export OPENAI_CHAT_URL="http://localhost:8080/v1/chat/completions"
❯ gpt 'hi who are you'
I'm OpenAI's artificial intelligence assistant. I can help answer questions, provide information, and assist with various tasks.

It would be extra great to be able to set these in the config file as well, but don't worry, no rush.


fix: #323 fix duplicate

#323 [BUG] remove the html resource duplicate website

I have resolved it already
There are more duplicates in js and other files, you can work on that.


DO NOT MERGE test that unit-tests are hooked up

@vvbandeira @maliberty This should have failed...


Fail with scoped module

Type of Issue
[ x] Bug Report
[ ] Feature Request

Description
If you use scoped module @mypackage/my module the build look for es5 files in wrongx directory anche the build fail
How To Reproduce

Follow the reademe as usual
Rename module as @mypackage/mymodule

Expected Behaviour
The module shuold be created

I found related npm issue https://github.com/npm/npm/issues/18328
I close by myself


Possibility to control multiple entities with a single query.

Hello;
I was wondering if you plan to support queries with multiple entities. I find it very frustrating that every time I want to turn off 2 lights, I have to tell Alexa "Alexa, turn off the living room light", "Alexa, turn off the hallway light" instead of just saying "Alexa, turn off the hallway and living room lights".
It would be really nice if it was possible to do this kind of query aggregation with Home Assistant Conversation.
What do you think ?

The intent matcher could probably be extended to support these kinds of things, for example with a regex-like syntax: turn off {name} (and {name})*
The problem comes in with mixed intents: "turn off the hallway light and open the garage door". This is both a HassTurnOff and a HassTurnOn intent. Everything is currently structured around having a single intent per sentence, so this would be a major change.


Remove dotnet and aspnetcore packages

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[x] The toolchain has been rebuilt successfully (or no changes were made to it)
[x] The toolchain/worker package manifests are up-to-date
[x] Any updated packages successfully build (or no packages were changed)
[x] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[x] All package sources are available
[x] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/tools/cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[x] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[x] All source files have up-to-date hashes in the *.signatures.json files
[x] sudo make go-tidy-all and sudo make go-test-coverage pass
[x] Documentation has been updated to match any changes to the build system
[x] Ready to merge

Summary

What does the PR accomplish, why was it needed?
Remove packages aspnetcore-runtime-3.1, dotnet-sdk-3.1, 	dotnet-runtime-3.1. These will be provided from a separate repo in the future.
Change Log

Remove aspnetcore-runtime-3.1
Remove dotnet-sdk-3.1
Remove dotnet-runtime-3.1
Update cgmanifest.json and licenses.json

Does this affect the toolchain?

NO
Test Methodology

Pipeline build id: xxxx

Nice one > Kanhaiya lal - sons.

Kanhaiya lal sadhwani
User id 98973991/98973991


Added clean/dirty characters for git repositories

Hello,
I added a few lines to deal with git repositories in the gnzh theme :

a green ✓ when it's clean
a red ✗ when it's dirty

Hi folks. There's a new PR #4113 for an eval-related problem in gnzh that interacts with this PR. If #4113 gets merged, change this:
GIT_CLEAN_COLOR="%{$fg[green]%}"
GIT_DIRTY_COLOR="%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_CLEAN=" $GIT_CLEAN_COLOR✓"
ZSH_THEME_GIT_PROMPT_DIRTY=" $GIT_DIRTY_COLOR✗"

to this.
local GIT_CLEAN_COLOR="green"
local GIT_DIRTY_COLOR="red"
ZSH_THEME_GIT_PROMPT_CLEAN=" %F{$GIT_CLEAN_COLOR}✓%f"
ZSH_THEME_GIT_PROMPT_DIRTY=" %F{$GIT_DIRTY_COLOR}✗%f"

(Even if #4113 doesn't get merged, I think this theme should be resetting the color at the end of the ZSH_*_ variables anyway; I'm not sure it's guaranteed to be reset for you by the git prompt functions.)

Whatever happened to this? I really like gnzh but would like more git info.


Entity.addChild() slows dramatically when there are lots of entities

Entity.addChild() performs a tree-search starting from the root to check if a new child has already been added:
var root = this.root;
var dupe = root.findOne("getGuid", child._guid);
if (dupe) {
    throw new Error("GUID already exists in graph");
}

This is bad because, in the normal scheme of things, the new child won't exist and that tree-search will visit every single node. As the number of entities increases adding new entities becomes slower and slower.
Instead there ought to be an object at the root whose keys represent all GUIDs in the tree allowing this duplication check to be performed as a simple test for existence in that object.

Removed that check in https://github.com/playcanvas/engine/commit/0ece70b3a9b1021f417116f38698430bacd80e48 because the test that already checks if a child is already parented when addChild or insertChild are called should be enough.


zig_0_13.hook: disable progress output

Description of changes
The progress output is not printed in a readable manner in a nix build. Passing --color off disables it during builds.

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

3 packages built:
river river.man rivercarro


Congestion Control

Hi,
do you already have congestion control implemented?
In general, what would you say, how far is your implementation?

It can complete the handshake and exchange data, but data transfer is not yet reliable. So as you might imagine, congestion control is definitely not there yet. I hope to get there soon. I'd be happy to consult with your employer if they want to invest in getting this working for them!

Ahh okay. Yeah, maybe I will try to help you. Will need to see, what my time says.

As of the quicr merge, congestion control is implemented as specified in the draft-11 recovery document.


8x5 games: completed rows have a higher height

Something happened to the layout with 8x5 games (which is not the case with 6x4 games):

It looks like this has been a caching issue.


About Page

I'm submitting a ...

feature-request

Feature request

Should we make the about page separate or just under the home page?

Under home page ig?


what is meaning of    self.query_embedding = nn.Embedding(self.num_query, self.embed_dims * 2)

in detr3d_head.py,
       if not self.as_two_stage:
            self.query_embedding = nn.Embedding(self.num_query,
                                                self.embed_dims * 2)

why  self.embed_dims  multiplfies *2?  what's the meaning here?

I guess it initializes object query like DETR.


ScatterGL points get blurred when zooming in

Version
4.7.0
Steps to reproduce
Using series ScatterGL, symbolSize is changed dynamically (increase when zooming in, decrease when zooming out).
And zooming the chart some level, the points get blurry.
What is expected?
the points don't get blurry

What is actually happening?
the points get blurry.

Is there anyone having a workaround for the issue?

@plainheart When do your team plan to have a look at this issue?


MM-18994 - Migrate components/unread_channel_indicator to TypeScript

Summary
This migrates components/unread_channel_indicator and associated test files to TypeScript.
Ticket Link
Fixes https://github.com/mattermost/mattermost-server/issues/12435.
JIRA: https://mattermost.atlassian.net/browse/MM-18994.
Thanks!

Thanks @xrav3nz for the pull request!
Per the CONTRIBUTING.md file displayed when you created this pull request, we need to add you to the list of approved contributors for the Mattermost project.
Please help complete the Mattermost contribution license agreement?
This is a standard procedure for many open source projects. Your form should be processed within 24 hours and reviewers for your pull request will be able to proceed.
Please let us know if you have any questions.
We are very happy to have you join our growing community! If you're not yet a member, please consider joining our Contributors community channel to meet other contributors and discuss new opportunities with the core team.

I have just signed the CLA. Closing and reopening the PR does not seem to re-run the CLA check? Sorry about this!

/check-cla

Thanks for the reviews everyone! I just rebased this off latest master.


Sudden termination of code execution

Thank you for opening up your code.
My code suddenly terminates at a certain moment and displays "segment error (core has been dumped)", and the interruption time is also quite random. What is the problem? How should we solve it?  Thanks~

Hi, did you check your memory usage? It is likely that the program reaches the limit of the GPU memory or the main memory.

Thank you for your reply. My memory capacity is 32G, the GPU used is 3080ti, and the number of parallel environments opened is 2048. I am going to use the 3090 GPU to test.

No problem! Typically 3080 (10G) for training 2048 robots in parallel is not enough.


Multiple update in single query

Is this a bug or something to do with scoping? It seems like it's impossible to update the same row twice in a single query. Fails silently. I would expect it to either work or fail loud.
On a query like,
with
new_members := (update User filter not .active and (.username = 'user1' or .username = 'user2') set { active := true }),
new_members_check := assert(count(new_members) = 2, message := 'Attempted to activate already active user'),
user := (update User filter .username = 'user1' set { customer_key := 'esdd3jyzd26ynrns' })
select {
  user := user { id, active, customer_key },
  new_members_check := new_members_check,
  cnt := count(new_members),
  new_members := new_members { id, active, customer_key },
}

It will either trigger the assert or fail to update the customer key. It will fail one of the two updates silently if I get rid of the assert. Playing around with the query and it doesn't seem the with is the cause, it happens even if I move stuff directly into the select or use detached.

Failing quietly is known behavior, and is inherited from postgres.
It isn't really desired, though, and it should be possible to make it fail
loudly.
On Fri, Mar 1, 2024, 19:31 Alex Lazar @.***> wrote:

Is this a bug or something to do with scoping? It seems like it's
impossible to update the same row twice in a single query. Fails silently.
I would expect it to either work or fail loud.
On a query like,
with
new_members := (update User filter not .active and (.username = 'user1' or .username = 'user2') set { active := true }),
new_members_check := assert(count(new_members) = 2, message := 'Attempted to activate already active user'),
user := (update User filter .username = 'user1' set { customer_key := 'esdd3jyzd26ynrns' })
select {
user := user { id, active, customer_key },
new_members_check := new_members_check,
cnt := count(new_members),
new_members := new_members { id, active, customer_key },
}
It will either trigger the assert or fail to update the customer key. It
will fail one of the two updates silently if I get rid of the assert.
Playing around with the query and it doesn't seem the with is the cause,
it happens even if I move stuff directly into the select or use detached.
—
Reply to this email directly, view it on GitHub
https://github.com/edgedb/edgedb/issues/6971, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACTC7KHPF22WE4J2SZXFJ3YWFBYZAVCNFSM6AAAAABECYA4SKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3DINJVGY2TMMA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Fail loudly would be wonderful. I just hit this again in a much more subtle way - a bulk update that rarely but occasionally will hit the same item twice in one query. Once I realized it was this same issue I could work around it, but debugging the rare update failures was a huge pain.


[WIP] revision of text

Description of changes:

Fixes numerous errors in text across AutoGluon (documentation, website, etc)
Adds missing documentation for various AutoGluon functions

Job PR-180-6 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-180/6/index.html

Job PR-180-7 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-180/7/index.html

Job PR-180-8 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-180/8/index.html

Job PR-180-14 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-180/14/index.html

Job PR-180-15 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-180/15/index.html

Job PR-180-16 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-180/16/index.html

Job PR-180-17 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-180/17/index.html

Job PR-180-18 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-180/18/index.html

Job PR-180-19 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-180/19/index.html


Difficult to find issue tracker

I was unable to find a link to the issue tracker (i.e. this) on the website.

Fixed by commit to website repo.
https://git-wip-us.apache.org/repos/asf?p=incubator-trafficcontrol-website.git;a=commit;h=d740de7b4db25135c8def0b079be7bcb9c1f0cdb


Feature/anchors

👷 Deploy Preview for festive-bardeen-c5b3cc processing.

Name
Link

🔨 Latest commit
e9da9a8f9c25b355e4f63d57070768a77290b5c9

🔍 Latest deploy log
https://app.netlify.com/sites/festive-bardeen-c5b3cc/deploys/6252bff9406f16000891ce0a


Enhancement: Update the CodeQL GitHub Action version from v1 to v2

What this PR changes/adds
Updates the CodeQL GitHub Action version from v1 to v2
Why it does that
The CodeQL GitHub Action version v1 is deprecated.
Further notes
Linked Issue(s)
Closes #1320
Checklist

[x] added appropriate tests?
[x] performed checkstyle check locally?
[x] added/updated copyright headers?
[x] documented public classes/methods?
[x] added/updated relevant documentation?
[x] added relevant details to the changelog? (skip with label no-changelog)
[x] formatted title correctly? (take a look at the CONTRIBUTING and styleguide for details)

@tuncaytunc-zf once conflicts are resolved i'll merge


Potential link errors classes of SpatialObjects library

With commit 198b5c8f59fdb2b67b443f0455ce61b203c3fddd (Feb 10, 2019), SpatialObjectProperty member function implementations were moved to a cxx file. In order to export this functionality, I think the class should have some kind of EXPORT macro. Something like ITKSpatialObjects_EXPORT? Possibly here:
https://github.com/InsightSoftwareConsortium/ITK/blob/2e23f710b387e8465dd37d102e245b5365c5831c/Modules/Core/SpatialObjects/include/itkSpatialObjectProperty.h#L36
Can you please check this (and please fix it, if necessary)? Stephen @aylward ? Or Hans @hjmjohnson ?
The issue might also apply to MetaEvent and SpatialObjectFactoryBase.
Note: This is not a high priority issue for me personally, because I usually link statically to ITK. But it could be of importance to users who link dynamically (BUILD_SHARED_LIBS) to ITK.

You might be right.   Other ITK experts should give us insight...  @dzenanz ?

@hjmjohnson made some attempts regarding this in December. I don't know what is the status of this.


symbol search in shellscript

Issue Type: Feature Request
It would be nice if shell script (i.e. bash, /bin/sh, etc.)  symbol searching worked.
VS Code version: Code 1.65.2 (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T15:36:26.048Z)
OS version: Linux x64 5.16.12-200.fc35.x86_64
Restricted Mode: No

Maybe https://marketplace.visualstudio.com/items?itemName=mads-hartmann.bash-ide-vscode already provides that?

Hrm.  Interesting find.  At first glance, it appears to.  I will give that some more attention.  Thanks @aeschli.
FWIW, I did look for an extension for this.  Clearly I just didn't have the right search terms or even concepts.


Checkboxify new instance doc

Who is this PR for?
Developers.
This lets a dev easily copy new_instance.md for a new district and check off items.

selfie


TypeError: Cannot read properties of null (reading 'updateXOffset')

I'm getting this error on Sentry, running an App on Next.js, everything is up-to-date.
Triggered on this line:
https://github.com/muxinc/media-chrome/blob/78c303221439b097eb4c2ffffc3fefd25b5e9722/src/js/media-chrome-button.ts#L324
Sampling:
55% Chrome Mobile WebView 117.0.5938
14% Chrome Mobile 128.0.0
10% Mobile Safari 17.6
3% Chrome Mobile 129.0.0
I don't have replay sessions, but it seems this code chunk is called when the component is being unloaded.

thanks for reporting! is this the latest version of Media Chrome?


Alias in delete makes invalid query

Laravel Version: 5.1.40
PHP Version: 5.6.15
Database Driver & Version: 10.1.21-MariaDB

Description:
When trying to remove duplicates before adding a unique key in a migration, I got the error:

[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as usi_high from user_seller_info as usi_high inner join user_seller_info' at line 1 (SQL: delete user_seller_infoasusi_highfromuser_seller_infoasusi_highinner joinuser_seller_infoasusi_lowonusi_low.user_id=usi_high.user_idandusi_low.id<usi_high.id`)

Steps To Reproduce:

starta query-builder, using an alias on the table name
do a join (maybe not a required step)
delete()

Example:
        DB::table('user_seller_info AS usi_high')
            ->join(
                'user_seller_info AS usi_low',
                function ($join) {
                    $join
                        ->on('usi_low.user_id', '=', 'usi_high.user_id')
                        ->on('usi_low.id', '<', 'usi_high.id');
                }
            )
            ->delete();

Current result:
delete `user_seller_info` as `usi_high` from ...
Expected result:
delete `usi_high` from ...

@puggan You can close this issue.

It's fixed in 5.5, 28/2.
https://github.com/laravel/framework/commit/d2b6c8bc5cc443e41bcfe344973e105b728bebb5
But the 5.1 dosn't seams to be fixed,
https://github.com/laravel/framework/blob/5.1/src/Illuminate/Database/Query/Grammars/MySqlGrammar.php
But as the 5.1-LTS died this year, I guess it's not going to be solved.

yeah you are spot on. 5.1 is EOL so it won't be fixed (unless it is a security issue i bet)


Explanation

Thank you for the article.  A brief explanation of each point would be nice!

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 4d1da0e3-49e0-8437-5542-7a42682ed8ec
Version Independent ID: 5e8ba39f-757e-d4cd-7b51-c140303b7283
Content: Static Class Design
Content Source: docs/standard/design-guidelines/static-class.md
Service: dotnet
GitHub Login: @rpetrusha
Microsoft Alias: ronpet

Thanks for your feedback @michaelwatkins. Given that the content under Framework Design Guidelines is copyrighted, we can't really make edits to it, so I'm closing this issue. The content here is a subset of what's in the actual book, but the book also doesn't go into details of each point. Each point is very straightforward, but let us know if you have any questions about them.
/cc @KrzysztofCwalina


Treeview collapses on selection of a child node

Category
[ ] Enhancement
[x] Bug
[ ] Question
Version
Please specify what version of the library you are using: [3.7.2]
Expected / Desired Behavior / Question
When a child node gets selected the expand/collapse state of the tree nodes should not change.
Observed Behavior
The tree collapses to the root node of the selected child node.
Steps to Reproduce
After noticing the problem in my solution I created a new SPFx 1.14.0 webpart via yeoman, added @pnp/spfx-controls-react and the sample code from https://pnp.github.io/sp-dev-fx-controls-react/controls/TreeView/. Clicking on a child node will collapse to the topmost parent node.

Thank you @IRRDC for reporting this one!
The fix has been done and will be included in the next release.


fix(explore): dnd error when dragging metric if multi: false

SUMMARY
When dragging a metric a bit in a control that accepts only a single metric, an error occurred. After this fix not only there's no error, but also "Run" button doesn't highlight (as there's no actual change).
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: see linked issue
After:
https://user-images.githubusercontent.com/15073128/128349174-53832874-e7d7-42ea-8080-13020bd995fd.mov
TESTING INSTRUCTIONS

Enable dnd
Open a chart that accepts only 1 metric (e.g. Big Number)
Add a metric
Drag the metric label a bit
There should be no "Run" button highlighted and after user clicks run, there's no error

ADDITIONAL INFORMATION

[x] Has associated issue: fixes #16083
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

CC @junlincc @jinghua-qa

/testenv up FEATURE_ENABLE_DRAG_AND_DROP=true

/testenv up FEATURE_ENABLE_DRAG_AND_DROP=true

I was able to reproduce the error:
https://user-images.githubusercontent.com/70410625/128507096-000b972d-5596-43e3-9715-0da1c0792ed3.mov

@michael-s-molina Thanks for catching that! My original fix worked with dnd enabled, I added a fix for non-dnd now
https://user-images.githubusercontent.com/15073128/128680922-a1b131cd-fb3e-4c53-ba90-d295a2da60cb.mov

🏷 2021.31


[Bug]: Habana_main does not support DBRX and Arctic due to cuda hardcode

Your current environment
The output of `python collect_env.py`

🐛 Describe the bug
error log
AssertionError: Torch not compiled with CUDA enabled
 - databricks/dbrx-instruct faied!
Error info: Torch not compiled with CUDA enabled
Traceback (most recent call last):
  File "/workspace/script/test_llm_generate_modellist.py", line 51, in <module>
    output = test_llm_model(model=model)
  File "/workspace/script/test_llm_generate_modellist.py", line 16, in test_llm_model
    llm = LLM(model=model,
  File "/workspace/vllm/vllm/entrypoints/llm.py", line 155, in __init__
    self.llm_engine = LLMEngine.from_engine_args(
  File "/workspace/vllm/vllm/engine/llm_engine.py", line 456, in from_engine_args
    engine = cls(
  File "/workspace/vllm/vllm/engine/llm_engine.py", line 252, in __init__
    self.model_executor = executor_class(
  File "/workspace/vllm/vllm/executor/distributed_gpu_executor.py", line 25, in __init__
    super().__init__(*args, **kwargs)
  File "/workspace/vllm/vllm/executor/executor_base.py", line 47, in __init__
    self._init_executor()
  File "/workspace/vllm/vllm/executor/ray_habana_executor.py", line 64, in _init_executor
    self._init_workers_ray(placement_group)
  File "/workspace/vllm/vllm/executor/ray_habana_executor.py", line 205, in _init_workers_ray
    self._run_workers("load_model",
  File "/workspace/vllm/vllm/executor/ray_habana_executor.py", line 324, in _run_workers
    self.driver_worker.execute_method(method, *driver_args,
  File "/workspace/vllm/vllm/worker/worker_base.py", line 383, in execute_method
    raise e
  File "/workspace/vllm/vllm/worker/worker_base.py", line 374, in execute_method
    return executor(*args, **kwargs)
  File "/workspace/vllm/vllm/worker/habana_worker.py", line 121, in load_model
    self.model_runner.load_model()
  File "/workspace/vllm/vllm/worker/habana_model_runner.py", line 460, in load_model
    self.model = get_model(
  File "/workspace/vllm/vllm/model_executor/model_loader/__init__.py", line 21, in get_model
    return loader.load_model(model_config=model_config,
  File "/workspace/vllm/vllm/model_executor/model_loader/loader.py", line 281, in load_model
    model = _initialize_model(model_config, self.load_config,
  File "/workspace/vllm/vllm/model_executor/model_loader/loader.py", line 112, in _initialize_model
    return model_class(config=model_config.hf_config,
  File "/workspace/vllm/vllm/model_executor/models/dbrx.py", line 367, in __init__
    self.transformer = DbrxModel(config, cache_config, quant_config)
  File "/workspace/vllm/vllm/model_executor/models/dbrx.py", line 324, in __init__
    self.blocks = nn.ModuleList([
  File "/workspace/vllm/vllm/model_executor/models/dbrx.py", line 325, in <listcomp>
    DbrxBlock(config, cache_config, quant_config)
  File "/workspace/vllm/vllm/model_executor/models/dbrx.py", line 291, in __init__
    self.ffn = DbrxExperts(config, quant_config)
  File "/workspace/vllm/vllm/model_executor/models/dbrx.py", line 85, in __init__
    torch.empty(
  File "/usr/local/lib/python3.10/dist-packages/torch/utils/_device.py", line 78, in __torch_function__
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/cuda/__init__.py", line 284, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

INFO 08-29 00:49:03 selector.py:85] Using HabanaAttention backend.
 - Snowflake/snowflake-arctic-instruct faied!
Error info: Torch not compiled with CUDA enabled
Traceback (most recent call last):
  File "/workspace/script/test_llm_generate_modellist.py", line 51, in <module>
    output = test_llm_model(model=model)
  File "/workspace/script/test_llm_generate_modellist.py", line 16, in test_llm_model
    llm = LLM(model=model,
  File "/workspace/vllm/vllm/entrypoints/llm.py", line 155, in __init__
    self.llm_engine = LLMEngine.from_engine_args(
  File "/workspace/vllm/vllm/engine/llm_engine.py", line 456, in from_engine_args
    engine = cls(
  File "/workspace/vllm/vllm/engine/llm_engine.py", line 252, in __init__
    self.model_executor = executor_class(
  File "/workspace/vllm/vllm/executor/executor_base.py", line 47, in __init__
    self._init_executor()
  File "/workspace/vllm/vllm/executor/habana_executor.py", line 27, in _init_executor
    self._init_worker()
  File "/workspace/vllm/vllm/executor/habana_executor.py", line 71, in _init_worker
    self.driver_worker.load_model()
  File "/workspace/vllm/vllm/worker/habana_worker.py", line 121, in load_model
    self.model_runner.load_model()
  File "/workspace/vllm/vllm/worker/habana_model_runner.py", line 460, in load_model
    self.model = get_model(
  File "/workspace/vllm/vllm/model_executor/model_loader/__init__.py", line 21, in get_model
    return loader.load_model(model_config=model_config,
  File "/workspace/vllm/vllm/model_executor/model_loader/loader.py", line 281, in load_model
    model = _initialize_model(model_config, self.load_config,
  File "/workspace/vllm/vllm/model_executor/model_loader/loader.py", line 112, in _initialize_model
    return model_class(config=model_config.hf_config,
  File "/workspace/vllm/vllm/model_executor/models/arctic.py", line 410, in __init__
    self.model = ArcticModel(config, cache_config, quant_config)
  File "/workspace/vllm/vllm/model_executor/models/arctic.py", line 375, in __init__
    self.layers = nn.ModuleList([
  File "/workspace/vllm/vllm/model_executor/models/arctic.py", line 376, in <listcomp>
    ArcticDecoderLayer(config,
  File "/workspace/vllm/vllm/model_executor/models/arctic.py", line 307, in __init__
    self.block_sparse_moe = ArcticMoE(
  File "/workspace/vllm/vllm/model_executor/models/arctic.py", line 131, in __init__
    torch.empty(self.num_experts,
  File "/usr/local/lib/python3.10/dist-packages/torch/utils/_device.py", line 78, in __torch_function__
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/cuda/__init__.py", line 284, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

to fix your trouble check this fix, i see it in another issue,
https://github.com/aravinda-gamage/x86_64-win64-ranlib/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

How did you Hack my git hub account?
and what  on earth is that link?

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."


sysdump: respect worker count and collect Cilium profiling data as first task

The first two commits modify the sysdump collection logic to actually respect the configured worker count, while the third moves again the collection of Cilium profiling data as first task to prevent it from being impacted by the other sysdump collection tasks. Refer to the individual commit messages for additional details.

/scale-100

Collection of sysdump on a 100 nodes cluster took ~9 minutes, which is not significantly different from previous runs of the same workflow (~7 minutes), and can be explained by the lower default number of workers.

Rebased onto main to pick CI fixes.

/test


Allow users to set the size of pxc equals to 1 through percona-xtradb-cluster-operator/deploy/cr.yaml

Proposal
When I set pxc to equal 1 through percona-xtradb-cluster-operator/deploy/cr.yaml, it doesn't work
Use-Case
No response
Is this a feature you are interested in implementing yourself?
No
Anything else?
No response

Deploying the cluster with only one node is working for me.
Because running the cluster with only one node is seen as an unsafe configuration you have to set allowUnsafeConfigurations to true.
From the docs:

allowUnsafeConfigurations Prevents users from configuring a cluster with unsafe parameters such as starting the cluster with the number of Percona XtraDB Cluster instances which is less than 3, more than 5, or is an even number, with less than 2 ProxySQL or HAProxy Pods, or without TLS/SSL certificates (if false, unsafe parameters will be automatically changed to safe defaults)


Output from route

So my issue is im trying to just get some specific results from the api like start point, end point, arrival and departure time. Any Idea how it works, i got arrival and departure outputs, but i get them for the whole day from the current time and not for one specific time

Sorry, I'm not quite sure what you're trying to achieve. Can you maybe share your code and an example of what you're receiving and how it's different to what you expect?
Also, the documentation includes some examples, maybe this already helps clear up things: http://python-mvg-departures.readthedocs.io/en/latest/


added unit tests for the ecs manager

Changelog:

added unit tests for the ECS manager

Codecov Report

Merging #466 (6794524) into main (04ccacb) will increase coverage by 1.87%.
The diff coverage is 51.21%.

@@            Coverage Diff             @@
##             main     #466      +/-   ##
==========================================
+ Coverage   28.60%   30.48%   +1.87%
==========================================
  Files          51       54       +3
  Lines        5450     6289     +839
==========================================
+ Hits         1559     1917     +358
- Misses       3769     4205     +436
- Partials      122      167      +45

Impacted Files
Coverage Δ

internal/commands/ize.go
67.50% <0.00%> (+3.72%)
:arrow_up:

internal/config/project.go
0.00% <0.00%> (ø)

internal/manager/ecs/ecs.go
53.20% <0.00%> (ø)

internal/manager/ecs/native.go
63.73% <97.67%> (ø)

internal/manager/ecs/docker.go
0.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Add webhook/ with webhook JSON config and deploy.sh with docs

Closes #77
Closes #76
Closes #74
Closes #50
This finishes the work begun in #57 to get our deployment webhook in place.  ITS wants it to run outside of Docker, and has already installed webhook on the manager nodes.
This is the first of at least 2 parts to get this completed.  I need to land the major bits here, then test it and adjust and document things in a follow-up.
The main points here are as follows:

On staging (and later production), we'll run a webhook server.  It will listen on :8000 and ITS will route anything that comes to /hooks/* to this server.
The webhook will listen for deploy messages from GitHub, which will include 2 things.  First a new tag to use with Docker.  When we update to a new version on main, this will send that image tag so it can be deployed; second, we'll send a digest created with a secret.  Our deployment servers will only respond to webhooks that can sign the body (i.e., no one else can hit this endpoint)
Assuming the webhook can be verified by the server (calculating the secret + body to see if it matches the digest), the deploy.sh script will be run.  The new tag will be sent along as an ENV var.  Docker will try to update the starchart image to the new tag.

As we discussed in #291, I'm not doing any database migration/syncing in here.  Any changes to the database schema would require a manual shut-down and update of the DB first.  It would be good to get to an automated version of this some day, but not in this PR.

Just a small question out of curiosity, but looks good

Correct, these files won't be used as is. They are a template for manually setting this up on staging.

I've updated this again.  I've added the systemd startup unit file, so the webhook runs as a service (it's already installed on staging).  I think this is ready to test!

Thanks for the review!  I'm going to try this now...

Crap, I got my order wrong, I have to do another PR to make this happen.


Why should I have to place Authorization header on /authorize...? or get 401... 🤯

Hi all!
I don't understand something and need your help...
First step of my oAuth processus should be to "authorize" third-party app with the authorize method. Isn't it?
How to proceed to authorize without prior access_token?
POST /authorize HTTP/1.1
Content-Type: application/x-www-form-urlencoded; charset=utf-8

client_id=YYYYY&redirect_uri=https%3A%2F%2Flocalhost%3A5001&response_type=code&state=1c5b2ca7ba850ec61add15b1086ecaab&client_secret=XXXX

return 401...
If I place a Authorization: Bearer token_obtained_via_token_method it works...
Thanks by advance!

I found this:
AuthorizeHandler use AuthenticateHandler which only seems to accept "Bearer" headers...
Shouldn't it accept at least "Basic Auth" in the authorize case ?

Using custom authenticateHandler resolve my problem...
const options = {
        authenticateHandler: {
            handle: (data) => {
                // Whatever you need to do to authorize / retrieve your user from post data here
                return {id: userId}; // return client
            }
        }
    }

Yup, this was also very confusing for me. Does not make sense to check for a token while going through the Authorization flows.

I spent few days to dig it ;(


docs: add perception design

Description

This PR contains following three documents.

Perception component design
Perception component Reference Implementation Design
Perception Interface Design

These documents are written for sharing the design philosophy with engineers who want to contribute to Perception Component in autoware.

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The Reviewers must check the checkboxes below before approval.

[x] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[x] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@mitsudome-r @xmfcx
I had left this document in draft for a while, but it has now been updated by my team, and the review process is complete.
I believe it's fine to be merged, but do you have any concerns?


Mac Setup - platform package not found

Hi,
I am trying to setup rez on my mac laptop. I have installed it as per the documentation on Github. I have also built rez as a rez package using rez-bind rez. When I try to create an environment I get this:
rez-env rez

rez: PackageFamilyNotFoundError: package family not found: platform (searched: /Users/yanilathouris/packages; /software/packages)

Have I missed some platform specific setup? I don't have a platform package in any of my search paths. Is this something I am suppose to create or should rez do that for me? Sorry if this is really basic.
Cheers

Hey Yani,
Yeah there are some packages that Rez expects to be there but are not
created by default. They're easy to create though.
Actually now it's even easier. I'm just now working on a new branch -
'repository' - that provides a bunch of installer packages - so far I have
gcc, python, tbb, ilmbase, openexr, boost and hdf5, as well as platform,
arch and os. If you get that branch, all you need to do is cd into the
'repository' directory and into the package you want to install, then
running 'rez-build' will locally install that package for you. For 3rd
party stuff (such as boost etc) it expects the source archive to be on
disk. See the repository/README file for more instructions.
The platform, arch and os packages that are already there may not be
exactly what you want (for instance, only an 'Ubuntu-12.04' OS package is
available). What you should do is just copy the whole repository directory
to another location, make your own repository out of it, make whatever
changes you like (or add new packages, such as a different OS), and
rez-build from there. Soon you'll be able to rez-release too, I just need
to merge a recent PR first, but in the meantime local package installs
should see you through.
I'd like to have all the software listed in the current 2015 VFX Reference
Platform available in time for Siggraph this year, but we'll see (trying to
get everything building correctly for the more involved packages -
gcc/boost/qt and so on - is a fair bit of work).
All that aside - Rez packages are just a case of having the right
directories and files in the right place, and a package.py with a
'commands' section that does the right thing. You can always throw one
together manually and it generally isn't very difficult to get it working.
Once you have some installed and working you'll see what the structure
should be.
Hth, hit me up if you have any more issues.
Thx
A
On Sun, Aug 2, 2015 at 3:01 AM, ylathouris<EMAIL_ADDRESS>wrote:

Hi,
I am trying to setup rez on my mac laptop. I have installed it as per the
documentation on Github. I have also built rez as a rez package using rez-bind
rez. When I try to create an environment I get this:
rez-env rez
rez: PackageFamilyNotFoundError: package family not found: platform (searched: /Users/yanilathouris/packages; /software/packages)
Have I missed some platform specific setup? I don't have a platform
package in any of my search paths. Is this something I am suppose to create
or should rez do that for me? Sorry if this is really basic.
Cheers
—
Reply to this email directly or view it on GitHub
https://github.com/nerdvegas/rez/issues/230.

Yani, the 'repository' directory has now been merged into the main resources2 branch. If the platform package that you need isn't there (osx) please just add it and send a PR.
I'll close this issue for now..

No worries,
Thanks Allan!
On Wed, Aug 26, 2015 at 9:57 PM, allan johns<EMAIL_ADDRESS>wrote:

Yani, the 'repository' directory has now been merged into the main
resources2 branch. If the platform package that you need isn't there (osx)
please just add it and send a PR.
I'll close this issue for now..
—
Reply to this email directly or view it on GitHub
https://github.com/nerdvegas/rez/issues/230#issuecomment-135168407.


Bug: failed to read directory

What happened?
A bug happened!
Apple Silicon MacBook Pro
Steps to reproduce
This just happened while trying to install the program.
What OS are you seeing the problem on?
MacOS
Relevant log output
Failed to create file /Users/danielemateria/Library/Application Support/github.com.thewh1teagle.vibe/ggml-medium.bin

Caused by:
    No such file or directory (os error 2)

Location:
    /Users/runner/work/vibe/vibe/core/src/downloader.rs:49:60
Couldn't get info: failed to read directory at path: /Users/danielemateria/Library/Application Support/github.com.thewh1teagle.vibe with error: No such file or directory (os error 2)

@danielemateria
Thank you so much for report!
I fixed the issue and re-uploaded the installer files.
can you try again?

Seems to be working fine now, thanks for the fix and also good job with this software! It's great :D


[C-585] Support more filters in custom reports

Currently, in custom reports while adding/editing a widget, only some selected Measures have the possibility of filtering.

Currently measures that support filtering: [Members] count and [Activities] count

We should allow to add specific filters to all other available measures
From SyncLinear.com | C-585

will be added as part of new custom reports


Slider renders above a modal dialog

Describe the bug
I am rendering a slider in my sidebar. My content can load a modal window component, which has a z-index: 9000; but the slider still renders above it. Adding a z-index to the div.vue-slider doesn't seem to change it.
Additional context

Environment

OS & Version: Mac OS 10.14.6
Vue version: 2.5.13
Component Version: 3.0.44

You can check if there is a hierarchy problem, it has nothing to do with the component.

Yes, you're correct. I did not try a 0 value, which works. Apologies.


Physical book

Will people have to pay for the physical book even if they support the repository?
What about the digital version?

Yes they will have to pay for the physical copy the will include myself as that is only fair. The cost will cover the cost of printing, shipping, plus a 10% mark up that will go towards other projects decided by this repository. When it comes time for the next run a gofundme will be created and linked to in this repository.
Nobody will need to pay for the digital copy as that will be freely available here.


Add optional auto merge job

Using https://github.com/marketplace/actions/merge-me
Fixes #39

I'm relatively certain this isn't going to work. ☹ The problem here is the fact that Scala Steward opens its PRs from a fork, meaning the GITHUB_TOKEN you have access to in the PR only has read permissions on the host repository. This is a pretty fundamental restriction, since without it, any repo using GH Actions could be vandalized at will.

Hmm maybe it would work if you give scala-steward write permissions to the repo but I'm not sure if that's a good idea 🤔

Hmm maybe it would work if you give scala-steward write permissions to the repo

It doesn't. :-( That would actually be very intuitive, but I've done a lot of experimenting with the Actions permissions model in the past (attempting to enable a use-case almost exactly like this one), and it just doesn't work here. The problem, more specifically, is that the GITHUB_TOKEN granted to jobs is an application token, not a user token, and the application is bound to the repository and has repository-level permissions. There is no mechanism in place for conditionally granting that token extra permissions depending on the user who opened the PR, though I really would like for there to be.
Basically, what I want github to do here is grant the write token (as well as full secrets access) to any PRs from people with write access or above, regardless of the PR origin. Such users would be able to push to the upstream anyway, so it wouldn't affect security, but it would make a lot of automation and use-cases possible (especially on private repositories) which are now today impossible. This has been suggested to them as an official feature request, but no word on implementation.

It looks like there is a workaround: https://github.com/ridedott/merge-me-action#github-actions
          # Depending on branch protection rules, a  manually populated
          # `GITHUB_TOKEN_WORKAROUND` environment variable with permissions to
          # push to a protected branch must be used. This variable can have an
          # arbitrary name, as an example, this repository uses
          # `GITHUB_TOKEN_DOTTBOTT`.
          #
          # When using a custom token, it is recommended to leave the following
          # comment for other developers to be aware of the reasoning behind it:
          #
          # This must be used as GitHub Actions token does not support
          # pushing to protected branches.
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

The comment refers to https://github.com/ridedott/merge-me-action/blob/master/.github/workflows/continuous-integration.yaml#L178

That token would need to be unencrypted though, opening up branch pushing to the entire world. The only way to hide the token from global eyes would be to tuck it into secrets, which in turn means it isn't available to PRs from forks.

Hmm, this is a bit of a rabbit hole. It looks like there were already some improvements:
https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/
For private repositories you can share secrets to forks whereas for public repositories there are different events like pull_request_target and workflow_run but I'm not sure how that would look like yet.

E.g. this action has listed pull_request_target as supported event: https://github.com/pascalgn/automerge-action
But it's based on labels. I wonder if the merge-me action would work with pull_request_target.

Ooooooh! This is very nice and yes, I think it could be used to solve this. I'll give this some thought…

I wanted to mention that scala steward also has a --do-not-fork option. If set, the github token would have write access. That would be useful for private repos.

I need to update the PR to v2 of the action - it also shows how to configure it to:

Trigger not on PR but on successful completion of the validation step (I think that runs in a different context)
Add a custom token to work around the problem

@djspiewak you can see it in action in this repo: https://github.com/moia-oss/scynamo/pulls?q=is%3Apr+sort%3Aupdated-desc+is%3Amerged

Might try this again in sbt-typelevel. But it should also involve adding scala-steward as a GitHub action


feat: hubs should track fnames

What is the feature you would like to implement?
Hubs should keep track of the current fname for a user as well as expose it in all relevant APIs
Why is this feature important?
Keeping tracking of valid fnames is something every app cares about and doing it at the hub level ensures consistency.
Will the protocol spec need to be updated??
No
How should this feature be built? (optional)
TBD
Additional context
Need to think through the following cases:

Users who transfer an fid to a new address should be able to login with that address/seed
Users who transfer an fname out of their fid should should be handled correctly
Users who transfer an fname into their fid should be handled correctly
Users with multiple fnames
Users whose names expire
Users who renew their names before they expire
Users who bid on and win an expired name
Users who perform a recovery on their name

Some replies/notes after reading this:

Are we sure we want to treat fnames differently than ENS names? We had previously said we want to make it easy for a user to opt out of the Farcaster Name ecosystem and use ENS or another name system instead. Having hubs handle fnames natively may not be consistent with that.
The hubs watch Register and Transfer events on the ID Registry, so as soon as those events hit and are confirmed, the new address should be able to authenticate as the custody address for an fid via hubs.
Is there a way to make use of verifications when assigning an fname to an fid? To that end, how are we thinking about invalidating NFT verifications when the NFT in question is transferred?
I think declaring an fname for use by an fid should be a message and maybe part of a profile metadata message.

Discussed offline about tracking other assets. The general takeaway is:

Hubs should allow for metadata (#120) that lets users make declarations about on-chain ownerships like nfts, fnames, ens etc and set preferences about which ones should be displayed.

By default, Hubs shouldn't do the heavy lifting to stay in sync about whether the user still owns a particular asset - that would be very expensive from a networking perspective.  Applications can do this quite easily by getting the metadata from the hubs and then validating ownership against an eth node.

Hubs should do the heavy lifting for fnames -- given that most third party applications want fname support, not doing this introduces a lot of overhead for them. If another asset or namespace becomes heavily used and requested by applications (e.g. ENS) we should consider adding them as well.

@pfletcherhill it looks like your proposal doesn't store the Renew events. Does it make sense to hold onto them given that they are an important state change? Possible that we will want to look up or query them later outside the context of transfer events.

Updated spec
Problem
We want to be able to identify users by their fid or an fname. However, at the moment, a custody address can own many fnames and users don't have a way to indicate which fname they want to use.
Overview

Add UserNameAdd message type that allows a user to broadcast to the network that they can be referred to by a given fname
Keep hub in sync with the Name Registry by maintaining a mapping of fnames to custody addresses in order to validate new UserNameAdd messages and revoke UserNameAdd messages when the fname changes ownership or expires

NameRegistry events
Two types of Name Registry events should be tracked:

Transfer - change custody address associated with fname
Renew - change expiration time for fname

These events should be submitted to the UserDataStore for merging and persistence. The store should merge events that occur later than the existing event, based on block number and log index. See the mergeIdRegistryEvent method in the SignerStore class for an example.
NameRegistry events should be represented by a new NameRegistryEvent flatbuffer. We had initially intended the ContractEvent flatbuffer to represent both IdRegistry and NameRegistry events, but the behavior is different enough to warrant a new flatbuffer (e.g. the IdRegistry events are indexed by fid and the NameRegistry events will be indexed by fname). As a bonus, we should refactor the ContractEvent flatbuffer to exclusively be IdRegistry events.
A new NameRegistryEventModel class should be created to wrap the NameRegistryEvent flatbuffer and define keys for persisting the event to RocksDB. The primary key should be structured as <RootPrefix.NameRegistryEvent, fname> (see the primaryKey method in the ContractEventModel class for reference.
UserNameAdd messages
The UserDataStore will also handle merging new UserNameAdd messages which will require updating the flatbuffer Message schema. Here's a draft schema for the body:
table UserNameAddBody {
  fname: [ubyte]
}

Users should be able to remove any fname from their fid by sending a UserNameAdd message with a blank fname field.
Conflicts between UserNameAdd messages (i.e. messages with the same fid) should be resolved using LWW mechanics, like UserDataAdd messages.
A UserNameAdd message is valid if the current owner of the fname is the custody address, based on the NameRegistry events that have been merged.
Transferring fnames
When fnames are transferred, if a UserNameAdd message exists for that fname, the message should be revoked, because if that message were to be merged after the transfer it would be rejected. UserNameAdd messages should be revoked the same way SignerAdd messages are revoked when an fid is transferred between custody addresses.
Expiring fnames
When an fname expires, the relevant UserNameAdd message should be revoked as if the fname had been transferred. However, expiration of an fname does not emit a contract event, so we will have to keep track of fname expirations separately. We can do this by indexing NameRegistryEvent objects by their expiration time and running a regular job to expire the oldest events. See the way messages are indexed by signer in MessageModel for an example of how to index events. The key for the index should look like: <RootPrefix.NameRegistryEventExpiration, expiration time> and include the fname as the value.


fixfix bug that metadata_name_ids error tableid and append information_schema case.

fix bug that  #24059 .
Added some schema scanner tests.
files
schema_privileges
table_privileges
partitions
rowsets
now,  only the two tables information_schema.statistics and information_schema.table_constraints have no test.
The following tables contain test cases：
character_sets
collations
column_privileges
column_statistics
columns
engines
events
files
global_variables
key_column_usage
metadata_name_ids
parameters
partitions
profiling
referential_constraints
routines
rowsets
schema_privileges
schemata
session_variables
triggers
user_privileges
views
table_privileges
Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall


comments in Cargo.toml being purged

When running covector, it seems that comments in toml files are being pruned.

This is an issue upstream in https://github.com/tauri-apps/tauri-toml. We should probably confirm that the fixes there have been addressed in the original https://github.com/iarna/iarna-toml and switch back to that if appropriate. (tauri-toml was forked to add support for inline objects which Rust/cargo allows as an option when specifying a dependency version.)
/cc @lucasfernog, have you looked into it?

Considering if we can address this via #236.

Just checked iarna-toml and unfortunately this has not been resolved upstream yet https://github.com/iarna/iarna-toml/issues/42.
I think we shouldn't wait for upstream and instead build a NAPI module using napi-rs that delegates the work to toml-edit crate which preserves the comments. I can help setting this up if approved.

Closed by #303 and published in #300.


Bump version number to v0.3.5

We gathered quiet a few changes in the last month: https://github.com/rinja-rs/rinja/compare/v0.3.4...1e319fd0c869884b68c9287bc4bcb1309b16328e

Yes we did nice work. :D

Yes, we did! :) I'll upload the new versions.


with-prefetching example not working on Windows.

I cloned the project, npm install in 'examples\with-prefetching', npm run dev and I get:
Module build failed: ReferenceError: Unknown plugin "transform-async-to-generator"

You'll need to link the local repo as well into the example.
Inside master local repo
npm install
npm link
cd examples\with-prefetching
npm i
npm link next
and you should be good!

Thanks @FrancosLab.
I think when we do npm install, it might not installing the beta versions.
I'll check what we can do about it.
And having a hacking guide it pretty useful.

Thanks - it helped - but now I get
'This dependency was not found in node_modules:

next/prefetch
Did you forget to run npm install --save for it

I hope now everything will work fine.
See: https://github.com/zeit/next.js/tree/master/examples/with-prefetching

It's still a problem.
I tried creating VirtualBox with Ubuntu, installed Node, and then
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/with-prefetching
cd with-prefetching
Then
npm install
npm run dev
But I still got this error:
next/prefetch
Did you forget to run npm install --save for it

@bestwestern re-opening it. Thanks for the repro instructions, sorry for the issue!

Still having this issue. After running yarn add next/prefetch

@thebetterjort You need to add ^2.0.0-beta to the next field in package.json dependency.
Then you need to do yarn upgrade

Thanks resolved.


can any body write one simple seq2seq model with attention ,the example given by tensorflow.org is too hard to understand!

can any body write one simple seq2seq model with attention ,the example given by tensorflow.org is too hard to understand!

Questions about the model should be asked on StackOverflow.


No warning is displayed when a FieldPanel is used with a StreamField

Is your proposal related to a problem?
As a Wagtail newbie I spent some time debugging this issue : I noticed it was possible to provide a FieldPanel for a StreamField instead of a StreamFieldPanel in models.py's class panels. The field is visible but unusable in Wagtail admin. No message alerts that a mistake was made.
Describe the solution you'd like
To improve developper experience I would suggest a warning message saying something like : "You are using a FieldPanel to display a StreamField, are you sure you are using the right panel?"

Thanks for this! We could probably use a system check to detect this (in this function)

Fixed in #7276.


In the 'Limitations' section add an entry for no data-driven subscriptions.

[Enter feedback here]
Hi,
One of the limitations we have bumped in to when migrating SSRS to PowerBI is that Paginated Report subscriptions have no equivalent to data-driven subscriptions.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a720989e-e6c4-2377-e0c0-8c80d5691f46
Version Independent ID: 3c6392e8-0f91-1c9c-2c21-15291d46bfd0
Content: What are paginated reports in Power BI Premium? - Power BI
Content Source: powerbi-docs/paginated-reports/paginated-reports-report-builder-power-bi.md
Service: powerbi
Sub-service: report-builder
GitHub Login: @maggiesMSFT
Microsoft Alias: maggies

Thanks for your comment, @atho3009. This issue has been assigned to the doc author for review.

Hi, @atho3009 -- good point! I added it to the section about subscriptions rather than to the general Limitations section, and then I added it to the article about subscriptions, https://docs.microsoft.com/en-us/power-bi/consumer/end-user-subscribe?tabs=creator#subscribe-to-paginated-reports. Changes will be live tomorrow afternoon July 21 Pacific time.
Thanks!

@maggiesMSFT it appears that there's still no mention of data-driven subscriptions in the limitation sections these two pages:

What are paginated reports in Power BI Premium?
Email subscriptions for reports and dashboards in the Power BI service.

As far as I can tell this limitation has not been removed - could you look at adding it to the docs?

Well, that's weird. I can see I added it in the PR https://github.com/MicrosoftDocs/powerbi-docs-pr/pull/8206
but I see that it's not in the article now... 🤔
I'm readding it.


Override implementation in PanelBuilders.table() for dashed lines

Please someone help me, write me the exact implementation of the override attached below.
I need it in a PanelBuilders.table()
Because I have searched the source files, I found this everywhere:
`/**

TODO docs
*/`

Or as json:
"overrides": [       {         "matcher": {           "id": "byName",           "options": "CRITICAL"         },         "properties": [           {             "id": "custom.lineStyle",             "value": {               "dash": [                 10,                 10               ],               "fill": "dash"             }           },           {             "id": "custom.fillOpacity",             "value": 0           },           {             "id": "color",             "value": {               "fixedColor": "dark-red",               "mode": "fixed"             }           },           {             "id": "custom.hideFrom",             "value": {               "legend": true,               "tooltip": false,               "viz": false             }           }         ]       },       {         "matcher": {           "id": "byName",           "options": "WARNING"         },         "properties": [           {             "id": "custom.lineStyle",             "value": {               "dash": [                 10,                 10               ],               "fill": "dash"             }           },           {             "id": "custom.fillOpacity",             "value": 0           },           {             "id": "color",             "value": {               "fixedColor": "yellow",               "mode": "fixed"             }           },           {             "id": "custom.hideFrom",             "value": {               "legend": true,               "tooltip": false,               "viz": false             }           }         ]       }     ]
I have a try but I don't find the implementation of the dashed lines. I am not sure if it is a good start:
.setOverrides((critical: any) =>       critical         .matchFieldsWithName('CRITICAL')         .overrideColor({           mode: 'fixed',           fixedColor: 'red'         })
Thank you in advance.

The screenshot is for overrides for the time series visualization, not table.
So confused

Of course, sorry, my fault. This is a timeseries()

But the question remains, rightly in the case of timeseries.

@torkelo
This is the goal, this is what it should look like.

and the 90% red line and yellow lines are time series?

@torkelo
Yes, the same time series as the others. I just want to display certain Field names as dashed. What appears as a dashed line will typically be a straight line for us, but not necessarily.
Sorry for the late reply. The question is just as interesting and important.
So again, to briefly summarize the question: how can I change the style of a time series to dotted by identifying it by field name (as shown in the top image)?
PanelBuilders.timeseries()
I suspect that an .override... is needed, but I couldn't find a lineStyle in the documentation. Maybe there is a different way.

Found the solution:
.setOverrides((a: any) =>       a         .matchFieldsWithName('nameBlaBla')         .overrideCustomFieldConfig('fillOpacity', 0)         .overrideColor({           fixedColor: 'red',           mode: 'fixed'         })         .overrideCustomFieldConfig('lineStyle', {           "dash": [             10,             10           ],           "fill": "dash"         })


mismatch when project velodyne to image

hello when projecting the velodyne into image plane, I found some mismatch between image and verlodyne. While this is not found in KITTI dataset. How can I rectify the data?
P.S. I calculate the velo2img matrix by inverse the img2velo matrix

Hi @linbaiwpi, thanks for the question. We have now added a demo to project velodyne data to the image space: https://github.com/autonomousvision/kitti360Scripts/blob/master/kitti360scripts/viewer/kitti360Viewer3DRaw.py#L66. You can change the image ID to project velodyne points to perspective or fisheye images.
Note that compared to KITTI, the sensors are mounted in a different setting in KITTI-360. In particular, the velodyne scanner is mounted further away from the perspective cameras. This might lead to the impression of misalignment in the image space as some points are occluded in the image space while visible to the Velodyne scanner.
Feel free to reopen the issue if you have further questions.