Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 17 00:20

    thosakwe on master

    Update index.html (compare)

  • Oct 17 00:20

    thosakwe on master

    Update index.html (compare)

  • Apr 26 16:35

    thosakwe on master

    Add Firebase Firestore DB adapt… Merge pull request #3 from neta… (compare)

  • Apr 26 16:35
    thosakwe closed #3
  • Apr 26 16:33
    thosakwe commented #282
  • Apr 26 16:33
    thosakwe commented #282
  • Apr 26 16:33

    dependabot[bot] on npm_and_yarn

    (compare)

  • Apr 26 16:33

    dependabot[bot] on npm_and_yarn

    (compare)

  • Apr 26 16:33
    dependabot[bot] commented #283
  • Apr 26 16:33
    dependabot[bot] commented #283
  • Apr 26 16:33
    thosakwe closed #283
  • Apr 26 16:33
    thosakwe closed #283
  • Apr 26 16:33
    thosakwe closed #282
  • Apr 26 16:33
    thosakwe closed #282
  • Apr 26 16:33
    thosakwe closed #272
  • Apr 26 16:33
    thosakwe closed #272
  • Apr 26 16:33
    thosakwe closed #270
  • Apr 26 16:33
    thosakwe closed #270
  • Apr 26 16:33
    thosakwe closed #259
  • Apr 26 16:33
    thosakwe closed #259
