chore: add logs (#182)

* chore: log html

* chore: logs
This commit is contained in:
Nathan.fooo 2023-11-26 16:48:17 -08:00 committed by GitHub
parent 3890f5d306
commit 432faee316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View File

@ -31,7 +31,6 @@ jobs:
run: |
# log level
sed -i 's|RUST_LOG=.*|RUST_LOG=trace|' .env
sed -i 's/GOTRUE_SMTP_USER=.*/GOTRUE_SMTP_USER=${{ secrets.GOTRUE_SMTP_USER }}/' .env
sed -i 's/GOTRUE_SMTP_PASS=.*/GOTRUE_SMTP_PASS=${{ secrets.GOTRUE_SMTP_PASS }}/' .env
sed -i 's/GOTRUE_SMTP_ADMIN_EMAIL=.*/GOTRUE_SMTP_ADMIN_EMAIL=${{ secrets.GOTRUE_SMTP_ADMIN_EMAIL }}/' .env

View File

@ -21,8 +21,11 @@ GOTRUE_SMTP_ADMIN_EMAIL=comp_admin@@some_company.com
GOTRUE_ADMIN_EMAIL=admin@example.com
GOTRUE_ADMIN_PASSWORD=password
# clicking on email verification link will redirect to this host
# change this to your own domain where you host the docker-compose or gotrue
# The email verification link provided to users will redirect them to this specified host.
# You should update this setting to reflect the domain where you are hosting your application with docker-compose or gotrue.
# If you're using an Nginx proxy as part of your setup, this host should be set to the domain managed by the proxy.
# For instance, if you're running your application locally using 'docker compose up -d',
# you can set this value to 'http://localhost'.
API_EXTERNAL_URL=http://localhost:9998
# url to the postgres database

View File

@ -277,6 +277,7 @@ impl Client {
let resp = reqwest::Client::new().get(action_link).send().await?;
let html = resp.text().await.unwrap();
trace!("action_link:{}, html: {}", action_link, html);
let fragment = scraper::Html::parse_fragment(&html);
let selector = scraper::Selector::parse("a").unwrap();
let sign_in_url = fragment

View File

@ -22,6 +22,8 @@ async fn edit_workspace_without_permission() {
client_1.wait_object_sync_complete(&workspace_id).await;
assert_client_collab(&mut client_1, &workspace_id, json!({"name": "AppFlowy"}), 3).await;
/// client 2 has not permission to read/edit the workspace
assert_client_collab(&mut client_2, &workspace_id, json!({}), 3).await;
}