Error, Check the render method of CircularIndeterminate.

https://github.com/mui-org/material-ui/blob/303199d39b42a321d28347d8440d69166f872f27/docs/src/pages/demos/progress/CircularIndeterminate.js#L13
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of `CircularIndeterminate`.
invariant
node_modules/fbjs/lib/invariant.js:42
getFiberTagFromObjectType
node_modules/react-dom/cjs/react-dom.development.js:9647
createFiberFromElement
node_modules/react-dom/cjs/react-dom.development.js:9607
createChild
node_modules/react-dom/cjs/react-dom.development.js:11978
reconcileChildrenArray
node_modules/react-dom/cjs/react-dom.development.js:12229
reconcileChildFibers
node_modules/react-dom/cjs/react-dom.development.js:12542
reconcileChildrenAtExpirationTime
node_modules/react-dom/cjs/react-dom.development.js:12902
reconcileChildren
node_modules/react-dom/cjs/react-dom.development.js:12893
updateHostComponent
node_modules/react-dom/cjs/react-dom.development.js:13232
beginWork
node_modules/react-dom/cjs/react-dom.development.js:13719
performUnitOfWork
node_modules/react-dom/cjs/react-dom.development.js:15741
workLoop
node_modules/react-dom/cjs/react-dom.development.js:15780
renderRoot
node_modules/react-dom/cjs/react-dom.development.js:15820
performWorkOnRoot
node_modules/react-dom/cjs/react-dom.development.js:16437
performWork
node_modules/react-dom/cjs/react-dom.development.js:16358
performSyncWork
node_modules/react-dom/cjs/react-dom.development.js:16330
requestWork
node_modules/react-dom/cjs/react-dom.development.js:16230
scheduleWork$1
node_modules/react-dom/cjs/react-dom.development.js:16096
scheduleRootUpdate
node_modules/react-dom/cjs/react-dom.development.js:16663
updateContainerAtExpirationTime
node_modules/react-dom/cjs/react-dom.development.js:16690
updateContainer
node_modules/react-dom/cjs/react-dom.development.js:16717
./node_modules/react-dom/cjs/react-dom.development.js/ReactRoot.prototype.render
node_modules/react-dom/cjs/react-dom.development.js:17000
legacyRenderSubtreeIntoContainer/<
node_modules/react-dom/cjs/react-dom.development.js:17140
unbatchedUpdates
node_modules/react-dom/cjs/react-dom.development.js:16557
legacyRenderSubtreeIntoContainer
node_modules/react-dom/cjs/react-dom.development.js:17136
render
node_modules/react-dom/cjs/react-dom.development.js:17195
./src/index.js
src/index.js:7

   4 | import App from './App';
   5 | import registerServiceWorker from './registerServiceWorker';
   6 |
>  7 | ReactDOM.render(<App />, document.getElementById('root'));
   8 | registerServiceWorker();
   9 |
  10 |

__webpack_require__
/app/frontclient/webpack/bootstrap 621b8005d53d7fe7c8da:678
fn
/app/frontclient/webpack/bootstrap 621b8005d53d7fe7c8da:88
[0]
http://<IP_ADDRESS>:3000/static/js/bundle.js:108286:18
__webpack_require__
/app/frontclient/webpack/bootstrap 621b8005d53d7fe7c8da:678
(anonymous function)
/app/frontclient/webpack/bootstrap 621b8005d53d7fe7c8da:724
(anonymous function)
http://<IP_ADDRESS>:3000/static/js/bundle.js:1:11

Your issue has been closed because it does not conform to our issue requirements.
Please provide a full reproduction test case. This would help a lot 👷 .
A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!

I just updated to material-ui/core .. it was working in the material-ui library .. it is hard to track down exactly what it is .. I have no errors when compiling only when running

@oliviertassinari
here, this component gives this error
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Card, { CardContent, CardMedia } from '@material-ui/core/Card';
import Typography from '@material-ui/core/Typography';

const styles = theme => ({
  card: {
    display: 'flex',
    paddingBottom: theme.spacing.unit,
  },
  details: {
    display: 'flex',
    flexDirection: 'column',
  },
  content: {
    flex: '1 0 auto',
  },
  cover: {
    width: 151,
    height: 151,
  },
  controls: {
    display: 'flex',
    alignItems: 'center',
    paddingLeft: theme.spacing.unit,
    paddingBottom: theme.spacing.unit,
  },
});

function ProductCard(props) {
  const { classes, theme, edge } = props;

  return (

      <Card className={classes.card}>
        <CardMedia
          className={classes.cover}
          image="/static/images/cards/live-from-space.jpg"
          title="Live from space album cover"
        />

          <CardContent className={classes.content}>
            <Typography type="headline">{edge.node.title}</Typography>
            <Typography type="subheading" color="secondary">
              {edge.node.description}
            </Typography>
          </CardContent>

      </Card>

  );
}

ProductCard.propTypes = {
  classes: PropTypes.object.isRequired,
  theme: PropTypes.object.isRequired,
};

export default withStyles(styles, { withTheme: true })(ProductCard);

Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at DrawerList.js:17.
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at DrawerList.js:20.
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at DrawerList.js:16.
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at DrawerList.js:25.
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at DrawerList.js:28.
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at DrawerList.js:24.
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at DrawerList.js:33.
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at DrawerList.js:36.
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at DrawerList.js:32.
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at DrawerList.js:40.
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at DrawerList.js:43.
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at DrawerList.js:39.
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at topbar.js:97.
    in TopBar (created by WithStyles(TopBar))
    in WithStyles(TopBar) (at App.js:46)
    in div (at App.js:45)
    in div (at App.js:44)
    in Router (created by BrowserRouter)
    in BrowserRouter (at App.js:43)
    in ApolloProvider (at App.js:42)
    in App (created by WithStyles(App))
    in WithStyles(App) (at index.js:7)
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at topbar.js:98.
    in TopBar (created by WithStyles(TopBar))
    in WithStyles(TopBar) (at App.js:46)
    in div (at App.js:45)
    in div (at App.js:44)
    in Router (created by BrowserRouter)
    in BrowserRouter (at App.js:43)
    in ApolloProvider (at App.js:42)
    in App (created by WithStyles(App))
    in WithStyles(App) (at index.js:7)