Göran Krampe
@gokr
@dukefirehawk How are things progressing? Just curious
Thomas Hii
@dukefirehawk
@gokr See https://github.com/dukefirehawk/angel. The NNDB port is still on going. Its progress at https://github.com/dukefirehawk/angel/wiki/Change-Log.
Randal L. Schwartz
@RandalSchwartz
NNBD? :)
NNDB = Non Null DataBase!
Thomas Hii
@dukefirehawk
Oops. That should be NNBD. That would be one hell of a database :)
Randal L. Schwartz
@RandalSchwartz
no more pesky null math!
j4qfrost
@j4qfrost
hee ho
Răzvan Rotaru
@roti
soo, Aqueduct is shutting down. :(
1 reply
Leonardo Costa
@leonardoprc
Does Angel already work with Dart 2 ? What steps to upgrade?
Thomas Hii
@dukefirehawk
Angel works with Dart 2
Leonardo Costa
@leonardoprc

Angel works with Dart 2

And how to upgrade?

build 1.6.2 (2.0.0 available)
build_config 0.4.5 (0.4.7 available)
...
flutter 0.0.0 from sdk flutter
flutter_launcher_icons 0.7.5 (0.9.0 available)
flutter_slidable 0.5.7
flutter_sticky_header 0.4.6 (0.5.0 available)
flutter_test 0.0.0 from sdk flutter

Leonardo Costa
@leonardoprc

MacMini-Leonardo:teste_api leonardo$ dart pub upgrade
Resolving dependencies... (4.5s)

  • _fe_analyzer_shared 14.0.0 (19.0.0 available)

    analyzer 0.41.2 (was 0.36.0) (1.3.0 available)
    angel_auth 2.1.5+1
    angel_client 2.0.2
    angel_configuration 2.2.0
    angel_container 1.1.0 (was 1.0.4)
    angel_framework 2.1.1
    angel_hot 2.0.6
    angel_http_exception 1.1.0
    angel_jael 2.0.0
    angel_migration 2.0.0
    angel_migration_runner 2.0.0
    angel_model 1.0.3
    angel_orm 2.1.0-beta.3
    angel_orm_generator 2.0.5
    angel_orm_postgres 1.0.0
    angel_production 1.0.0
    angel_route 3.1.0+1 (was 3.0.6)
    angel_serialize 2.2.3+3
    angel_serialize_generator 2.5.0
    angel_static 2.1.3+2
    angel_test 2.0.1
    angel_validate 2.0.2
    angel_websocket 2.0.3 (was 2.0.1)
    args 1.6.0 (was 1.5.1) (2.0.0 available)
    async 2.5.0 (was 2.2.0)
    boolean_selector 2.1.0 (was 1.0.4)
    build 1.6.2 (was 1.1.3) (2.0.0 available)
    build_config 0.4.5 (was 0.3.2) (0.4.7 available)
    build_daemon 2.1.10 (was 0.5.0)
    build_resolvers 1.5.3 (was 1.0.4) (2.0.0 available)
    build_runner 1.11.1 (was 1.3.3) (1.12.2 available)
    build_runner_core 6.1.7 (was 3.0.3) (6.1.12 available)
    built_collection 5.0.0 (was 4.2.0)
    built_value 8.0.4 (was 6.4.0)
    charcode 1.2.0 (was 1.1.2)

  • checked_yaml 1.0.4 (2.0.1 available)
  • cli_util 0.3.0
    code_buffer 1.0.1

    code_builder 3.7.0 (was 3.2.0)
    collection 1.15.0 (was 1.14.11)
    combinator 1.1.0
    convert 2.1.1 (3.0.0 available)

  • coverage 0.15.2 (1.0.2 available)

    crypto 2.1.5 (was 2.0.6) (3.0.0 available)
    dart2_constant 1.0.2+dart2 (discontinued)
    dart_style 1.3.12 (was 1.2.7) (2.0.0 available)
    dbcrypt 2.0.0
    dotenv 1.0.0 (2.0.0 available)
    file 5.2.1 (was 5.0.7) (6.1.0 available)
    fixnum 1.0.0 (was 0.10.9)
    glob 1.2.0 (was 1.1.7) (2.0.1 available)
    graphs 0.2.0 (2.0.0 available)
    html_builder 1.0.5
    http 0.12.2 (was 0.12.0+2) (0.13.1 available)
    http2 1.0.1 (was 1.0.0) (2.0.0 available)
    http_multi_server 2.2.0 (was 2.0.5) (3.0.0 available)
    http_parser 3.1.4 (was 3.1.3) (4.0.0 available)
    http_server 0.9.8+3 (was 0.9.8+1) (1.0.0 available)
    inflection2 0.4.3 (was 0.4.2)
    intl 0.15.8 (0.17.0 available)
    io 0.3.5 (was 0.3.3) (1.0.0 available)
    jael 2.0.2 (was 2.0.1+2)
    jael_preprocessor 2.0.1
    js 0.6.3 (was 0.6.1+1)
    json_annotation 4.0.1 (was 2.2.0)
    json_god 2.0.0-beta+3
    json_rpc_2 2.2.2 (was 2.0.10)
    library 0.0.3 from path /Users/Developer/template-dart/library
    logging 0.11.4 (was 0.11.3+2) (1.0.1 available)
    matcher 0.12.10 (was 0.12.5)
    merge_map 1.0.2
    meta 1.3.0 (was 1.1.7)
    mime 0.9.7 (was 0.9.6+2) (1.0.0 available)
    mock_request 1.0.7 (was 1.0.5)

  • node_interop 1.2.1
  • node_io 1.2.0

    node_preamble 1.4.13 (was 1.4.4) (2.0.0 available)
    package_config 1.9.3 (was 1.0.5) (2.0.0 available)
    path 1.8.0 (was 1.6.2)
    pedantic 1.11.0 (was 1.5.0)
    pool 1.5.0 (was 1.4.0)
    postgres 1.0.2 (2.3.1 available)
    pub_semver 2.0.0 (was 1.4.2)
    pub_sub 2.3.0 (was 2.2.0)
    pubspec_parse 0.1.8 (was 0.1.4) (1.0.0 available)
    quiver 2.1.5 (was 2.0.3) (3.0.0 available)
    quiver_hashcode 2.0.0 (discontinued replaced by quiver)
    range_header 2.0.2+2
    recase 2.0.1 (3.0.1 available)
    shelf 0.7.9 (was 0.7.5) (1.1.0 available)
    shelf_packages_handler 2.0.1 (was 1.0.4) (3.0.0 available)
    shelf_static 0.2.9+2 (was 0.2.8) (1.0.0 available)
    shelf_web_socket 0.2.4+1 (was 0.2.3) (1.0.1 available)
    source_gen 0.9.10+3 (was 0.9.4+2) (1.0.0 available)
    source_map_stack_trace 2.1.0 (was 1.1.5)
    source_maps 0.10.10 (was 0.10.8)
    source_span 1.8.1 (was 1.5.5)
    stack_trace 1.10.0 (was 1.9.3)
    stream_channel 2.1.0 (was 1.7.0)
    stream_transform 2.0.0 (was 0.0.17)
    string_scanner 1.1.0 (was 1.0.4)
    symbol_table 2.0.0
    term_glyph 1.2.0 (was 1.1.0)
    test 1.16.5 (was 1.6.2) (1.16.8 available)
    test_api 0.2.19 (was 0.2.5) (0.3.0 available)
    test_core 0.3.15 (was 0.2.4) (0.3.19 available)
    teste_model 0.0.1 from path /Users/Developer/template-dart/teste_model
    timing 0.1.1+3 (was 0.1.1+1) (1.0.0 available)
    tuple 1.0.3 (was 1.0.2) (2.0.0 available)
    typed_data 1.3.0 (was 1.1.6)
    uuid 2.2.2 (was 2.0

👆in api server 👆
Thomas Hii
@dukefirehawk
Angel does not support NNBD yet. However, if you want to run with SDK 2.12.x (in none NNBD mode, sdk: '>=2.10.0 <3.0.0'), can try out this port https://github.com/dukefirehawk/boilerplates/blob/orm-sdk-2.12.x/pubspec.yaml. And check out https://github.com/dukefirehawk/angel/wiki/Change-Log for the list of updated packages (mostly just dependencies update to the latest version prior to NNBD).
Leonardo Costa
@leonardoprc

I understand the scenario ...
And how do I modify it, point an existing project to the "dukefirehawk"?

And despite the Angel "does not support NNBD yet", does it fully function as the previous version?

Thomas Hii
@dukefirehawk
Change the angel packages in your existing project to those in https://github.com/dukefirehawk/boilerplates/blob/orm-sdk-2.12.x/pubspec.yaml and then run "pub get". For my own project, it works well. My suggestion is to upgrade and test it. There are quite a number of libraries have been upgraded to version just shy of NNBD. These may break if your project depends on them since some of the API may have been deprecated.
Leonardo Costa
@leonardoprc

how do I solve this:

angel_framework
package: angel_framework / angel_framework.dart

An easily-extensible web server framework in Dart.

The library 'package: angel_framework / angel_framework.dart' is legacy, and should not be imported into a null safe library.
Try migrating the imported library.dart (import_of_legacy_library_into_null_safe)

Ahmed Masoud
@maxzod
image.png
add this line to vs code
--no-sound-null-safety
or terminal
or android studio
Thomas Hii
@dukefirehawk

Need to have

environment:
  sdk: '>=2.10.0 <3.0.0'

in pubspec.yaml file. Do not use sdk: '>=2.12.0 <3.0.0' as it would automatically turn NNBD on.

Leonardo Costa
@leonardoprc

Need to have

environment:
  sdk: '>=2.10.0 <3.0.0'

in pubspec.yaml file. Do not use sdk: '>=2.12.0 <3.0.0' as it would automatically turn NNBD on.

Thanks... Work !

Randal L. Schwartz
@RandalSchwartz
* Paste the text enclosed with ``` on a line by itself both before and after the text.
@leonardoprc ^^
Leonardo Costa
@leonardoprc

* Paste the text enclosed with ``` on a line by itself both before and after the text.

thanks

Leonardo Costa
@leonardoprc
Do extended Controller class no longer allow static methods? (like :)
   static List <Option> mountOptions(User user) {
...
Randal L. Schwartz
@RandalSchwartz
extensions are on instances, not classes.
Randal L. Schwartz
@RandalSchwartz
As in, you can add instance methods to classes, but you can’t add class methods or override anything.
No, not quite right. I added static vars to a class.
void main() {
  print(null.that);
  null.that = 3;
  print(null.that);
}

extension on Null {

  static Object _that = Object();
  Object get that => _that;
  set that(Object other) { _that = other; }

}
////// OR //////

void main() {
//   print(null.that); fatal
  null.that = 3;
  print(null.that);
}

extension on Null {

  static late Object _that;
  Object get that => _that;
  set that(Object other) { _that = other; }

}
that’s an extension on null to make null.that possible as a global variable.
And yes, I’m twisted. :)
ChrisH
@hicnar
Hi folks, got a question. Could anyone point me to some code samples that show how basic authentication or form based authentication can be implemented with the Angel framework?
By basic authentication I mean a way of triggering a popup window in the browser, and by form based authentication I mean a way to display a login page if a path that the user attempts to access can be accessed only by an authenticated user.
Tobe Osakwe
@thosakwe
Hi all, I think it would be best to archive the main Angel repository, and instead direct any incoming users to Thomas' fork.
Even if the changes are merged into the Angel repo directly, the repo will still be archived, which in a way defeats the purpose of merging it to begin with, as only the fork is still maintained
I don't want to infinitely leave things in limbo, so probably best to move to a shutdown asap
Lmk what you all think
Leonardo Costa
@leonardoprc
Can anyone post their Dockerfile here?
Leonardo Costa
@leonardoprc
Why does this happen in the Docker environment?
No migrations found to roll back.
template-api | Bringing up "/app/template-model/lib/src/models/models.g.dart#UserMigration"...
template-api | Bringing up "/app/template-model/lib/src/models/models.g.dart#RoleMigration"...
template-api | Bringing up "/app/template-model/lib/src/models/models.g.dart#UserRoleMigration"...
template-api | Bringing up "/app/template-model/lib/src/models/models.g.dart#AuthorMigration"...
template-api | Bringing up "/app/template-model/lib/src/models/models.g.dart#BookMigration"...
template-data | 2021-04-24 21:52:54.618 UTC [83] ERROR:  syntax error at or near "[" at character 77
template-data | 2021-04-24 21:52:54.618 UTC [83] STATEMENT:  CREATE TABLE "books" (
template-data |           "id" serial PRIMARY KEY,
template-data |           "title" varchar DEFAULT [Untitled],
template-data |           "description" varchar,
template-data |           "page_count" int,
template-data |           "type" int,
template-data |           "created_at" timestamp,
template-data |           "updated_at" timestamp
template-data |         );
template-data | 
template-api | Unhandled exception:
template-api | PostgreSQLSeverity.error 42601: syntax error at or near "["
Leonardo Costa
@leonardoprc

another question :
- when I run bin/prod.dart this happens:

[SEVERE] template-api: Fatal error

ApplicationCtrl is not a class, and therefore cannot be instantiated.
#0      Container.make (package:angel_container/src/container.dart:136:7)
#1      Angel.mountController (package:angel_framework/src/core/server.dart:344:32)
#2      configureServer (package:template_api/controllers.dart:12:13)
#3      Angel.configure.<anonymous closure> (package:angel_framework/src/core/server.dart:333:40)
#4      new Future.sync (dart:async/future.dart:218:31)
#5      Angel.configure (package:angel_framework/src/core/server.dart:333:19)
#6      configureServer (package:template_api/template_api.dart:45:13)
<asynchronous suspension>
#7      Runner.isolateMain.<anonymous closure> (package:angel_production/src/runner.dart:211:7)
<asynchronous suspension>

Was it the MirrorsReflector question? How do I use it in prod.dart?

Thomas Hii
@dukefirehawk
Angel3 - A forked and migrated Angel Framework with full NNBD support is available for preview and testing.
Repo detail at https://github.com/dukefirehawk/angel/
Basic project template at https://github.com/dukefirehawk/boilerplates/tree/angel3-basic
Published packages at https://pub.dev/publishers/dukefirehawk.com/packages
Jonathan Rezende
@jodinathan
very nice work @dukefirehawk
I use only the graphql packages from Angel and I really appreciate that you migrated it to null safety =]
Thomas Hii
@dukefirehawk
@jodinathan Welcome. Learned a lot about Dart internal from this migration work. Have to rewrite and rearrange some code just for "dart migrate" to run and null safety code to function like previous release.
mattjslaton
@mattjslaton
@dukefirehawk nice work, any good resources on migrating?
Thomas Hii
@dukefirehawk
@mattjslaton Only use https://dart.dev/null-safety/migration-guide and https://dart.dev/null-safety/faq. Note that it does not cover some of the failed cases, i.e. var x = A(), y = B(); often fail with odd errors. Also turning on pedantic and fixing those warnings before migration helps a lot
Sandro Bilbeisi
@sandrobilbeisi
@dukefirehawk I strongly suggest that you start with a fresh repo for Angel4 and match the version to 4.0.0 semantic and prune all the past forks and history ... otherwise it will be too messy to handle
right now we have a pub package of Angel3 that is 4.1.1 semantic
Sandro Bilbeisi
@sandrobilbeisi
maybe it would have to be Angel5 with 5.0.0 semantic
Thomas Hii
@dukefirehawk
@sandrobilbeisi Angel3 is a name chosen to represent a forked version with major breaking change in Angel framework to support NNBD. It provides a clean and distinctive break from the original version on pub.dev. The name has no bearing on the versioning semantic. When the time is right, we will see Angel3 version 5, version 6 etc. At the moment, only "master" branch stable code and "angel3" branch development code are heavily used. User Guide, examples and website have all been ported and updated to use Angel3. Significant work is underway now to add more real world examples and revamping website with angular dart.
Thomas Hii
@dukefirehawk
A new Angel3 website is up and running at https://angel3-framework.web.app.