【feature request】support line wrap

This package is really awesome !
But somehow, it displays lines without wrap, which means you have to scroll this widget horizontally to view it all.
Can anyone help me with this feature? (I think it really important!)

Hello @dreamer2q, thank you for submitting this issue.
i will see what i can do to add this feature as soon as possible.

[ ] Wrap text instead of scrolling horizontally
[ ] Make some tests for compatibility

Adding softWrap: true to the RichText seem to resolve your issue, but its not compatible with line numbers.  as to why i dont think i will add this one to the master branch yet.
although you can modify it in your side until there is a better solution, here are the changes:

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

import 'syntax/index.dart';

class SyntaxView extends StatefulWidget {
  SyntaxView(
      {@required this.code,
      @required this.syntax,
      this.syntaxTheme,
      this.withZoom = true,
      this.withLinesCount = false,
      this.fontSize = 12.0,
      this.expanded = false,
      this.softWrap = true});

  /// Code text
  final String code;

  /// Syntax/Langauge (Dart, C, C++...)
  final Syntax syntax;

  /// Enable/Disable touch zooming  (default: true)
  final bool withZoom;

  /// Enable/Disable line number in left  (default: true)
  final bool withLinesCount;

  /// Theme of syntax view example SyntaxTheme.dracula()
  final SyntaxTheme syntaxTheme;

  /// Font Size with a default value of 12.0
  final double fontSize;

  /// Expansion which allows the SyntaxView to be used inside a Column or a ListView...  (default: false)
  final bool expanded;

  /// Wrap text Whether the code text should break at soft line breaks.  (default: true)
  final bool softWrap;

  @override
  State<StatefulWidget> createState() => SyntaxViewState();
}

class SyntaxViewState extends State<SyntaxView> {
  @override
  void initState() {
    super.initState();
    _fontSize = widget.fontSize;
  }

  /// Zoom Controls
  static const double FONT_SIZE_MIN = 0.5;

  /// Minimum zoom font size
  static const double FONT_SIZE_MAX = 6.0;

  /// Maximum zoom font size
  static const double FONT_BASE_SCALE = 12.0;

  /// Font size & scale
  double _fontSize;
  double _fontScale = 1.0;
  double _fontScaleFactor = 1.0;

  @override
  Widget build(BuildContext context) {
    assert(widget.code != null,
        "Code Content must not be null.\n===| if you are loading a String from assets, make sure you declare it in pubspec.yaml |===");
    assert(widget.syntax != null,
        "Syntax must not be null. select a Syntax by calling Syntax.(Language)");

    return GestureDetector(
        onScaleStart: (final ScaleStartDetails ascaleStartDetails) {
          /// Don't apply zooming if disabled
          if (!widget.withZoom) {
            return;
          }
          _fontScaleFactor = _fontScale;
        },
        onScaleUpdate: (final ScaleUpdateDetails scaleUpdateDetails) {
          /// Don't apply zooming if disabled
          if (!widget.withZoom) {
            return;
          }

          /// Don't update the UI if the scale didn't change
          if (scaleUpdateDetails.scale == 1.0) {
            return;
          }

          if (mounted) {
            setState(() {
              _fontScale = (_fontScaleFactor * scaleUpdateDetails.scale)
                  .clamp(FONT_SIZE_MIN, FONT_SIZE_MAX);
              _fontSize = _fontScale * FONT_BASE_SCALE;
            });
          }
        },
        child: Container(
          padding: (widget.withLinesCount ?? true)
              ? const EdgeInsets.only(left: 5, top: 10, right: 10, bottom: 10)
              : const EdgeInsets.all(10),
          color: (widget.syntaxTheme ?? SyntaxTheme.dracula()).backgroundColor,
          constraints: widget.expanded ? BoxConstraints.expand() : null,
          child: Row(
            crossAxisAlignment: CrossAxisAlignment.start,
            mainAxisAlignment: MainAxisAlignment.start,
            children: [
              /// Lines count
              /// TODO: when softWrap enabled, lines count get messed up
              if (widget.withLinesCount) _linesCountWidget(),
              if (widget.withLinesCount) VerticalDivider(width: 5),

              /// Code text view
              Expanded(child: _codeTextWidget())
            ],
          ),
        ));
  }

  /// Widgets parts ///

  /// Lines number to the left
  Widget _linesCountWidget() {
    final int numLines = '\n'.allMatches(widget.code).length + 1;
    return Column(children: <Widget>[
      for (int i = 1; i <= numLines; i++)
        RichText(
            textScaleFactor: _fontScaleFactor,
            text: TextSpan(
                style: TextStyle(
                    fontFamily: 'monospace',
                    fontSize: _fontSize,
                    color: (widget.syntaxTheme ?? SyntaxTheme.dracula())
                        .linesCountColor),
                text: "$i"))
    ]);
  }

  // Code text
  Widget _codeTextWidget() {
    if (widget.softWrap) {
      return RichText(
        softWrap: true,
        overflow: TextOverflow.clip,
        textScaleFactor: _fontScaleFactor,
        text: TextSpan(
          style: TextStyle(fontFamily: 'monospace', fontSize: _fontSize),
          children: <TextSpan>[
            getSyntax(widget.syntax, widget.syntaxTheme).format(widget.code)
          ],
        ),
      );
    } else {
      return SingleChildScrollView(
          child: SingleChildScrollView(
              scrollDirection: Axis.horizontal,
              child: RichText(
                softWrap: false,
                textScaleFactor: _fontScaleFactor,
                text: TextSpan(
                  style:
                      TextStyle(fontFamily: 'monospace', fontSize: _fontSize),
                  children: <TextSpan>[
                    getSyntax(widget.syntax, widget.syntaxTheme)
                        .format(widget.code)
                  ],
                ),
              )));
    }
  }
}

Hi @rodydavis, i hope you are doing fine.
we could use your advice to add this feature.
thank you

@BaderEddineOuaich  Since softWrap set to true, there is no need to scroll, so my idea is that, we can add line number in
getSyntax(widget.syntax, widget.syntaxTheme).format(widget.code)

In this way, line number is messed in code viewer widget, it might not corrupt copy & paste features.

I solved this issue by changing the logic for painting line numbers. I draw the paragraph to guess at how many lines there would be with a soft wrap. I maintain my own fork since https://widget.studio depends on it

Thanks @rodydavis for mentioning that.
I tried guessing numbers in your way of TextPainter and ui.LineMetrics when softwrap is enabled (instead of just counting '\n') matches. now it seem to work just fine in my side.
I need someone to confirm changes so i can publish with version 4.2.2.
@dreamer2q  can you give the last changes in this repository a test to see if it fulfills yours needs before publishing?
Thank you guys!

Sure thing! 👍🏼


Implement findOrCreate(): Create new model and saveIt or return existing from db

For example I have a person object and I want to save him to the Person table.
However there is a possibility that I already have him saved and in this case I wish to retrieve existing model from database. Person has SERIAL id as a primary key.
Current solution would be to check if Person with this name currently exists and if not createIt
Person p = Person.findFirst("name = ?", name); if(p == null){    p = Person.createIt("name", name); }
Alternatively I could just say to keep it simple:
 Person p = findOrCreate("name", name, ....);

@yakka34 this logic is flawed. You can have many people with the same names. Is this a proposal for a new feature?

Yes, this is a feature request. Feature can be found from example Laravel orm.
Person table was a bad example, but idea is still the same.

@yakka34 does not seem like an important feature, but can be easily added. Want to send in a Pull Request?

Here's something,  it's not nearly good enough to be pulled  so I will just leave it here to demonstrate this idea.
/**      * This is a convenience method to fetch model from db or to create new one and save it.      *@param namesAndValues names and values. elements at indexes 0, 2, 4, 8... are attribute names, and elements at      * indexes 1, 3, 5... are values. Element at index 1 is a value for attribute at index 0 and so on.      *@return Model fetched from db or newly saved instance      */     public <T extends Model> T findOrCreate(Object... namesAndValues) throws IllegalArgumentException{         if (namesAndValues.length % 2 != 0){             throw new IllegalArgumentException("number of arguments must be even");         }         //Generates subQuery from namesAndValues         StringBuilder subQuery = new StringBuilder();         //Parameters for subQuery         Object[] params = new Object[namesAndValues.length / 2];         int x = 0;         for (int i = 0; i < namesAndValues.length; i++){             if (i % 2 == 0){                 subQuery.append((subQuery.length() > 0) ? " and " + namesAndValues[i] + " = ?" : namesAndValues[i] + " = ?");             }             else {                 params[x++] = namesAndValues[i];             }         }         if(findFirst(subQuery.toString(),params) != null){             return findFirst(subQuery,params);         }         else{             return createIt(namesAndValues);         }     }

@yakka34 I think you are ready to contribute :), please see this as a starting point: http://javalite.io/contributors