bundle.js:87747:16
Warning: Failed prop type: Invalid prop `color` of value `contrast` supplied to `IconButton`, expected one of ["default","inherit","primary","secondary"].
    in IconButton (created by WithStyles(IconButton))
    in WithStyles(IconButton) (at topbar.js:62)
    in div (created by Toolbar)
    in Toolbar (created by WithStyles(Toolbar))
    in WithStyles(Toolbar) (at topbar.js:61)
    in header (created by Paper)
    in Paper (created by WithStyles(Paper))
    in WithStyles(Paper) (created by AppBar)
    in AppBar (created by WithStyles(AppBar))
    in WithStyles(AppBar) (at topbar.js:60)
    in TopBar (created by WithStyles(TopBar))
    in WithStyles(TopBar) (at App.js:46)
    in div (at App.js:45)
    in div (at App.js:44)
    in Router (created by BrowserRouter)
    in BrowserRouter (at App.js:43)
    in ApolloProvider (at App.js:42)
    in App (created by WithStyles(App))
    in WithStyles(App) (at index.js:7)
bundle.js:87747:16
Warning: Failed prop type: The prop `open` is marked as required in `Menu`, but its value is `undefined`.
    in Menu (created by WithStyles(Menu))
    in WithStyles(Menu) (at topbar.js:68)
    in span (created by IconButton)
    in button (created by ButtonBase)
    in ButtonBase (created by WithStyles(ButtonBase))
    in WithStyles(ButtonBase) (created by IconButton)
    in IconButton (created by WithStyles(IconButton))
    in WithStyles(IconButton) (at topbar.js:62)
    in div (created by Toolbar)
    in Toolbar (created by WithStyles(Toolbar))
    in WithStyles(Toolbar) (at topbar.js:61)
    in header (created by Paper)
    in Paper (created by WithStyles(Paper))
    in WithStyles(Paper) (created by AppBar)
    in AppBar (created by WithStyles(AppBar))
    in WithStyles(AppBar) (at topbar.js:60)
    in TopBar (created by WithStyles(TopBar))
    in WithStyles(TopBar) (at App.js:46)
    in div (at App.js:45)
    in div (at App.js:44)
    in Router (created by BrowserRouter)
    in BrowserRouter (at App.js:43)
    in ApolloProvider (at App.js:42)
    in App (created by WithStyles(App))
    in WithStyles(App) (at index.js:7)
bundle.js:87747:16
Warning: Failed prop type: The prop `open` is marked as required in `Popover`, but its value is `undefined`.
    in Popover (created by WithStyles(Popover))
    in WithStyles(Popover) (created by Menu)
    in Menu (created by WithStyles(Menu))
    in WithStyles(Menu) (at topbar.js:68)
    in span (created by IconButton)
    in button (created by ButtonBase)
    in ButtonBase (created by WithStyles(ButtonBase))
    in WithStyles(ButtonBase) (created by IconButton)
    in IconButton (created by WithStyles(IconButton))
    in WithStyles(IconButton) (at topbar.js:62)
    in div (created by Toolbar)
    in Toolbar (created by WithStyles(Toolbar))
    in WithStyles(Toolbar) (at topbar.js:61)
    in header (created by Paper)
    in Paper (created by WithStyles(Paper))
    in WithStyles(Paper) (created by AppBar)
    in AppBar (created by WithStyles(AppBar))
    in WithStyles(AppBar) (at topbar.js:60)
    in TopBar (created by WithStyles(TopBar))
    in WithStyles(TopBar) (at App.js:46)
    in div (at App.js:45)
    in div (at App.js:44)
    in Router (created by BrowserRouter)
    in BrowserRouter (at App.js:43)
    in ApolloProvider (at App.js:42)
    in App (created by WithStyles(App))
    in WithStyles(App) (at index.js:7)
bundle.js:87747:16
Warning: Failed prop type: The prop `open` is marked as required in `Modal`, but its value is `undefined`.
    in Modal (created by WithStyles(Modal))
    in WithStyles(Modal) (created by Popover)
    in Popover (created by WithStyles(Popover))
    in WithStyles(Popover) (created by Menu)
    in Menu (created by WithStyles(Menu))
    in WithStyles(Menu) (at topbar.js:68)
    in span (created by IconButton)
    in button (created by ButtonBase)
    in ButtonBase (created by WithStyles(ButtonBase))
    in WithStyles(ButtonBase) (created by IconButton)
    in IconButton (created by WithStyles(IconButton))
    in WithStyles(IconButton) (at topbar.js:62)
    in div (created by Toolbar)
    in Toolbar (created by WithStyles(Toolbar))
    in WithStyles(Toolbar) (at topbar.js:61)
    in header (created by Paper)
    in Paper (created by WithStyles(Paper))
    in WithStyles(Paper) (created by AppBar)
    in AppBar (created by WithStyles(AppBar))
    in WithStyles(AppBar) (at topbar.js:60)
    in TopBar (created by WithStyles(TopBar))
    in WithStyles(TopBar) (at App.js:46)
    in div (at App.js:45)
    in div (at App.js:44)
    in Router (created by BrowserRouter)
    in BrowserRouter (at App.js:43)
    in ApolloProvider (at App.js:42)
    in App (created by WithStyles(App))
    in WithStyles(App) (at index.js:7)
bundle.js:87747:16
./src/App.js
  Line 2:   'Link' is defined but never used              no-unused-vars
  Line 10:  'classNames' is defined but never used        no-unused-vars
  Line 40:  'classes' is assigned a value but never used  no-unused-vars
  Line 40:  'theme' is assigned a value but never used    no-unused-vars
webpackHotDevClient.js:136
./src/screens/products/products.js
  Line 2:  'Link' is defined but never used  no-unused-vars
webpackHotDevClient.js:136
./src/screens/products/product.js
  Line 2:  'Link' is defined but never used  no-unused-vars
webpackHotDevClient.js:136
./src/components/Tables/withDelete.js
  Line 2:  'sortBy' is defined but never used  no-unused-vars
webpackHotDevClient.js:136
./src/screens/products/components/cards.js
  Line 32:  'theme' is assigned a value but never used  no-unused-vars