Commit: e9bdfdd3d415d46b43f4058fc7ea8efeb8f54426
@ipolevoy I'm unable to run the test. It can't determine Model name even after instrumentation

If I add maven goal to the test org.javalite:activejdbc-instrumentation:2.0-SNAPSHOT:instrument
I gives this error:
[ERROR] Failed to execute goal org.javalite:activejdbc-instrumentation:2.0-SNAPSHOT:instrument (default-cli) on project javalite-common: Failed to add output directory to classpath: java.lang.ClassNotFoundException: org.javalite.activejdbc.Association -> [Help 1]

@yakka34 , see the video on this page:: http://javalite.io/instrumentation, this is how I develop with ActiveJDBC.

I have seen the video but maven goal fails every time on javalite-common
[INFO] Building JavaLite - Common 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> activejdbc-instrumentation:2.0-SNAPSHOT:instrument (default-cli) > process-classes @ javalite-common >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ javalite-common ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ javalite-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\x\IdeaProjects\activejdbc\javalite-common\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ javalite-common ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< activejdbc-instrumentation:2.0-SNAPSHOT:instrument (default-cli) < process-classes @ javalite-common <<<
[INFO]
[INFO] --- activejdbc-instrumentation:2.0-SNAPSHOT:instrument (default-cli) @ javalite-common ---
**************************** START INSTRUMENTATION ****************************
Directory: C:\Users\x\IdeaProjects\activejdbc\javalite-common\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] JavaLite - ActiveJDBC Root ......................... SUCCESS [  0.286 s]
[INFO] JavaLite - Common .................................. FAILURE [  0.458 s]
[INFO] JavaLite - Instrumentation Plugin and JavaAgent .... SKIPPED
[INFO] JavaLite - AppConfig ............................... SKIPPED
[INFO] JavaLite - ActiveJDBC ORM Framework ................ SKIPPED
[INFO] JavaLite - DB-Migrator Maven Plugin ................ SKIPPED
[INFO] JavaLite - DB-Migrator Integration Test ............ SKIPPED
[INFO] JavaLite - Git Info Maven plugin ................... SKIPPED
[INFO] JavaLite - Gradle Instrumentation Plugin ........... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.964 s
[INFO] Finished at: 2017-08-26T14:24:09+03:00
[INFO] Final Memory: 11M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.javalite:activejdbc-instrumentation:2.0-SNAPSHOT:instrument (default-cli) on project javalite-common: Failed to add output directory to classpath: java.lang.ClassNotFoundException: org.javalite.activejdbc.Association -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.javalite:activejdbc-instrumentation:2.0-SNAPSHOT:instrument (default-cli) on project javalite-common: Failed to add output directory to classpath
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to add output directory to classpath
	at org.javalite.instrumentation.ActiveJdbcInstrumentationPlugin.execute(ActiveJdbcInstrumentationPlugin.java:88)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	... 21 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.javalite.activejdbc.Association
	at org.javalite.instrumentation.Instrumentation.instrument(Instrumentation.java:70)
	at org.javalite.instrumentation.ActiveJdbcInstrumentationPlugin.instrument(ActiveJdbcInstrumentationPlugin.java:124)
	at org.javalite.instrumentation.ActiveJdbcInstrumentationPlugin.execute(ActiveJdbcInstrumentationPlugin.java:82)
	... 23 more
Caused by: java.lang.ClassNotFoundException: org.javalite.activejdbc.Association
	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.javalite.instrumentation.InstrumentationModelFinder.<init>(InstrumentationModelFinder.java:52)
	at org.javalite.instrumentation.Instrumentation.instrument(Instrumentation.java:51)
	... 25 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :javalite-common
[ERROR] Maven execution terminated abnormally (exit code 1)

If I run instrumentation from maven plugin list by hand like you in the video it finishes but I still get this error

@yakka34 this is odd, I tried building on Windows, but it fails for a different reason. I will accept your pull request and will fix the test, go ahead and submit it.

@yakka34 the project is developed and built on Linux

https://github.com/javalite/activejdbc/pull/631

@yakka34 , I had to make a few changes in code to compile and pass the tests and the instrumentation problem. You can start using this out of latest snapshot.

@yakka34 thanks for the contribution!

@ipolevoy am not able to find the reason after adding activeJdbc dependency am not able to import model while Employee extends Model this Model class is not available please help me out

@basahota how is this related to this issue? If you have a general question, please post to StackOverflow and tag with activejdbc and javalite please.

Thanks for your response, issue got resolved
On 19-Feb-2018 6:26 PM, "Igor Polevoy"<EMAIL_ADDRESS>wrote:

@basahota https://github.com/basahota how is this related to this
issue? If you have a general question, please post to StackOverflow and tag
with activejdbc and javalite please.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/javalite/activejdbc/issues/629#issuecomment-366685788,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYhYsAZHnYc6sHb6ywBN4eExOh3VbmoLks5tWW-XgaJpZM4PC5jf
.


DbModelBuilder Types method

Hi... in EF6 I had the code below that would apply generic configuration to all entities in the model using the Types().Configure method... I am trying to port to EF7 and am struggling trying to convert this code... I see that we no longer have DbModelBuilder and instead have ModelBuilder... that's cool... but I can't find the Types method... is there anything equivalent in EF7???? I basically want to loop through all the types in the model, check if they derive from a certain base class, and if so ignore a prop on the base class... down below DerivesFrom is a custom extension method and EntityBase is custom base class... any ideas??? Thank you
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
        modelBuilder.Types().Configure(entity =>
        {
            var isEntity = entity.ClrType.DerivesFrom(typeof(EntityBase<>));
            if (isEntity)
            {
                entity.Ignore("EntityState");
            }
        });
    }

modelBuilder.Model.GetEntityTypes() returns all entity types in the current model.
Following code snippet should give be equivalent of above code in EF6.
foreach (var entityType in modelBuilder.Model.GetEntityTypes())
{
    if (typeof (EntityBase<>).IsAssignableFrom(entityType.ClrType))
    {
        modelBuilder.Entity(entityType.ClrType).Ignore("EntityState");
    }
}

wow thanks @smitpatel... i will try it out...


Missing support for sql.Null types with aggregate functions like SUM

I just tried plugging in this library for my use case with pgx; for the most part, it works great. One bug I have run into is for a code snippet like this
	var mySum sql.NullInt64
	query := "SELECT SUM(my_column) FROM my_table"
	err := pgxscan.Get(ctx, p.pool, &mySum, query)
	if err != nil {
		logger.Errorw("Failed to fetch sum", "err", err)
	}

In this case, I would expect the SUM() aggregator to be parsed and then populate the sql.NullInt64 type. However, this query produces the error: `scany: column: 'sum': no corresponding field found, or it's unexported in sql.NullInt64``.
I noticed that by changing the declaration to var mySum int64, this appeared to solve the problem.
I am guessing that the bug might be that the sql.Null* types do not populate the struct correctly when aggregate functions are at play, so I would expect those to be populated appropriately rather than throwing an error.

Hi. It's not actually a bug, it's more an implementation limitation.
The problem is that sql.NullInt64 is actually a struct and when you pass it to scany it handles as a struct case (looks for fields that should correspond to columns). When you pass int64 it's a primitive type case for scany and it handles it differently (just assigns single column value)
The workaround here is to wrap the sql.NullInt64 type into a struct:
type Row struct {
    Sum sql.NullInt64
}

and pass that struct to scany instead.
See https://github.com/georgysavva/scany/issues/33 and https://github.com/georgysavva/scany/issues/63 for details.

This workaround only appears to work with sufficiently small numbers, i guess depending how the database chooses to represent the integer. When I tried this workaround locally, it appeared to work. However, when I run in my pre-production environment, I get the following error:
scany: scan row into struct fields: can't scan into dest[0]: converting driver.Value type string ("60640252e0") to a int64: invalid syntax

To confirm, I manually ran the sql query in a DB shell and got the following
notifications_stage=> select sum(my_column) from my_table where ...;
   sum
----------
 60640252
(1 row)

Is this a bug?

This error has nothing to do with scany actually, scany successfully passes sql.NullInt64 type to the underlying database library and the database library itself fails to scan into it. From the error message It seems that database library treats your data as a string.

Try to scan without scany at all. Manually pass sql.NullInt64 to your lib, you should get the same error.
Try to explicitly specify the integer type in your query or try to scan any other integer type value.

Got it; I am surprised that the pgx library is choosing to return the integer data as a string in this case, but the ::int workaround appears to work. thanks.

I am glad it works for you know with scany!
I think you should file a bug to pgx library in that case!

Hi. It's not actually a bug, it's more an implementation limitation. The problem is that sql.NullInt64 is actually a struct and when you pass it to scany it handles as a struct case (looks for fields that should correspond to columns). When you pass int64 it's a primitive type case for scany and it handles it differently (just assigns single column value) The workaround here is to wrap the sql.NullInt64 type into a struct:
type Row struct {
    Sum sql.NullInt64
}

and pass that struct to scany instead.
See #33 and #63 for details.

@evanfuller JFYI I've released a new version of scany that now includes this feature.


Headers should't generate code.

This is needed to avoid "Multiple instantiations of ..." linker errors (a lot of them).
Not sure why you want this library to be header only?
You can ignore the first commit (couldn't get rid of it in the pull request), or use it if
it doesn't break anything for you (as far as I know 'branch' is normally not used?)

Hi, thanks for your PR! I completely forgot about this issue and I never had to include glfwpp.hpp from multiple TUs at once and didn't notice. I see that you made three changes, so let me comment;

You removed branch in .gitmodules. It is necessary there as examples rely on using the docking branch. Admittedly though, I think I will separate the dependencies of the examples and the dependencies of GLFWPP itself to make it clear that GLFWPP doesn't require ImGui, only some examples do.
You added a lot of inline and gnu::always_inline specifiers. They will not harm the code in any way, but I don't believe that they are necessary as modern compilers (which C++17 compilers are) should be able to see that these functions are so simple that they will always be inlined. This is one advantage of the library being header-only - we don't have to rely on complex and volatile link-time optimizations, as the full source code of functions is available at compilation time.
You created the StaticEvent class to solve ODR violations. I think that there may be an easier solution using inline variables (introduced in C++17) as, as far as I remember, this was their intended usage. I will have to try it myself and see.

Hi, thanks for your reply.

Yes, this is just a personal thing I need (to be removed). But I couldn't get rid of that commit when doing the pull request for some reason (I could have made a new branch and all, but I was lazy and thought: why not).
The inline keyword makes all the difference here, it will turn the code (functions) in a weak links, no longer causing linker collisions. I added the [[gnu::always_inline]] as an improvement for the case where you compile without optimization (which is what I'm currently doing, I just use -g. If you don't want it in your code for some reason then you can leave it out (it won't break linkage).
I never heard of inline variables, but when they work in the same way: make them weakly linked and leaving it to the linker to resolve them into a single instance then that would certainly be a better solution (using the template trick does the exact same thing).

I applied fixes and pushed them to the fix branch. It should fix issues #16, #20, #79 and #80. Let me know if this solves your issues. If it does, we may close this PR and I will merge the fix branch.

On Sun, 01 Aug 2021 11:01:38 -0700
Jan Bielak @.***> wrote:

I applied fixes and pushed them to the fix branch. It should fix
issues #16, #20, #79 and #80. Let me know if this solves your issues.
If it does, we may close this PR and I will merge the fix branch.

I did a pull request for 'fix'.

Closed via #89 and #87.


Sec datatracker

Describe the issue
Protec @llakai81
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

### Tasks

Protec

@llakai

Spect


location model created for sequelize things. user model association t…

…o equipment list added

good to go


AMBARI-26109 : Adding DFSRouter via 'Actions Button' in HDFS summary page

What changes were proposed in this pull request?

Add enable dfsrouter bouton in the actions dropdown of HDFS summary page
Separate wizard flow for installing and starting dfsrouter
Loading runtime configurations

How was this patch tested?
Setup a cluster with the rpms of the changes proposes and verified UI flow

@JiaLiangC , @virajjasani , please help review this pr.

@AnanyaSingh2121 please fix CI/CD failure

@AnanyaSingh2121 please fix CI/CD failure

sure @JiaLiangC

@AnanyaSingh2121 please fix CI/CD failure

sure @JiaLiangC

CI/CD is fixed now , had to add one test

@zRains Could you help review this?

@JiaLiangC Sorry about this, I don't have much time to handle it right now. We can merge it first and address any issues later.

@JiaLiangC Sorry about this, I don't have much time to handle it right now. We can merge it first and address any issues later.

OK


Login Error, server busy

Server busy error + unable to set an app password because no 2 step auth activated on my gmail.


Ex2: Add questions and solutions

Exercise2:

derive expression for the T matrix under assumption that channels do not talk
derive corrections term with small coupling, g2~epsilon

Closed by #12


bug: Claude Sonnet always complains about missing context

Describe the bug
I'm trying to package avante-nvim 0.0.2 for nix: https://github.com/NixOS/nixpkgs/pull/339921
claude-3.5-sonnet always responds as follows:

I apologize, but I don't have any code or image to analyze based on your question "whats this". To provide suggestions for code modifications with precise line number ranges, I would need the original code snippet or an image containing code to work with.
If you have a specific piece of code or an image that you'd like me to examine and suggest modifications for, please provide it, and I'll be happy to assist you following the detailed instructions you've given.

To reproduce
Use :AvanteAsk in any file.
Expected behavior
claude-3.5-sonnet responds with description of the file.
Environment
I'm using neovim from nixpkgs-unstable.
$ nvim --version
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info

Latest commit from the main branch does not exhibit this problem.
Really i'm just asking for a new release here.

Closing - will use latest commit from main instead.


The browser field in package.json causes vite to fail to parse properly

I'm using this package in a vite + react project and vite seems to be incorrectly reading  "browser": "dist/browser.js" from package.json as the load entry, resulting in an error.
Changing package.json to { "browser": { "vanilla": "dist/browser.js" }  } may help with this issue.
Thanks

Ok. thanks for reporting. I'm not using vanilla so I didn't realize that

2.7.1 will fix this. Could u please try it again? Thank u

Released


repeated errors when provisioning new obc

E0416 14:30:26.636238   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io "screeley-provb-3": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
Full log:
./jeff-prov --kubeconfig=/var/run/kubernetes/admin.kubeconfig --master=https://localhost:6443 -alsologtostderr -v=2
I0416 14:30:06.738227   27193 aws-s3-provisioner.go:499] AWS S3 Provisioner - main
I0416 14:30:06.738429   27193 aws-s3-provisioner.go:500] flags: kubeconfig="/var/run/kubernetes/admin.kubeconfig"; masterURL="https://localhost:6443"
I0416 14:30:06.740993   27193 manager.go:81] objectbucket.io/provisioner-manager "level"=0 "msg"="constructing new Provisioner"  "name"="aws-s3.io/bucket"
I0416 14:30:06.741456   27193 manager.go:92] objectbucket.io/provisioner-manager "level"=0 "msg"="generating controller manager"
I0416 14:30:06.781048   27193 manager.go:99] objectbucket.io/provisioner-manager "level"=0 "msg"="adding schemes to manager"
I0416 14:30:06.781209   27193 manager.go:104] objectbucket.io/provisioner-manager "level"=0 "msg"="constructing new ObjectBucketClaimReconciler"
I0416 14:30:06.781236   27193 reconiler.go:50] objectbucket.io/claim-reconciler "level"=0 "msg"="constructing new reconciler"  "provisioner"="aws-s3.io/bucket"
I0416 14:30:06.781268   27193 reconiler.go:55] objectbucket.io/claim-reconciler "level"=1 "msg"="retry loop setting"  "RetryBaseInterval"=3
I0416 14:30:06.781288   27193 reconiler.go:59] objectbucket.io/claim-reconciler "level"=1 "msg"="retry loop setting"  "RetryTimeout"=30
I0416 14:30:06.781305   27193 manager.go:133] objectbucket.io/provisioner-manager "level"=0 "msg"="building controller manager"
I0416 14:30:06.783062   27193 :0] objectbucket.io/provisioner-manager/kubebuilder/controller "level"=0 "msg"="Starting EventSource"  "controller"="objectbucketclaim-application" "source"={"Type":{"metadata":{"creationTimestamp":null},"spec":{"storageClassName":"","bucketName":"","ssl":false,"cannedBucketAcl":"","versioned":false,"additionalConfig":null,"ObjectBucketName":""},"status":{"Phase":""}}}
I0416 14:30:06.783160   27193 aws-s3-provisioner.go:517] main: running aws-s3.io/bucket provisioner...
I0416 14:30:06.783200   27193 manager.go:150] objectbucket.io/provisioner-manager "level"=0 "msg"="Starting manager"  "provisioner"="aws-s3.io/bucket"
I0416 14:30:06.786099   27193 manager.go:114] objectbucket.io/provisioner-manager "level"=1 "msg"="event: Create() "  "Kind"={"Group":"objectbucket.io","Version":"v1alpha1","Kind":"ObjectBucketClaim"} "Name"="screeley-provb-3"
I0416 14:30:06.883479   27193 :0] objectbucket.io/provisioner-manager/kubebuilder/controller "level"=0 "msg"="Starting Controller"  "controller"="objectbucketclaim-application"
I0416 14:30:06.983670   27193 :0] objectbucket.io/provisioner-manager/kubebuilder/controller "level"=0 "msg"="Starting workers"  "controller"="objectbucketclaim-application" "worker count"=1
I0416 14:30:06.983759   27193 reconiler.go:81]  "level"=0 "msg"="new Reconcile iteration" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:06.983776   27193 helpers.go:60]  "level"=0 "msg"="getting claim for key" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:06.983810   27193 helpers.go:21]  "level"=0 "msg"="validating claim for provisioning" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:06.983827   27193 helpers.go:120]  "level"=0 "msg"="getting storageClass for claim" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:06.983843   27193 helpers.go:127]  "level"=0 "msg"="OBC defined class" "request"="s3-provisioner/screeley-provb-3" "name"="s3-buckets"
I0416 14:30:06.983858   27193 helpers.go:130]  "level"=0 "msg"="getting storage class" "request"="s3-provisioner/screeley-provb-3" "name"="s3-buckets"
I0416 14:30:07.084186   27193 helpers.go:141]  "level"=0 "msg"="successfully got class" "request"="s3-provisioner/screeley-provb-3" "name"=null
I0416 14:30:07.088365   27193 helpers.go:91]  "level"=0 "msg"="determining bucket name" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:07.088388   27193 helpers.go:101]  "level"=0 "msg"="bucket name generated" "request"="s3-provisioner/screeley-provb-3" "name"="screeley-provb-3"
I0416 14:30:07.088401   27193 helpers.go:21]  "level"=0 "msg"="validating claim for provisioning" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:07.088421   27193 reconiler.go:189]  "level"=0 "msg"="provisioning" "request"="s3-provisioner/screeley-provb-3" "bucket"="screeley-provb-3"
I0416 14:30:07.088434   27193 helpers.go:60]  "level"=0 "msg"="getting claim for key" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:07.088465   27193 aws-s3-provisioner.go:233] initializing and setting CreateOrGrant services
I0416 14:30:07.088477   27193 util.go:34] getting storage class "s3-buckets"...
I0416 14:30:07.088698   27193 manager.go:118] objectbucket.io/provisioner-manager "level"=1 "msg"="event: Update (ignored)"  "Kind"="/, Kind=" "Name"="screeley-provb-3"
I0416 14:30:07.091027   27193 iam.go:345] storage class flag createBucketUser's value, or absence of flag, indicates to create a new user
I0416 14:30:07.091042   27193 aws-s3-provisioner.go:215] Creating AWS session based on storageclass "s3-buckets"
I0416 14:30:07.091051   27193 util.go:64] getting secret "s3-provisioner/s3-bucket-owner"...
I0416 14:30:07.093978   27193 aws-s3-provisioner.go:202] Creating AWS session using credentials from storage class s3-buckets's secret
I0416 14:30:07.094035   27193 aws-s3-provisioner.go:221] Creating S3 service based on storageclass "s3-buckets"
I0416 14:30:07.094075   27193 aws-s3-provisioner.go:342] Creating bucket "screeley-provb-3"
I0416 14:30:08.411336   27193 aws-s3-provisioner.go:162] Bucket screeley-provb-3 successfully created
I0416 14:30:08.434997   27193 util.go:109] Generated user screeley-provb-3-X5gsu after 1 iterations
I0416 14:30:08.435020   27193 iam.go:49] creating user and policy for bucket "screeley-provb-3"
I0416 14:30:08.435029   27193 iam.go:303] creating IAM user "screeley-provb-3-X5gsu"
I0416 14:30:08.495822   27193 iam.go:327] successfully created IAM user "screeley-provb-3-X5gsu" with access keys
I0416 14:30:08.495856   27193 iam.go:150] createBucketPolicyDocument for bucket "screeley-provb-3" and ARN "arn:aws:s3:::screeley-provb-3"
I0416 14:30:08.560980   27193 iam.go:217] createUserPolicy "screeley-provb-3-X5gsu" successfully created
I0416 14:30:08.561005   27193 iam.go:241] attach policy "screeley-provb-3-X5gsu" to user
I0416 14:30:08.561012   27193 iam.go:223] getting ARN for policy "screeley-provb-3-X5gsu"
I0416 14:30:08.561020   27193 iam.go:259] creating new user "screeley-provb-3-X5gsu"
I0416 14:30:08.582382   27193 iam.go:272] created user "screeley-provb-3-X5gsu" and accountID "939345161466"
I0416 14:30:08.582403   27193 iam.go:234] successfully got PolicyARN "arn:aws:iam::939345161466:policy/screeley-provb-3-X5gsu" for AccountID<PHONE_NUMBER>66's Policy "screeley-provb-3-X5gsu"
I0416 14:30:08.625058   27193 iam.go:252] successfully attached policy "screeley-provb-3-X5gsu" to user "screeley-provb-3-X5gsu"
I0416 14:30:08.625083   27193 iam.go:87] successfully created user and policy for bucket "screeley-provb-3"
I0416 14:30:08.625135   27193 helpers.go:86]  "level"=0 "msg"="setting OB name" "request"="s3-provisioner/screeley-provb-3" "name"=""
I0416 14:30:08.625155   27193 helpers.go:60]  "level"=0 "msg"="getting claim for key" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:08.625195   27193 resourcehandlers.go:120]  "level"=0 "msg"="creating ObjectBucket" "request"="s3-provisioner/screeley-provb-3" "name"="obc-s3-provisioner-screeley-provb-3"
I0416 14:30:08.625228   27193 resourcehandlers.go:45]  "level"=0 "msg"="creating object until timeout" "request"="s3-provisioner/screeley-provb-3" "interval"=3000000000 "timeout"=30000000000
E0416 14:30:08.633512   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io \"screeley-provb-3\": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:11.636487   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io \"screeley-provb-3\": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:14.636467   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io \"screeley-provb-3\": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:17.636340   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io \"screeley-provb-3\": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:20.636376   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io \"screeley-provb-3\": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:23.636373   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io \"screeley-provb-3\": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:26.636238   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io \"screeley-provb-3\": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:29.636205   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io \"screeley-provb-3\": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:32.636338   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io \"screeley-provb-3\": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:35.636463   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io \"screeley-provb-3\": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:38.636270   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io \"screeley-provb-3\": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:38.637899   27193 resourcehandlers.go:285]  "msg"="possibly intermittent, retrying" "error"="Operation cannot be fulfilled on objectbucketclaims.objectbucket.io \"screeley-provb-3\": the object has been modified; please apply your changes to the latest version and try again" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:38.637929   27193 reconiler.go:152]  "msg"="cleaning up reconcile artifacts" "error"="error updating phase: timed out waiting for the condition" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:38.637956   27193 reconiler.go:154]  "level"=0 "msg"="deleting bucket" "request"="s3-provisioner/screeley-provb-3" "name"="screeley-provb-3"
I0416 14:30:38.637967   27193 aws-s3-provisioner.go:395] Deleting bucket "screeley-provb-3" for OB "obc-s3-provisioner-screeley-provb-3"
I0416 14:30:38.637979   27193 util.go:34] getting storage class "s3-buckets"...
I0416 14:30:38.639315   27193 aws-s3-provisioner.go:215] Creating AWS session based on storageclass "s3-buckets"
I0416 14:30:38.639331   27193 util.go:64] getting secret "s3-provisioner/s3-bucket-owner"...
I0416 14:30:38.640574   27193 aws-s3-provisioner.go:202] Creating AWS session using credentials from storage class s3-buckets's secret
I0416 14:30:38.640617   27193 aws-s3-provisioner.go:221] Creating S3 service based on storageclass "s3-buckets"
I0416 14:30:38.640644   27193 iam.go:93] deleting user and policy for bucket "screeley-provb-3"
I0416 14:30:38.672963   27193 iam.go:107] successfully detached policy "arn:aws:iam::939345161466:policy/screeley-provb-3-X5gsu", user "screeley-provb-3-X5gsu"
I0416 14:30:38.720315   27193 iam.go:117] successfully deleted policy "arn:aws:iam::939345161466:policy/screeley-provb-3-X5gsu"
I0416 14:30:38.720340   27193 iam.go:279] getting access key for user "screeley-provb-3-X5gsu"
I0416 14:30:38.802054   27193 iam.go:129] successfully deleted access key for user "screeley-provb-3-X5gsu"
I0416 14:30:38.802078   27193 iam.go:133] Deleting User "screeley-provb-3-X5gsu"
I0416 14:30:38.830286   27193 iam.go:142] successfully deleted user and policy for bucket "screeley-provb-3"
I0416 14:30:38.830315   27193 aws-s3-provisioner.go:424] Deleting all objects in bucket "screeley-provb-3" (from OB "obc-s3-provisioner-screeley-provb-3")
I0416 14:30:39.140218   27193 aws-s3-provisioner.go:430] Deleting empty bucket "screeley-provb-3" from OB "obc-s3-provisioner-screeley-provb-3"
I0416 14:30:39.472895   27193 aws-s3-provisioner.go:437] Deleted bucket "screeley-provb-3" from OB "obc-s3-provisioner-screeley-provb-3"
I0416 14:30:39.472950   27193 resourcehandlers.go:219]  "level"=0 "msg"="deleting ObjectBucket" "request"="s3-provisioner/screeley-provb-3" "name"="obc-s3-provisioner-screeley-provb-3"
I0416 14:30:39.472975   27193 helpers.go:170]  "level"=0 "msg"="checking for finalizer" "request"="s3-provisioner/screeley-provb-3" "object"="obc-s3-provisioner-screeley-provb-3" "value"="objectbucket.io/finalizer"
I0416 14:30:39.472990   27193 helpers.go:173]  "level"=0 "msg"="found finalizer in obj" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:39.473004   27193 helpers.go:182]  "level"=0 "msg"="removing finalizer from object" "request"="s3-provisioner/screeley-provb-3" "name"="obc-s3-provisioner-screeley-provb-3"
I0416 14:30:39.473017   27193 helpers.go:191]  "level"=0 "msg"="found finalizer, deleting and updating API" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:39.476087   27193 helpers.go:197]  "level"=0 "msg"="finalizer deletion successful" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:39.479563   27193 resourcehandlers.go:186]  "level"=0 "msg"="got nil secret, skipping" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:39.479586   27193 resourcehandlers.go:156]  "level"=0 "msg"="got nil configMap pointer, skipping delete" "request"="s3-provisioner/screeley-provb-3"
E0416 14:30:39.479642   27193 :0] objectbucket.io/provisioner-manager/kubebuilder/controller "msg"="Reconciler error" "error"="error updating phase: timed out waiting for the condition"  "controller"="objectbucketclaim-application" "request"={"Namespace":"s3-provisioner","Name":"screeley-provb-3"}
I0416 14:30:40.479896   27193 reconiler.go:81]  "level"=0 "msg"="new Reconcile iteration" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:40.479927   27193 helpers.go:60]  "level"=0 "msg"="getting claim for key" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:40.480215   27193 helpers.go:21]  "level"=0 "msg"="validating claim for provisioning" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:40.480239   27193 helpers.go:120]  "level"=0 "msg"="getting storageClass for claim" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:40.480265   27193 helpers.go:127]  "level"=0 "msg"="OBC defined class" "request"="s3-provisioner/screeley-provb-3" "name"="s3-buckets"
I0416 14:30:40.480287   27193 helpers.go:130]  "level"=0 "msg"="getting storage class" "request"="s3-provisioner/screeley-provb-3" "name"="s3-buckets"
I0416 14:30:40.480316   27193 helpers.go:141]  "level"=0 "msg"="successfully got class" "request"="s3-provisioner/screeley-provb-3" "name"=null
I0416 14:30:40.484126   27193 helpers.go:91]  "level"=0 "msg"="determining bucket name" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:40.484153   27193 helpers.go:101]  "level"=0 "msg"="bucket name generated" "request"="s3-provisioner/screeley-provb-3" "name"="screeley-provb-3"
I0416 14:30:40.484167   27193 helpers.go:21]  "level"=0 "msg"="validating claim for provisioning" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:40.484183   27193 reconiler.go:189]  "level"=0 "msg"="provisioning" "request"="s3-provisioner/screeley-provb-3" "bucket"="screeley-provb-3"
I0416 14:30:40.484195   27193 helpers.go:60]  "level"=0 "msg"="getting claim for key" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:40.484210   27193 aws-s3-provisioner.go:233] initializing and setting CreateOrGrant services
I0416 14:30:40.484219   27193 util.go:34] getting storage class "s3-buckets"...
I0416 14:30:40.485737   27193 iam.go:345] storage class flag createBucketUser's value, or absence of flag, indicates to create a new user
I0416 14:30:40.485752   27193 aws-s3-provisioner.go:215] Creating AWS session based on storageclass "s3-buckets"
I0416 14:30:40.485761   27193 util.go:64] getting secret "s3-provisioner/s3-bucket-owner"...
I0416 14:30:40.487057   27193 aws-s3-provisioner.go:202] Creating AWS session using credentials from storage class s3-buckets's secret
I0416 14:30:40.487147   27193 aws-s3-provisioner.go:221] Creating S3 service based on storageclass "s3-buckets"
I0416 14:30:40.487175   27193 aws-s3-provisioner.go:342] Creating bucket "screeley-provb-3"
I0416 14:30:41.229210   27193 aws-s3-provisioner.go:162] Bucket screeley-provb-3 successfully created
I0416 14:30:41.245367   27193 util.go:109] Generated user screeley-provb-3-QdoNY after 1 iterations
I0416 14:30:41.245386   27193 iam.go:49] creating user and policy for bucket "screeley-provb-3"
I0416 14:30:41.245394   27193 iam.go:303] creating IAM user "screeley-provb-3-QdoNY"
I0416 14:30:41.306068   27193 iam.go:327] successfully created IAM user "screeley-provb-3-QdoNY" with access keys
I0416 14:30:41.306091   27193 iam.go:150] createBucketPolicyDocument for bucket "screeley-provb-3" and ARN "arn:aws:s3:::screeley-provb-3"
I0416 14:30:41.360274   27193 iam.go:217] createUserPolicy "screeley-provb-3-QdoNY" successfully created
I0416 14:30:41.360299   27193 iam.go:241] attach policy "screeley-provb-3-QdoNY" to user
I0416 14:30:41.360306   27193 iam.go:223] getting ARN for policy "screeley-provb-3-QdoNY"
I0416 14:30:41.360312   27193 iam.go:259] creating new user "screeley-provb-3-QdoNY"
I0416 14:30:41.380312   27193 iam.go:272] created user "screeley-provb-3-QdoNY" and accountID "939345161466"
I0416 14:30:41.380333   27193 iam.go:234] successfully got PolicyARN "arn:aws:iam::939345161466:policy/screeley-provb-3-QdoNY" for AccountID<PHONE_NUMBER>66's Policy "screeley-provb-3-QdoNY"
I0416 14:30:41.420277   27193 iam.go:252] successfully attached policy "screeley-provb-3-QdoNY" to user "screeley-provb-3-QdoNY"
I0416 14:30:41.420301   27193 iam.go:87] successfully created user and policy for bucket "screeley-provb-3"
I0416 14:30:41.420335   27193 helpers.go:86]  "level"=0 "msg"="setting OB name" "request"="s3-provisioner/screeley-provb-3" "name"=""
I0416 14:30:41.420353   27193 helpers.go:60]  "level"=0 "msg"="getting claim for key" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:41.420383   27193 resourcehandlers.go:120]  "level"=0 "msg"="creating ObjectBucket" "request"="s3-provisioner/screeley-provb-3" "name"="obc-s3-provisioner-screeley-provb-3"
I0416 14:30:41.420402   27193 resourcehandlers.go:45]  "level"=0 "msg"="creating object until timeout" "request"="s3-provisioner/screeley-provb-3" "interval"=3000000000 "timeout"=30000000000
I0416 14:30:41.427987   27193 manager.go:118] objectbucket.io/provisioner-manager "level"=1 "msg"="event: Update (ignored)"  "Kind"="/, Kind=" "Name"="screeley-provb-3"
I0416 14:30:41.428538   27193 resourcehandlers.go:133]  "level"=0 "msg"="creating Secret" "request"="s3-provisioner/screeley-provb-3" "name"="screeley-provb-3" "namespace"="s3-provisioner"
I0416 14:30:41.428562   27193 resourcehandlers.go:45]  "level"=0 "msg"="creating object until timeout" "request"="s3-provisioner/screeley-provb-3" "interval"=3000000000 "timeout"=30000000000
I0416 14:30:41.431599   27193 resourcehandlers.go:71]  "level"=0 "msg"="defining new configMap" "request"="s3-provisioner/screeley-provb-3" "for claim"="s3-provisioner/screeley-provb-3"
I0416 14:30:41.431627   27193 resourcehandlers.go:146]  "level"=0 "msg"="creating configMap" "request"="s3-provisioner/screeley-provb-3" "name"="screeley-provb-3" "namespace"="s3-provisioner"
I0416 14:30:41.431644   27193 resourcehandlers.go:45]  "level"=0 "msg"="creating object until timeout" "request"="s3-provisioner/screeley-provb-3" "interval"=3000000000 "timeout"=30000000000
I0416 14:30:41.436236   27193 reconiler.go:246]  "level"=0 "msg"="provisioning succeeded" "request"="s3-provisioner/screeley-provb-3"
I0416 14:30:41.436275   27193 controller.go:236] objectbucket.io/provisioner-manager/kubebuilder/controller "level"=1 "msg"="Successfully Reconciled"  "controller"="objectbucketclaim-application" "request"={"Namespace":"s3-provisioner","Name":"screeley-provb-3"}

Eventually recovers and the k8s resources are created. There seems to be a lot of overhead creating and then deleting aws and k8s resources in this code path...

Eventually recovers and the k8s resources are created. There seems to be a lot of overhead creating and then deleting aws and k8s resources in this code path...

That's true. If a reconcile iteration can't succeed, it cleans up any resources that were created.  I still think that's a necessary step.  There are also smaller internal loops that will retry k8s resource operations on error a few times in quick succession in case of errors that may not be fatal.
What you're seeing is Reconcile() being retried by the controller at an exponential backoff.  Conceptually, do we want to do as k8s does and continuously retry until actual state of the world == desired state of the world?   If not, then we need a way to differentiate errors returned  by provisioners that doesn't have us parsing strings.  Maybe typed errors?

@screeley44 @jeffvance Has the bug resurfaced or can we close this?

Have not seen this for a while...


[Snyk] Security upgrade mongoose from 4.2.4 to 8.8.3

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):

package.json
package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Improper Neutralization of Special Elements in Data Query Logic SNYK-JS-MONGOOSE-8446504
  167

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Improper Neutralization of Special Elements in Data Query Logic

:no_entry: Snyk checks have failed. 48 issues have been found so far.

Icon
Severity
Issues

Critical
2

High
46

Medium
0

Low
0

:no_entry: security/snyk check is complete. 48 issues have been found. (View Details)
:white_check_mark: license/snyk check is complete. No issues have been found. (View Details)

:tada: Snyk checks have passed. No issues have been found so far.
:white_check_mark: security/snyk check is complete. No issues have been found. (View Details)
:white_check_mark: license/snyk check is complete. No issues have been found. (View Details)


Ensure that broker plugin logs exception if connector fails.

Type of change

Bugfix

Description
The scheduledExecutorService provided by Artemis does not log exceptions throws by submitted runnable.  This change ensure that any exception are logged by the plugin.
Also changed executors created by the plugin to log any exceptions thrown by submitted runnables.
Checklist

[ ] Update/write design documentation in ./documentation/design
[ ] Write tests and make sure they pass
[ ] Update documentation
[ ] Check RBAC rights for Kubernetes / OpenShift roles
[ ] Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
[ ] Reference relevant issue(s) and close them after merging
[ ] Update CHANGELOG.md

@enmasse-ci run tests profile=isolated

:x: Test Summary :x:
TEST_PROFILE: isolated
TEST_CASE:
TOTAL: 163
PASS: 150
FAIL: 7
SKIP: 6
BUILD_NUMBER: 917
BUILD_ENV: oc cluster up
:heavy_exclamation_mark: Test Failures :heavy_exclamation_mark:

testCreateInfra in io.enmasse.systemtest.isolated.infra.standard.InfraTestStandard
testIncrementInfra in io.enmasse.systemtest.isolated.infra.standard.InfraTestStandard
testDecrementInfra in io.enmasse.systemtest.isolated.infra.standard.InfraTestStandard
testRestartBroker in io.enmasse.systemtest.isolated.bridging.ConnectorsTest
testConnectorMutualTLS in io.enmasse.systemtest.isolated.bridging.ConnectorsTest
testAccessLogs in io.enmasse.systemtest.isolated.CommonTest
testAddressQueries in io.enmasse.systemtest.isolated.monitoring.MonitoringTest


Add adverts & demands to StellarMessage for pull mode

XDR change for https://github.com/stellar/stellar-core/pull/3479

you have a merge commit in there that needs to be removed before we can merge

When you hit the green button in this repo GitHub will squash this PR into a single commit, so no need to rewrite the history of this PR before merging.

you have a merge commit in there that needs to be removed before we can merge

When you hit the green button in this repo GitHub will squash this PR into a single commit, so no need to rewrite the history of this PR before merging.

The problem with merge commits is that they are not reviewable from the Github UI (at least it was a few years ago): it's possible that that commit contains bad merges for example that would end up in the main branch.


self.driver throws error if root throws NoSuchElementException

Right now if you initialize a View with a callable then try to access self.driver without the self.root being available then a NoSuchElementException is thrown. This is because the driver is derived from the root element. A better error would be to throw a more meaningful error.

[x] Implement
[x] Write tests

Done


Added support for JMESPath solving #1315

Added support for JMESPath solving #1315

Coverage remained the same at 100.0% when pulling 11b8beceacd159eae896e0cbc0609d745eb613c7 on waldekmastykarz:jmes-query into 8355ae12e5fa0c9e6b18d8d9a9312a27075159b7 on pnp:dev.


Hello, thank you for providing the code！ Could you please provide the name of the paper? Thank you!

Thank you much, I have  updated now.


⚠ Redacted has degraded performance

In 8541f3d, Redacted ($RED) experienced degraded performance:

HTTP code: 200
Response time: 2047 ms

Resolved: Redacted performance has improved in 22fb611.


Issue with Agency filter on Home

I go to Home and filter Agency to Gesis - the system works and filters out CVs of GESIS. I click on one GESIS vocabulary and then go back on Home, I try to filter again the Agency to Gesis and it does not work - the result shows all CVs.
@Stifo

@MajaDolinar probably you need to index agencies. But we don't have the rights for that on production cluster.

@matthew-morris-cessda could you look at this please?

I can reproduce the issue. It looks like the filter isn't applying correctly. Refreshing the page causes the page to look as expected.
When reproducing the issue the following is logged in the browser console
ERROR TypeError: t.sort.split is not a function
    t https://vocabularies.cessda.eu/main-es2015.050e6681a22f60c9ecc0.js:1
    __tryOrUnsub https://vocabularies.cessda.eu/main-es2015.050e6681a22f60c9ecc0.js:1
    next https://vocabularies.cessda.eu/main-es2015.050e6681a22f60c9ecc0.js:1
    _next https://vocabularies.cessda.eu/main-es2015.050e6681a22f60c9ecc0.js:1
    next https://vocabularies.cessda.eu/main-es2015.050e6681a22f60c9ecc0.js:1
    _subscribe https://vocabularies.cessda.eu/main-es2015.050e6681a22f60c9ecc0.js:1
    _trySubscribe https://vocabularies.cessda.eu/main-es2015.050e6681a22f60c9ecc0.js:1
    _trySubscribe https://vocabularies.cessda.eu/main-es2015.050e6681a22f60c9ecc0.js:1
    subscribe https://vocabularies.cessda.eu/main-es2015.050e6681a22f60c9ecc0.js:1
    t https://vocabularies.cessda.eu/main-es2015.050e6681a22f60c9ecc0.js:1
    fac https://vocabularies.cessda.eu/main-es2015.050e6681a22f60c9ecc0.js:1

The production builds of CVS are minified, hence why t is a variable name, but if this can be reproduced locally then this should be debuggable.


Add clearly visible "feedback" and "contribute" links to every example page

I think a good way to do this is in the static-site generation using Roc. That way it will be there automatically and we don't need to add it manually in the README files.

Yep, sounds good!


How about intoducing auto-roll for output window

When a calculation sheet is long, especially when there is #pause and #input, the auto-roll of output window could be very helpful.

Do you mean to scroll automatically to the bottom? Can you please specify what does "auto-roll" mean and how it is supposed to work? I am not quite sure about it.

Do you mean to scroll automatically to the bottom? Can you please specify what does "auto-roll" mean and how it is supposed to work? I am not quite sure about it.
Yes,.scroll to when it pause or stop calculation.

Do you mean to scroll automatically to the bottom? Can you please specify what does "auto-roll" mean and how it is supposed to work? I am not quite sure about it.

Yes, scroll to where the calculation pause or stop.

Yes, it is possible, but what if the user wants to review the results from the beginning. Then he/she will need to scroll back each time. We discussed this some time ago and decided that the best is to preserve the scroll at the same place after each calculation. I work like this from a while and it is very convenient for most cases.
Probably, if any automatic scroll is introduced, it should be selectable by a checkbox.

d, it should be selectable by a checkbox.

Since #pause and #input are incurred now, I think it would be more convenient to auto-scroll to the recent output to interact with the calculation. Maybe it's advisable to make this selective for the users or let it be triggered by some keywords, i.e. #pause and #input,etc.

Yes, it is possible, but what if the user wants to review the results from the beginning. Then he/she will need to scroll back each time. We discussed this some time ago and decided that the best is to preserve the scroll at the same place after each calculation. I work like this from a while and it is very convenient for most cases.
Probably, if any automatic scroll is introduced, it should be selectable by a checkbox.

Also, it there are some errors in the source code, it would be instant to find the errors, this may call the output window and the source window to scroll simutaneously.

OK, maybe on #pause and #input would be more convenient to scroll down to the end (the breakpoint) but I need to play a little bit more to see how it feels. :)
Thank you for your suggestion! :)

OK, maybe on #pause and #input would be more convenient to scroll down to the end (the breakpoint) but I need to play a little bit more to see how it feels. :)
Thank you for your suggestion! :)

BTW,I think to see the output.and sourcecode window content to scroll is a cool feeling.


[BUG] don't store intermediate value into kvs when transitioning

Reproduction steps

run some command like move-to-level with a non-zero transition time
the intermediate values will be persisted in the kvs
this can be undesirable for the following reasons

writing to kvs (typically an external flash on many platforms) can be time consuming and will affect the timing accuracy
reduce the lifetime of the flash significantly, for eg moving from 1 to 254 will require 253 writes into the flash

Bug prevalence
always
GitHub hash of the SDK that was being used
ad5253ace34269d07ca8afbd984aec319903ac56
Platform
other
Platform Version(s)
No response
Anything else?
No response

@step0035 This is why https://github.com/project-chip/connectedhomeip/blob/master/src/app/DeferredAttributePersistenceProvider.h exists, right?  So you can choose how often you write these, etc.


Observability task: interface level dashboard production

[ ] I have searched the issues of this repository and believe that this is not a duplicate.

Describe the proposal

EN: At present, the dashboard can query the application information and service information under the current application through the application name. This granularity cannot accurately query the data of an interface level. It is necessary to add a dashboard for the data of the interface level to query the specific indicator data of an interface level
中文： 目前dashboard中可以通过应用名字查询当前应用下的应用信息和服务信息，这种粒度无法精确的查询某一个接口级的数据，需要为接口级的数据增加一个dashboard来查询某个接口级的具体的指标数据
dashboard link:http://<IP_ADDRESS>:3000/dashboards
read/123456

接口级数据具体要查询哪些指标可以说一下么

Can you explain in detail what indicators are included in the specific indicator data at the interface level?

Can you explain in detail what indicators are included in the specific indicator data at the interface level?

Currently, the data queried by application is mainly the aggregated data at the application level. We need to query the QPS, success rate, failure rate and response time of the current service on each IP address through the application name and interface in more detail

We need to add application name and interface information query or add ip query for the dashboard

我們需要為dashboard添加應用名稱和接口信息查詢或者添加ip查詢

Ok, I need time to sort out the current implementation details

I need time to sort out the current implementation details

ok ，Let's see how to improve it later

plz assign me too i want to try this

ok


small fixes

right mouse in process modeller for windows not working
screen is not showing button in explain usecase because content is too big/overflow. can be tested with simple process - 1 acitivity

right mouse; must be fixed in the GLSP process editor which is hard to supply for all ivy versions that the ChatGPT assistant currently supports -> so I'd opt for a 'chat-gpt' button in the generic toolbar menu of the IDE. Or if that doesn't work, contribute it to the normal menu.

improved: all your features should work with the next version https://github.com/axonivy-market/openai-connector/pull/29

done: released as chatGpt.assistance:10.0.6 -> https://market.axonivy.com/openai-assistant


⚠ Samsung has degraded performance

In aa2cedc, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2310 ms

Resolved: Samsung performance has improved in 4ea01c7.


math: when use math.Modf get frac then conver int/int64 is inaccurate

What version of Go are you using (go version)?

$ go version
go version go1.20.4 windows/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\ksj\AppData\Local\go-build
set GOENV=C:\Users\ksj\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=D:\programdata\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\programdata\go
set GOPRIVATE=
set GOPROXY=https://goproxy.cn,direct
set GOROOT=D:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=D:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.20.4
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=D:\conero\repository\conero\uymas\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\ksj\AppData\Local\Temp\go-build253827529=/tmp/go-build -gno-record-gcc-switches

What did you do?

https://go.dev/play/p/phY1f6R4OU6
package main

import (
	"fmt"
	"math"
)

func main() {
	var fl float64 = 1.000000
	fmt.Printf("fl -> %d\n", int(fl))

	//cover
	fl = 3.01
	val, frac := math.Modf(fl)
	fracExt := frac * 100
	fmt.Printf("fl: %f => (%f, %f); (%d, %d)\n",
		fl, val, fracExt, int(val), int(fracExt))
}

What did you expect to see?
The calculated result '1.000000' should be 1 instead of 0
fracExt := frac * 100
//int(fracExt) --> int: 1 not 0

What did you see instead?
fl -> 1
fl: 3.010000 => (3.000000, 1.000000); (3, 0)

fracExt is 0.9999999999999787 which is rounded down to 0 when converting to int. Playground


[SPARK-34380][SQL] Support ifExists for ALTER TABLE ... UNSET TBLPROPERTIES for v2 command

What changes were proposed in this pull request?

This PR proposes to support ifExists flag for v2 ALTER TABLE ... UNSET TBLPROPERTIES command. Currently, the flag is not respected and the command behaves as ifExists = true where the command always succeeds when the properties do not exist.
Why are the changes needed?

To support ifExists flag and align with v1 command behavior.
Does this PR introduce any user-facing change?

Yes, now if the property does not exist and IF EXISTS is not specified, the command will fail:
ALTER TABLE t UNSET TBLPROPERTIES ('unknown') // Fails with "Attempted to unset non-existent property 'unknown'"
ALTER TABLE t UNSET TBLPROPERTIES IF EXISTS ('unknown') // OK

How was this patch tested?

Added new test

Test build #134941 has started for PR 31494 at commit 0065170.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39524/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39524/

Test build #134944 has started for PR 31494 at commit c757b6d.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39524/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39527/

Test build #134945 has started for PR 31494 at commit dbbde92.

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39527/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39528/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134944/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39527/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39528/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39528/

Test build #134941 has finished for PR 31494 at commit 0065170.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

cc @cloud-fan @MaxGekk

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134941/

Test build #134945 has finished for PR 31494 at commit dbbde92.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/134945/

Test build #135044 has started for PR 31494 at commit 5063e4e.

Test build #135043 has started for PR 31494 at commit 8b5508b.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39626/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39627/

Test build #135044 has finished for PR 31494 at commit 5063e4e.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/135044/

Test build #135043 has finished for PR 31494 at commit 8b5508b.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/135043/

Test build #135058 has started for PR 31494 at commit 8e4871a.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39640/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39640/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39640/

Test build #135058 has finished for PR 31494 at commit 8e4871a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/135058/

Test build #135110 has started for PR 31494 at commit 5438c55.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39692/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/39692/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/39692/

Test build #135110 has finished for PR 31494 at commit 5438c55.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/135110/


python311Packages.pyvo: 1.5.1 -> 1.5.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.pyvo is: Astropy affiliated package for accessing Virtual Observatory data and services
meta.homepage for python311Packages.pyvo is: https://github.com/astropy/pyvo
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.5.2 with grep in /nix/store/1x8x3njqsxg10wxvl1as4mzzwgw6953g-python3.11-pyvo-1.5.2
found 1.5.2 in filename of file in /nix/store/1x8x3njqsxg10wxvl1as4mzzwgw6953g-python3.11-pyvo-1.5.2

Rebuild report (if merged into master) (click to expand)

5 total rebuild path(s)

5 package rebuild(s)

First fifty rebuilds by attrpath

python311Packages.astroquery
python311Packages.pyvo
python312Packages.astroquery
python312Packages.pyvo

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/1x8x3njqsxg10wxvl1as4mzzwgw6953g-python3.11-pyvo-1.5.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.pyvo https://github.com/r-ryantm/nixpkgs/archive/3c8db5e2c33b1eb5ad8be22b9e3d6fad39b3fee2.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/3c8db5e2c33b1eb5ad8be22b9e3d6fad39b3fee2#python311Packages.pyvo

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/1x8x3njqsxg10wxvl1as4mzzwgw6953g-python3.11-pyvo-1.5.2
ls -la /nix/store/1x8x3njqsxg10wxvl1as4mzzwgw6953g-python3.11-pyvo-1.5.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

2 packages failed to build:

python312Packages.astroquery
python312Packages.astroquery.dist

6 packages built:

python311Packages.astroquery
python311Packages.astroquery.dist
python311Packages.pyvo
python311Packages.pyvo.dist
python312Packages.pyvo
python312Packages.pyvo.dist

Maintainer pings
cc @smaret for testing.

Result of nixpkgs-review pr 314677 at 3c8db5e2 run on aarch64-darwin 1

1 package failed to build:

python312Packages.astroquery

3 packages built successfully:

python311Packages.astroquery
python311Packages.pyvo
python312Packages.pyvo

Result of nixpkgs-review pr 314677 run on aarch64-darwin 1

2 packages failed to build:

python312Packages.astroquery
python312Packages.astroquery.dist

6 packages built:

python311Packages.astroquery
python311Packages.astroquery.dist
python311Packages.pyvo
python311Packages.pyvo.dist
python312Packages.pyvo
python312Packages.pyvo.dist

Result of nixpkgs-review pr 314677 run on aarch64-linux 1

2 packages failed to build:

python312Packages.astroquery
python312Packages.astroquery.dist

6 packages built:

python311Packages.astroquery
python311Packages.astroquery.dist
python311Packages.pyvo
python311Packages.pyvo.dist
python312Packages.pyvo
python312Packages.pyvo.dist

Issue for python311.astroquery build failure: #315068


GeoJSON datasource crashes (EllipsoidRhumbLine ..issue)

I have noticed this issue a few days ago when I got this error when loading a set of polygons as GeoJSON datasource type:
DeveloperError: EllipsoidRhumbLine must have distinct start and end set.
Apparently this error has been spotted before in May-2019: https://github.com/AnalyticalGraphicsInc/cesium/issues/7864
It was something that was okay in 1.53 version, but it fails in newer versions.
It can be fixed by changing the ArcType to GEODESIC,
Is there any way within the GeoJSON component to change that inside? I haven't found any property related to that in the GeoJsonDataSource component.
What would be then the easiest here?
Thanks,

How about this?
<GeoJonDataSource
  data={}
  onLoad={ds => {
    ds.entities.map(e => { e.polygon.arcType = Cesium.ArcType.GEODESIC; });
  }} />

Well, the thing is that the Geojson datasource loads okay using just Cesium 1.53 (without resium). See below:

But, when using that version in the package.json file: "cesium": "^1.53", the problem doesn't go away.
By the way, in your example, is 'ds' a variable where to load the URL of the geojson?
Thanks,

By the way, this is the GEOJson in question if anyone wants to test it (please rename .PDF to .json)
features.PDF

Apparently the solution in Cesium would be:
var geoJSON = Cesium.GeoJsonDataSource.load( 'path_to_file', {
stroke: Cesium.Color.HOTPINK,
fill: Cesium.Color.PINK.withAlpha(0.5),
strokeWidth: 3
});
geoJSON.then(function(data){
// Change the arcType to GEODESIC, which is what it was in CesiumJS 1.53.
for (var i = 0; i < data.entities.values.length; i++) {
var entity = data.entities.values[i];
if (Cesium.defined(entity.polygon)) {
// entity.polygon.arcType = Cesium.ArcType.GEODESIC;
}
}
viewer.dataSources.add(data);
});
But how that could be put into our Resium?

Update: Apparently the dataset (.json) had self-intersecting polygons. I have fixed this, so now Cesium doesn't crash (it doesn't show that error message), but it is not solved as Cesium doesn't render the polygons correctly. Have a look at the attached picture. It draws artifacts. It could be related to that ArcType parameter as well. I don't know.

I tried that with resium v1.9.0-beta.0 and cesium v1.63.1 and it seems to work.

import { Viewer, GeoJsonDataSource } from "resium";
import data from "./features.json";

const Component = () => {
  const ref = useRef(null);

  return (
    <Viewer full ref={ref}>
      <GeoJsonDataSource
        data={data}
        onLoad={d => ref.current?.cesiumElement?.zoomTo(d)} />
    </Viewer>
  );
};

If the problem persists in the latest version, reopen this issue.

Thanks, I will do
El mié., 4 dic. 2019 4:57, rot1024<EMAIL_ADDRESS>escribió:

If the problem persists in the latest version, reopen this issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/darwin-education/resium/issues/115?email_source=notifications&email_token=AFRQ4HMOWMGGZHFVV3363MLQW42CZA5CNFSM4ITF4YTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF3XKKY#issuecomment-561476907,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFRQ4HLHS5XD4D3FDYORHXTQW42CZANCNFSM4ITF4YTA
.