webpackHotDevClient.js:136
There were more warnings in other files.
You can find a complete log in the terminal.
webpackHotDevClient.js:130
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at cards.js:37.
    in ProductCard (created by WithStyles(ProductCard))
    in WithStyles(ProductCard) (at products.js:52)
    in div (at products.js:51)
    in div (at products.js:50)
    in AllProductsStub (created by Query)
    in Query (created by Apollo(AllProductsStub))
    in Apollo(AllProductsStub) (created by Route)
    in Route (at App.js:58)
    in Switch (at App.js:53)
    in main (at App.js:52)
    in div (at App.js:45)
    in div (at App.js:44)
    in Router (created by BrowserRouter)
    in BrowserRouter (at App.js:43)
    in ApolloProvider (at App.js:42)
    in App (created by WithStyles(App))
    in WithStyles(App) (at index.js:7)
bundle.js:87747:16
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at cards.js:43.
    in ProductCard (created by WithStyles(ProductCard))
    in WithStyles(ProductCard) (at products.js:52)
    in div (at products.js:51)
    in div (at products.js:50)
    in AllProductsStub (created by Query)
    in Query (created by Apollo(AllProductsStub))
    in Apollo(AllProductsStub) (created by Route)
    in Route (at App.js:58)
    in Switch (at App.js:53)
    in main (at App.js:52)
    in div (at App.js:45)
    in div (at App.js:44)
    in Router (created by BrowserRouter)
    in BrowserRouter (at App.js:43)
    in ApolloProvider (at App.js:42)
    in App (created by WithStyles(App))
    in WithStyles(App) (at index.js:7)
bundle.js:87747:16
The above error occurred in the
 component:
    in div (created by Paper)
    in Paper (created by WithStyles(Paper))
    in WithStyles(Paper) (created by Card)
    in Card (created by WithStyles(Card))
    in WithStyles(Card) (at cards.js:36)
    in div (at cards.js:35)
    in ProductCard (created by WithStyles(ProductCard))
    in WithStyles(ProductCard) (at products.js:52)
    in div (at products.js:51)
    in div (at products.js:50)
    in AllProductsStub (created by Query)
    in Query (created by Apollo(AllProductsStub))
    in Apollo(AllProductsStub) (created by Route)
    in Route (at App.js:58)
    in Switch (at App.js:53)
    in main (at App.js:52)
    in div (at App.js:45)
    in div (at App.js:44)
    in Router (created by BrowserRouter)
    in BrowserRouter (at App.js:43)
    in ApolloProvider (at App.js:42)
    in App (created by WithStyles(App))
    in WithStyles(App) (at index.js:7)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
bundle.js:87747:16
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of `ProductCard`.
invariant.js:42
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of `ProductCard`.

I fixed it .. it waas a bunch of imports that changed .. hmm, if only there where tools to auto correct import or if only the errors where more exact.

If only you had a look at the changelog. The import change is documented as well as the codemod to convert your codebase automatically.

I have been stuck on this exact same issue for about 4 hours now. Can't seem to find anything when Googling, even when looking for your mentioned "codemod" or with the clue that the error is caused due to import change. Would love to be pointed in the right direction.

I fixed the imports by searching the repo for each material-ui imported component I used and finding the correct way to import them from the result s

I did this as well but for some reason a couple of my components still get's exported as undefined. I think it has to do with withStyles since that seems to be the common denominator. I do this in the component that get exported as undefined:
export default compose(
	withRouter,
	withStyles(styles)
)(Navbar);

Did you have to change this somehow when upgrading to Material UI V1?

No, I did not have to do that

@t0mdicks0n Are you able to isolate the problem to a single module? Can I have a look at the imports?

For sure @oliviertassinari : https://gist.github.com/t0mdicks0n/f5b26761aed7133e5f89b2b0920a5077
I am sure it's me doing something wrong but it's hard to see what. Ty so much for quick reply!

@t0mdicks0n These imports are incorrect:
import MenuIcon from '@material-ui/icons/Menu';
import Menu, { MenuItem } from '@material-ui/core/Menu';

The codemod I'm referring to is here.

You are 100% right about that @oliviertassinari ! I changed that and the module got exported as expected. Ty so much!
What fooled me for anyone else reading this in the future was that I didn't get an import error in Webpack but then at runtime exported the whole module as undefined because of this. Will run the codemod.


[torii] exact starting block number

Describe the bug
If the exact block number of world deployment is provided, torii will fail with
ERROR tori_core::engine: Syncing to head. error=no rows returned by a query that expected to return at least one row
Expected behavior
The starting provided block should be indexed
Additional context
alpha-3

After investigation, --start-block doens't seem to be behaving incorrectly. On sepolia it does seem to resume at the correct block number from my tests and I believe the issue might be linked to something else;
The only time where the torii engine can panic because of a "no rows returned by a query" is when trying to fetch a model, which happens when an entity gets updated (store_set_record). So in my opinion, the starting block number was set to be after the world emitted the ModelRegistered events and thus, the store_set_record processors failed due to torii not catching those initial events


Converter to XML for mapping

As we're going to kill YAML driver for 2.0 let's provide users with a command to convert their mappings to XML. I suggest to make this feature exclusive for 1.3 as I'm not really willing to maintain this :) Left to do:

[x] finish index's partial filter expressions - needs to be migrated manually
[x] go through XSD AND XmlDriver once again to see if everything is covered - I believe it is
[x] actually save XMLs somewhere
[x] so far this is a brain dump, need to test the converter
[x] think about some unit tests - thought about it: naaah
[x] ask community to test the tool - https://twitter.com/malarzm/status/1057233251067150336
[x] add deprecation notice
[x] target 1.3.x branch once created

@malarzm what's the status here? Should we invite some of our users to test their tool and report their difference? I know there are a few cases that aren't covered (e.g. partialFilterExpressions in indexes) but I'm willing to overlook them for now.
We could maybe add some documentation on how to migrate from YAML to XML and ask people to test those steps and report back, what do you think?

I'll see if I'll manage to somehow compare the results today, but you're right. I'll find how I ran this command on my workstation, post instructions here and on Twitter

Instructions can be added in the docs and reference in the UPGRADE-2.0 document, WDYT?

Sorry for the lag, I was pulled into some old project at work :/
The command to run this is actually simple and would land in the bundle, but for the time being:
<?php

namespace App\Command;

use Doctrine\Bundle\MongoDBBundle\Command\DoctrineODMCommand;
use Doctrine\ODM\MongoDB\Tools\Console\Command\ConvertMappingToXmlCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

class DumpXmlCommand extends ConvertMappingToXmlCommand
{
    protected function configure()
    {
        parent::configure();
        $this
            ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.')
        ;
    }
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        DoctrineODMCommand::setApplicationDocumentManager($this->getApplication(), $input->getOption('dm'));
        return parent::execute($input, $output);
    }
}

@redthor would you mind giving this a spin?

It processed 133 of our YAML files without a failure!
Getting the XML files to run in our app will take a bit more work because we have our system broken into a number of packages...
I have received a Property id does not exist on a mapping file that uses the mapped-superclass facility. I'll have a look more into what is going on. But it might be worthwhile to continue with the PR in any case because there might be something wrong with my test. And it'll be easy to submit a fix if we find an issue when we actually switch over.
Thanks

That sounds really good, thanks for your help @redthor!

@alcaeus all is done here

I'm just now realising this will produce mapping files that cause deprecation notices (due to new id and field-name mappings). @malarzm do you want to revisit this?

@alcaeus can't really say when I'll have a moment to do so, if you'd have a minute please go ahead and take over here. If you don't I'll fix the issues as soon as I have some time on my hands to do so :)

Updated field-name and added support for id mappings. Also fixed a tiny inconsistency regarding name vs. field-name. Feel free to re-check this against your original mappings, I dumped the ones from the sandbox and they worked just fine.

LGTM, thank you!


Config clean

closes #246

I did not test, but it looks good to me!

Great link :-)

I'm also a big fan of the Volkswagen approach: https://github.com/auchenberg/volkswagen


Securing /api/**

Hey all!
I am having a bunch of endpoints into my /server/api folder and my main concern would be to only allow my front end to consume the data and no one else. Is it possible to achieve this behaviour using nuxt-security? If yes, may I see an example configuration?
Thank you very much!

Hey,
You should be able to use the CORS configuration that is coming by default with nuxt-security.
It will set an allowed-origins header to your server url (i.e. localhost:3000) so that only requests that are coming from your frontend (that is on the same domain and port) will be able to use the api endpoints. Other will receive the CORS error that their origin is not in the allowed origins array
Let me know if that answers your question :)

But generally, nuxt-security gives you much more than just CORS.
If you only need CORS and nothing more, you could just use the native H3 cors support. But this would require you to basically create what I have done in the module (a global middleware that would register this CORS handler).
 I have done this for you in the module. Just register the nuxt-security in modules array and you will get the same thing 😉
Thanks to that, only the request that are coming from your origin (the same host by default) will be accepted and others will be dropped.
For the test, run your application and then in another test application running on a different port, send a request to the first app. You will get the CORS error :)

Also, the approach of value/route is now deprecated. You can use it the easier way. Check put the docs! :)

If that worked for you, I think we can close this question.
Unless there are other questions related to that? :)

Also, if you will have any other questions, do not hesitate to ask them here.
I am always open for helping and discussions :)

Question about CORS: This can only be executed if the application has the "production" version? Or is it also possible to make some restrictions locally within the CORS Handler rules in nuxt-security module?
Because, in my case, when I making certain rules, as indicated in the CORS documentation, I noticed that in the browser in the "Network" tab, Access-Control-Allow-Origin: "*" is the default behavior of the local Nuxt 3 server, or did the module not apply? If this is the default behavior, how can I test the restrictions of requests from another domain?
Thank you for your response in advance :)


Testnet support in bip32

https://github.com/komputing/KEthereum/blob/3b69fde6d80ef6e80a632b756a93d5def5998179/bip32/src/main/kotlin/org/kethereum/bip32/model/Constants.kt#L10
The Testnet network could be supported in bip32's ExtendedKey deserialization:
internal val xprvTestnet = byteArrayOf(0x04, 0x88.toByte(), 0xAD.toByte(), 0xE4.toByte())
internal val xpubTestnet = byteArrayOf(0x04, 0x35.toByte(), 0x87.toByte(), 0xCF.toByte())

And it could be considered in XPriv.toExtendedKey() method:
    val hasPrivate = when {
        Arrays.equals(type, xprv) -> true
        Arrays.equals(type, xprvTestnet) -> true
        Arrays.equals(type, xpub) -> false
        Arrays.equals(type, xpubTestnet) -> false
        else -> throw KeyException("invalid magic number for an extended key")
    }

Thanks for the feedback. Pull requests are welcome. I think this is only relevant for Bitcoin right?

Sure, I'll work on it.
Yes, It's related to Bitcoin. But the Version Byte is part of the bip-0032 proposal.

great - looking forward to your PR

I tried my best in #68 , sorry for any mistakes in advanced.


c++ - support using x::y to import names in scopes

Not ready yet, there are many missing parts, wip.

Note: this is based on #41 , ignore commits coming from there

Note: there are already some test for type aliases in test/type_alias.hpp

The error line shows that the generated output and the expected one are different and it shows where the difference appear.

Maybe comment out the problematic example with a TODO comment such that the test pass?

Sorry. You already did it. I missed that.
So let @serge-sans-paille react.

Yes thatś what I did before squashing everything now. See: https://github.com/kleag/external-knowledge-codegen/pull/44/files#diff-35812d97fcba9e33627c7015c629552cf5200c45029f95e350099e00a060ac53R83

LGTM, cc @kleag


#1818 add sql.simple.length config

Fixes #1818 .
Changes proposed in this pull request:

add sql.simple.length for shard config
In sharding mode, if the length of logic SQL longer than the number, log will display in simple style to avoid too much content

Pull Request Test Coverage Report for Build 7289

3 of 18 (16.67%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 53.309%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

sharding-core/sharding-core-route/src/main/java/org/apache/shardingsphere/core/route/SQLLogger.java
0
15
0.0%

Totals

Change from base Build 7288:
-0.02%

Covered Lines:
8361

Relevant Lines:
15684

💛  - Coveralls

I will pull a request after fulfil requirement


Add PyCon Korea 2014 & 2015 videos

Fixes #27
Fixes #28

Closing in favor of https://github.com/pyvideo/data/pull/149


Extend length of command field to be able to take a custom command with several arguments

If you use a custom command which takes several arguments then the field for the command is too short because you have to provide:
  <argument 1> <argument 2> <argument 3>
This commit increases the length of the command field.

I don't see the point of this as custom commands have been removed in v1.1 :)


Adding simple react es6 lazy loading example

Showing off extractify with simple react and es6 example

CLA is valid!

👍


Cannot retrive all package versions owned by the authenticated use

Problem
In the current implementation we cannot retrieve all versions of a package for a user using the function PackageGetAllVersions present in the users_packages.go file.
The PackageGetAllVersions function has no parameters to allow pagination and retrieve all versions of a package, being limited to a return of 30 elements []*PackageVersion, which is the default value of the GitHub API.
Context
I'm creating a CLI tool to clean up my GitHub container packages and I find this limitation.
Code
// Getting all packages version
pkgVersions, _, err := client.Users.PackageGetAllVersions(ctx, name, "container", container)
if err != nil {
log.Fatal(err)
}
size := len(pkgVersions)

log.Infof("Package: %s", utils.DecodeParam(container))
log.Infof("We have %v versions in this package", size)

Results

Thank you, @lpmatos for the detailed report and PR!


Redirect on Login and Tenant Creation

Hi,
first I have to say that your stancl tenancy is awesome!
But I have two question:
Is it the best way to create a tenant register controller and then runs all migration (like user table etc.) after registration? I know that I can activate it in the config file and I can also redirect to their domain after registration. But how can I redirect a user after login to their domain?
Thanks!

But how can I redirect a user after login to their domain?

So you want the users to be able to login on your central domain (i.e. yourapp.com) and get redirected to their domain (i.e. tenant123.yourapp.com)?

Exactly.

In RegisterController (which uses RegistersUsers trait) you could customize create() to insert the tenant User and have it set the $this->redirectTo property to the full tenant URL, and then the default code of RegistersUsers will redirect them.

And regarding the redirect on login, I'd have to see how you identify the tenant based on the user account.
If the account exists both in your central app and inside the tenant app as some sort of superadmin, I think you should be able to use Laravel's auth inside the central app to see what tenant that user "is", and then you could probably use $tenant->run() to log the admin in, inside his application.
If the account exists only as part of the tenant table, this would be easier.
Please share more information about your set up and I'll try to come up with some code you could use.

And regarding the redirect on login, I'd have to see how you identify the tenant based on the user account.
If the account exists only as part of the tenant table, this would be easier.
Please share more information about your set up and I'll try to come up with some code you could use.

My Idea is to create a landing page where you create the tenant in the first step, than it runs the migration with the user table inside the tenant migration and in the second step the actual user registration happens.

I see. I've added a feature that lets you do this to a dev branch yesterday, so when 2.2.0 is out, you will be able to do that even if the migration is queued.

I see. I've added a feature that lets you do this to a dev branch yesterday, so when 2.2.0 is out, you will be able to do that even if the migration is queued.

You are awesome! Thanks so much!

Something like this works:
app/Http/Controllers/Auth/RegisterController.php:

    use RegistersUsers;

    protected $redirectTo = '/login'; // default was /home

    public function __construct()
    {
        $this->middleware('guest');
    }

    protected function validator(array $data)
    {
        return Validator::make($data, [
            'name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'string', 'email', 'max:255'],
            'password' => ['required', 'string', 'min:7', 'confirmed'],
            'domain' => ['required','unique:domains,domain'],
        ]);
    }

    public function register(Request $request)
    {
        $validated = $this->validator($request->all())->validate();

        $domain = $request->input('domain');
        // TODO: consider appending a tld suffix so the redirect makes sense

        $user = (new \App\Services\TenantSetup)->createAndReturnUser($domain, $validated);

        event(new Registered($user));

        return $this->registered($request, $user)
            ?: redirect('https://' . $domain . $this->redirectTo);
    }

/app/Services/TenantSetup.php:

namespace App\Services;

use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Log;

class TenantSetup
{
    public static function listTenants()
    {
        return tenancy()->all();
    }

    public function createAndReturnUser($domain, $requestFields)
    {
        config()->set('tenancy.migrate_after_creation', true);
        config()->set('tenancy.seed_after_migration', true);
        config()->set('tenancy.seeder_parameters', ['--class' => 'DatabaseSeeder']);

        $tenant = \Stancl\Tenancy\Tenant::create($domain, ['id' => $requestFields['domain']]);

        return $tenant->run(
            function ($tenant) use ($requestFields) {
                [$first] = explode(' ', $requestFields['name']);
                $last = substr($requestFields['name'], strlen($first));
                $user = \App\User::create([
                    'first' => $first,
                    'last' => $last,
                    'username' => $requestFields['email'],
                    'email' => $requestFields['email'],
                    'password' => Hash::make($requestFields['password']),
                    // OPTIONAL: 'primary_domain' => \strtoupper($requestFields['domain']),
                ]);

                // @TODO: if assigning roles/permissions, do that here too

                return $user;
            }
        );
    }
}

A saw the new release of 2.2.0.
Is there any documentation or "best practice" how to use the package in a saas style app?
For example:
On the landing site (myapp.com) the user can register and login.
When a new user signs up a new tenant gets created and the tenants migration runs with the user table and also the redirect to tenants dashboard happens.
I know how to do that. But how do you guys manage the user? Dou you have two users tables? Inside the main app and inside the tenant?
How is it possible to have a central login (myapp.com/login) with the correct redirect to the tenant domain when I have different user in the tenants user table? Do I have to loop trough all tenants do find the user email adress and redirect to this tenant domain?
I hope you understand what I mean.

When I was working on 2.2.0 I implemented this functionality into a test app like this:
Central app's action to register the tenant:
Tenant::new()->withDomains($domain)->withData([
    'admin_fullname' => $request->post('name'),
    'app_name' => $request->post('website_name'),
    'email' => $request->post('email'),
    'password' => Hash::make($request->post('password')),
    'primary_domain' => $domain,
    'post_registration_login_token' => $token,
    'initial_migration_complete' => false,
])->save();

return redirect()->route('_post_tenant_registration', ['token' => $token])->tenant($domain);

Tenant app:
Route::get('_post_tenant_registration/{token}', 'DashboardController@postTenantRegistration')->name('_post_tenant_registration');

// Controller
public function postTenantRegistration(string $token)
{
    if (! tenant('initial_migration_complete')) {
        return view('errors.building'); // we're building your site-type view
    }

    if (tenant('post_registration_login_token') === $token) {
        $user = User::where('email', tenant('email'))->firstOrFail();
        Auth::login($user, true);
        tenant()->deleteKey('post_registration_login_token');
    }

    return redirect()->route('admin.dashboard');
}

AppServiceProvider:
Tenancy::hook('database.creating', function (TenantManager $m, string $db, Tenant $tenant) {
    return [
        new AfterCreatingTenant($tenant->id)
    ];
});

AfterCreatingTenant job:
$tenant = tenancy()->find($this->tenantId);

$tenant->run(function ($tenant) {
    User::create(['name' => $tenant->admin_fullname, 'email' => $tenant->email, 'password' => $tenant->password, 'admin' => true]);
});

$tenant->deleteKey('admin_fullname');
$tenant->set('initial_migration_complete', true);

Does this help? :)

Thanks for your answer. This helps and thank you for for great package and support!
But I still have one question. How to you handle the problem when a user forgot his subdomain?
For example on Freshdesk (https://freshdesk.com/login) every user can enter his own email adress to get the subdomain.
Thanks!

You could do something like this:
public function submitLogin(Request $request)
{
    $this->validate($request, [
        'email' => 'required|email',
    ]);

    try {
        $domain = tenancy()->findByEmail($email = $request->post('email'))->primary_domain;
    } catch (TenantCouldNotBeIdentifiedException $e) {
        return redirect()->back()->withInput()->withErrors(["No website is associated with email $email."]);
    }

    return redirect()->route('admin.dashboard')->tenant($domain)->with('email', tenant('email'));
}

You could do something like this:
public function submitLogin(Request $request)
{
    $this->validate($request, [
        'email' => 'required|email',
    ]);

    try {
        $domain = tenancy()->findByEmail($email = $request->post('email'))->primary_domain;
    } catch (TenantCouldNotBeIdentifiedException $e) {
        return redirect()->back()->withInput()->withErrors(["No website is associated with email $email."]);
    }

    return redirect()->route('admin.dashboard')->tenant($domain)->with('email', tenant('email'));
}

But that would only work with the user how created the tenant, right? Because that email is stored within "withData" or does this search trough the tenants user tables?

This only searches in the tenant data. Searching in tenant databases comes with more complexity because the same email address can exist in multiple databases.

This only searches in the tenant data. Searching in tenant databases comes with more complexity because the same email address can exist in multiple databases.

I created a function wich search inside the tenants databases for the users email. I am just a developer in my spare time, but at least this code works for me.
/**
     * Forgot Domain
     */
    public function sendForgottenDomain(Request $request)
    {
        $request->validate([
            'email' => 'required|email',
        ]);

        $email = $request->input('email');

        $tenants = tenancy()->all();

        foreach($tenants as $tenant) {
            $tenant->run(function ($tenant) use ($email) {
                try {
                    $this->user = User::where('email', $email)->firstOrFail();
                } catch (ModelNotFoundException $e) {}
            });
            if(empty($this->user)) {
                return redirect()->back()->withError("The email does not exists");
            } else
            {
                return $this->user;
            }
        }
    }

Sure, if it makes sense for your app to lookup users in tenant DBs, this is the how you'd solve it.

Tenant::new()->withDomains($domain)->withData([
    'admin_fullname' => $request->post('name'),
    'app_name' => $request->post('website_name'),
    'email' => $request->post('email'),
    'password' => Hash::make($request->post('password')),
    'primary_domain' => $domain,
    'post_registration_login_token' => $token,
    'initial_migration_complete' => false,
])->save();

Good night, I'm loving your package.
Have a more detailed example? It is very well explained, but I don't know which instances, builders, I should start at the beginning of each file. Whenever I try to give a dump-autoload composer, the prompt raises an error ....
Could you send an example already with the instances and the builders?

What do you mean? The full class names?

When I was working on 2.2.0 I implemented this functionality into a test app like this:
Central app's action to register the tenant:
Tenant::new()->withDomains($domain)->withData([
    'admin_fullname' => $request->post('name'),
    'app_name' => $request->post('website_name'),
    'email' => $request->post('email'),
    'password' => Hash::make($request->post('password')),
    'primary_domain' => $domain,
    'post_registration_login_token' => $token,
    'initial_migration_complete' => false,
])->save();

return redirect()->route('_post_tenant_registration', ['token' => $token])->tenant($domain);

Tenant app:
Route::get('_post_tenant_registration/{token}', 'DashboardController@postTenantRegistration')->name('_post_tenant_registration');

// Controller
public function postTenantRegistration(string $token)
{
    if (! tenant('initial_migration_complete')) {
        return view('errors.building'); // we're building your site-type view
    }

    if (tenant('post_registration_login_token') === $token) {
        $user = User::where('email', tenant('email'))->firstOrFail();
        Auth::login($user, true);
        tenant()->deleteKey('post_registration_login_token');
    }

    return redirect()->route('admin.dashboard');
}

AppServiceProvider:
Tenancy::hook('database.creating', function (TenantManager $m, string $db, Tenant $tenant) {
    return [
        new AfterCreatingTenant($tenant->id)
    ];
});

AfterCreatingTenant job:
$tenant = tenancy()->find($this->tenantId);

$tenant->run(function ($tenant) {
    User::create(['name' => $tenant->admin_fullname, 'email' => $tenant->email, 'password' => $tenant->password, 'admin' => true]);
});

$tenant->deleteKey('admin_fullname');
$tenant->set('initial_migration_complete', true);

Does this help? :)

Do you have any example for v3?

When I was working on 2.2.0 I implemented this functionality into a test app like this:
Central app's action to register the tenant:
Tenant::new()->withDomains($domain)->withData([
    'admin_fullname' => $request->post('name'),
    'app_name' => $request->post('website_name'),
    'email' => $request->post('email'),
    'password' => Hash::make($request->post('password')),
    'primary_domain' => $domain,
    'post_registration_login_token' => $token,
    'initial_migration_complete' => false,
])->save();

return redirect()->route('_post_tenant_registration', ['token' => $token])->tenant($domain);

Tenant app:
Route::get('_post_tenant_registration/{token}', 'DashboardController@postTenantRegistration')->name('_post_tenant_registration');

// Controller
public function postTenantRegistration(string $token)
{
    if (! tenant('initial_migration_complete')) {
        return view('errors.building'); // we're building your site-type view
    }

    if (tenant('post_registration_login_token') === $token) {
        $user = User::where('email', tenant('email'))->firstOrFail();
        Auth::login($user, true);
        tenant()->deleteKey('post_registration_login_token');
    }

    return redirect()->route('admin.dashboard');
}

AppServiceProvider:
Tenancy::hook('database.creating', function (TenantManager $m, string $db, Tenant $tenant) {
    return [
        new AfterCreatingTenant($tenant->id)
    ];
});

AfterCreatingTenant job:
$tenant = tenancy()->find($this->tenantId);

$tenant->run(function ($tenant) {
    User::create(['name' => $tenant->admin_fullname, 'email' => $tenant->email, 'password' => $tenant->password, 'admin' => true]);
});

$tenant->deleteKey('admin_fullname');
$tenant->set('initial_migration_complete', true);

Does this help? :)

I know that this is old and all, but, will this still work on version 3 or do you have some sort of new implementation of this for version 3?

You can now use the impersonation logic for this, the sponsor docs have a pretty much copy-pasteable example.

You can now use the impersonation logic for this, the sponsor docs have a pretty much copy-pasteable example.

Thank you for the quick response. I did the sponsorship and you have to forgive me but this what I can afford for now.


Fix the build in preparation for some internal changes.

Checks are failing on a test flake, which needs to be fixed.


tofqdns-proxy-response-max-delay warning in CI

level=warning msg="Timed out waiting for datapath updates of FQDN IP information; returning response. Consider increasing --tofqdns-proxy-response-max-delay if this keeps happening." subsys=daemon

From: https://github.com/cilium/cilium/actions/runs/11800233947/job/32871040620.
This happens from time to time in the end-to-end workflow and a lot more often in the External Workload workflow.
EDIT: I was incorrect. In the External Workload workflow, it's a different FQDN warning.

If you're fixing this, don't forget to remove the exception from the list: https://github.com/cilium/cilium/blob/21ad13700b0f295e4997ffe4d204a9dbcd4cf309/cilium-cli/connectivity/tests/errors.go#L55


Skip profile validation when not necessary

When running dbt deps, dbt will first call the profile validation code. As dbt deps does not actually use the profile for anything, it should not actually need to validate the profile, or even check if one exists. Other commands such as dbt clean can benefit from this as well.
Example use case:
Calling dbt deps as part of docker build, at which point the environment variables are not yet set (they are only set at runtime)

Thanks for the report @elexisvenator!

This was actually fixed as part of #973, I did not realize there was a separate issue for this!


Unknown file extension ".json"

I'm having the following error when I try to run yarn build:
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".json" for /home/user/nostr_stuff/nblog/package.json

I've run the instructions as in in the README.md page.
$ yarn
yarn install v1.22.19
warning ../../../package.json: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 29.06s.

$ yarn build
yarn run v1.22.19
warning ../../../package.json: No license field
$ vite build
▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]

    tsconfig.json:2:12:
      2 │   "extends": "./.svelte-kit/tsconfig.json",
        ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error during build:
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".json" for /home/user/nostr_stuff/nblog/package.json
    at new NodeError (node:internal/errors:371:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:87:11)
    at defaultGetFormat (node:internal/modules/esm/get_format:102:38)
    at defaultLoad (node:internal/modules/esm/load:21:14)
    at ESMLoader.load (node:internal/modules/esm/loader:359:26)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:280:58)
    at new ModuleJob (node:internal/modules/esm/module_job:66:26)
    at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:297:17)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:261:34)
    at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:81:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Version:
commit 5cd1b0b856501f9d7fdad8414903f0b6cdcdc001 (HEAD -> master, tag: v0.4.1, origin/master, origin/dev, origin/HEAD, dev)
Author: Jack Chakany<EMAIL_ADDRESS>Date:   Fri May 5 08:05:36 2023 -0400

    Bump version to v0.4.1

Can I see a list of all of the files and folders inside your nblog directory? There may be missing folders for whatever reason.

It looks like your .svelte-kit directory is missing, try deleting your local copy and re-follow the steps in the README.

It doesn't mention what method to install svelte there. This is the second time deleting the dir and trying form start but I'm getting the same error too.

$ git clone https://github.com/damascene/nblog.git
Cloning into 'nblog'...
remote: Enumerating objects: 1111, done.
remote: Counting objects: 100% (286/286), done.
remote: Compressing objects: 100% (106/106), done.
remote: Total 1111 (delta 256), reused 182 (delta 179), pack-reused 825
Receiving objects: 100% (1111/1111), 239.07 KiB | 1.56 MiB/s, done.
Resolving deltas: 100% (720/720), done.

$ cd nblog/
$ git checkout master
Branch 'master' set up to track remote branch 'master' from 'origin'.
Switched to a new branch 'master'
$ cp ../.env .
$ yarn
➤ YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍

➤ YN0000: ┌ Resolution step
➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged
➤ YN0032: │ utf-8-validate@npm:5.0.10: Implicit dependencies on node-gyp are discouraged
➤ YN0032: │ bufferutil@npm:4.0.7: Implicit dependencies on node-gyp are discouraged
➤ YN0061: │ @npmcli/move-file@npm:2.0.1 is deprecated: This functionality has been moved to @npmcli/fs
➤ YN0000: └ Completed in 21s 953ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ yaeti@npm:0.0.6 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yallist@npm:4.0.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yaml@npm:2.2.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yocto-queue@npm:0.1.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yocto-queue@npm:1.0.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0000: └ Completed in 1s 121ms
➤ YN0000: ┌ Link step
➤ YN0007: │ svelte-preprocess@npm:5.0.3 [1773f] must be built because it never has been before or the last one failed
➤ YN0007: │ @fortawesome/fontawesome-common-types@npm:6.4.0 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.17.11 must be built because it never has been before or the last one failed
➤ YN0007: │ bufferutil@npm:4.0.7 must be built because it never has been before or the last one failed
➤ YN0007: │ es5-ext@npm:0.10.62 must be built because it never has been before or the last one failed
➤ YN0007: │ utf-8-validate@npm:5.0.10 must be built because it never has been before or the last one failed
➤ YN0007: │ @fortawesome/free-brands-svg-icons@npm:6.4.0 must be built because it never has been before or the last one failed
➤ YN0007: │ @fortawesome/free-solid-svg-icons@npm:6.4.0 must be built because it never has been before or the last one failed
➤ YN0007: │ @sveltejs/kit@npm:1.15.7 [1773f] must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 8s 62ms
➤ YN0000: Done with warnings in 31s 247ms
$ yarn build
▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]

    tsconfig.json:2:12:
      2 │   "extends": "./.svelte-kit/tsconfig.json",
        ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error during build:
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".json" for /home/user/nostr_stuff/nblog/package.json
    at new NodeError (node:internal/errors:371:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:87:11)
    at defaultGetFormat (node:internal/modules/esm/get_format:102:38)
    at defaultLoad (node:internal/modules/esm/load:21:14)
    at ESMLoader.load (node:internal/modules/esm/loader:359:26)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:280:58)
    at new ModuleJob (node:internal/modules/esm/module_job:66:26)
    at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:297:17)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:261:34)
    at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:81:21)

Well you're using the wrong version of yarn here, v1 is what should be used.
As for your issue, it seems that either yarn itself or vite cannot generate the .svelte-kit directory, maybe a permissions issue? I have no idea what is causing this or how to fix.

Thank you for trying to help me. I've tested both yarn 1.22.19 and 3.5.1 do you want me to try exactly version 1.0.0?
I'm using the home directory so permission issue is unlikely. Do you have Docker file to reproduce the same setup you have or something similar?

No, 1.22.19 is ok.
I don't use Docker on my local machine right now, I'm running MacOS.

I've solved this by upgrading to node 16.20 and using npm i and npm run build instead of yarn.


Users are able to sign up to full rpgs

Even if the button were hidden, which it should be, this also requires the signup view checking fullness and returning an error in case two people click the button within a short time, or if someone circumvents the button

Closed by 2bc8f19.


⚠ Jenkins Plugins Artifactory has degraded performance

In 0d96b11, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 2377 ms

Resolved: Jenkins Plugins Artifactory performance has improved in bb0f67f after 27 minutes.


Adjust max leverage for NP orders

Adds an adjustment to max leverage amount when the user is submitting a next price order.
Description

Adds constant for leverage adjustment (99.75% of current leverage)
Adjusts current max leverage on NP orders by the constant

Related issue

[ ] closes #1012

Motivation and Context
Trader next price orders fail when the specified position size and next oracle update push them past max leverage. This change will adjust the available max leverage by 99.75% since oracle updates should be <.2%.

@Tburm Tested this on mainnet with a 50$ NP Long on UNI-PERP with maxLeverage (9.97). For some reason the Keeper didn't pick it up, had to execute manually (successfully). Not sure this is related to this ticket or it would need more than the 50$ to pick an order?
Market was calm, no volatility nor other fees at the moment of submit. See last two txs at https://optimistic.etherscan.io/address/0xc2ecd777d06ffdf8b3179286beabf52b67e9d991


Finish NBT implementation

Is storing the original binary data for NBT tags a design choice? It seems unnecessary to keep this in memory:
https://github.com/CleanstoneMC/Cleanstone/blob/e1054b3fc5fc0e3ec664b28f9d883ef4319798b0/src/main/java/rocks/cleanstone/data/vanilla/nbt/type/AbstractTag.java#L9-L11
Parsing tags "when necessary" (in the get method) can also be expensive for bigger objects like Lists and Compounds. Wouldn't it be preferable to do something like:
byte[] rawData = ...;
CompoudTag tag = new CompoundTag(); // creates empty Map<String, AbstractTag>
tag.loadData(rawData); // parse the data and fill the map
// rawData gets GC'd at end of scope


Add EV battery SoC to default dashboard card

Is your feature request related to a problem? Please describe.
I've noticed that the EV Battery SoC for my Kia EV6 is not present anywhere on the default dashboard card.
Describe the solution you'd like
It would be great if that information was visible from the default dashboard,

the ev battery should look like this on the device integration, I don't know anything about the default dashboard cards.  Are you unable to see the ev battery level?

I just saw it... I swear I checked like 6 times!


Implement custom vjp

refactor lift.custom_vjp so the backward pass is well-defined
add custom_vjp to linen transforms

Fixes #1738

Codecov Report

Merging #1738 (d196860) into main (c6d7556) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1738      +/-   ##
==========================================
+ Coverage   83.22%   83.27%   +0.05%
==========================================
  Files          69       69
  Lines        5872     5891      +19
==========================================
+ Hits         4887     4906      +19
  Misses        985      985

Impacted Files
Coverage Δ

flax/core/lift.py
94.97% <100.00%> (+0.01%)
:arrow_up:

flax/linen/__init__.py
100.00% <100.00%> (ø)

flax/linen/transforms.py
94.14% <100.00%> (+0.30%)
:arrow_up:

flax/core/scope.py
93.10% <0.00%> (-0.20%)
:arrow_down:

flax/linen/module.py
93.51% <0.00%> (+0.26%)
:arrow_up:

Continue to review full report at Codecov.

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


p_main is become long and confusing

The p_main.fpp file is becoming long and confusing. This is the entry point to the main part of the code for almost all new users, so we should make it as easy to digest as possible.
Possibilities for improvement are below. All of these changes would have effectively zero computational cost.
https://github.com/anandrdbz/MFC/blob/6da8a3c618d596e91b9194cd8c81bb7f01d41505/src/simulation/p_main.fpp#L235-L328
The above code is the main "time-stepping" loop, and seems like it should be in its own subroutine or function or something.
https://github.com/anandrdbz/MFC/blob/6da8a3c618d596e91b9194cd8c81bb7f01d41505/src/simulation/p_main.fpp#L137-L150
The above code has to do with a small part of the code that most folks won't use. Perhaps it should also live somewhere else, not in this main introductory file?
https://github.com/anandrdbz/MFC/blob/6da8a3c618d596e91b9194cd8c81bb7f01d41505/src/simulation/p_main.fpp#L224-L233
There are some snippets like the above related to GPU memory allocation. This is important for the developer but not the user. Can we make this "cleaner" by putting memory allocations closer to where the variable is introduced?
https://github.com/anandrdbz/MFC/blob/6da8a3c618d596e91b9194cd8c81bb7f01d41505/src/simulation/p_main.fpp#L156-L185
The above (and the like) all have the same pattern... s_initialize_X_module. Should they not be in their own subroutine?

These could all potentially be done in another new file that's not p_main.fpp, and I should be able to do those quite easily.
The reason some of these calls are not done closer to declaration is because most of these were declared in m_gloabl_parameters.fpp, and the compiler would run into issues with this because m_global_parameters is included in all other modules (like var_conv, m_helper etc) so using those modules in m_global would lead to circular conflicts.
I can use another new module that uses most of the other modules (including m_global) so that p_main looks more clean to the user.

Yes I would be curious to see that.

Closed by #183


Add GitHub stale action

Promoted by GitHub (removed old stale bot config)

It's nice to have this reminder, same permission inside GitHub action