8000 Refactor usage by shimonewman · Pull Request #7005 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor usage #7005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 183 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
9fad9dc
usage sync
shimonewman Oct 25, 2023
b80bfb0
usage sync
shimonewman Oct 25, 2023
8736a01
CHANGES.md
shimonewman Oct 25, 2023
b7675df
usage workers
shimonewman Oct 25, 2023
ef347f6
usage workers
shimonewman Oct 25, 2023
14ac780
workers start hook
shimonewman Oct 25, 2023
c11b3ff
workers start hook
shimonewman Oct 25, 2023
b775c53
clean up
shimonewman Oct 25, 2023
4c69764
clean up
shimonewman Oct 25, 2023
19fe1c3
migration ver
shimonewman Oct 25, 2023
5e17cde
usage test
shimonewman Oct 25, 2023
a42577b
composer json
shimonewman Oct 25, 2023
6527a50
composer json
shimonewman Oct 25, 2023
0429073
refactor storage, databases usage display
shimonewman Nov 1, 2023
1c10284
refactor users, project, functions usage display
shimonewman Nov 1, 2023
f64d0ab
Merge branch '1.4.x' of github.com:appwrite/appwrite into refactor-us…
shimonewman Nov 5, 2023
ad63a37
added inf metric
shimonewman Nov 8, 2023
d54615d
project.php
shimonewman Nov 8, 2023
91fed7a
editing the response models
shimonewman Nov 9, 2023
21895e3
Merge branch '1.4.x' of github.com:appwrite/appwrite into refactor-us…
shimonewman Nov 26, 2023
7ee96fb
sync against 1.4x
shimonewman Nov 26, 2023
c9a4eb0
tests fix
shimonewman Nov 26, 2023
30d5e99
Merge branch 'main' of github.com:appwrite/appwrite into refactor-usa…
shimonewman Nov 30, 2023
5daae1d
tests fix
shimonewman Nov 30, 2023
c313e83
Merge branch '1.4.x' of github.com:appwrite/appwrite into refactor-us…
shimonewman Nov 30, 2023
d624481
tests fix
shimonewman Nov 30, 2023
235e31e
composer.lock
shimonewman Nov 30, 2023
fce2055
console::billing
shimonewman Nov 30, 2023
f16aa59
console::billing
shimonewman Nov 30, 2023
83d4de9
support maile template override
lohanidamodar Dec 6, 2023
5c9199f
fix empty body template
lohanidamodar Dec 6, 2023
386cee5
mail support string as attachment
lohanidamodar Dec 8, 2023
f553576
fix linter
lohanidamodar Dec 8, 2023
a9a15e9
Merge pull request #7261 from appwrite/feat-mail-worker-attachment-su…
lohanidamodar Dec 8, 2023
e3bab62
fix redis issue by encoding content
lohanidamodar Dec 8, 2023
3b7fa3d
Merge pull request #7262 from appwrite/feat-mail-worker-attachment-su…
lohanidamodar Dec 8, 2023
e446752
Merge branch 'refactor-usage-sn' into feat-mail-template-override-ur
lohanidamodar Dec 9, 2023
ffdc662
fix formatting
lohanidamodar Dec 9, 2023
bb93408
feat: project usage custom date range
TorstenDittmann Dec 10, 2023
9542583
fix: tests and response models
TorstenDittmann Dec 10, 2023
1836e89
Merge pull request #7251 from appwrite/feat-mail-template-override-ur
lohanidamodar Dec 10, 2023
6925122
Merge pull request #7266 from appwrite/feat-project-usage-custom-date…
TorstenDittmann Dec 10, 2023
c37e31e
fix: inconsistent timestamp generation
TorstenDittmann Dec 10, 2023
f8878ac
chore: generate specs
TorstenDittmann Dec 10, 2023
b872311
chore: bump console version number
TorstenDittmann Dec 10, 2023
ba75f69
feat: usage breakdown by project
TorstenDittmann Dec 11, 2023
1794b13
chore: run formatter
TorstenDittmann Dec 11, 2023
dc8e8a5
Merge pull request #7270 from appwrite/feat-usage-project-breakdown
TorstenDittmann Dec 11, 2023
2657247
bump: console version
TorstenDittmann Dec 11, 2023
7d5f926
Merge branch 'refactor-usage-sn' of https://github.com/appwrite/appwr…
TorstenDittmann Dec 11, 2023
3485373
chore: generate specs
TorstenDittmann Dec 11, 2023
5e74c5b
fix: typo usage
TorstenDittmann Dec 11, 2023
3d081e1
fix: allow billingPlan query on teams
TorstenDittmann Dec 11, 2023
104b8bb
provide retention time as queue server resource
lohanidamodar Dec 12, 2023
9ac57e2
remove unused retention
lohanidamodar Dec 12, 2023
e5fb743
Merge pull request #7272 from appwrite/damodar/fla-127-make-maintenan…
lohanidamodar Dec 12, 2023
d8fe96e
set project resource
lohanidamodar Dec 12, 2023
5c3bd74
fix resources
lohanidamodar Dec 12, 2023
5512123
loop through projects
lohanidamodar Dec 12, 2023
7891f9e
refactor deletes worker
lohanidamodar Dec 12, 2023
fc504e3
Change collections priority for pricing override
Meldiron Dec 12, 2023
063db1e
feat: add execution aggregation to project usage
TorstenDittmann Dec 12, 2023
cf87cfa
Merge branch 'refactor-usage-sn' of https://github.com/appwrite/appwr…
TorstenDittmann Dec 12, 2023
bdf9a64
change execution usage trigger
shimonewman Dec 12, 2023
41ae96e
change execution usage trigger
shimonewman Dec 12, 2023
cc67bcb
Add group for cloud limit check
Meldiron Dec 12, 2023
7645d6c
fix: email templates
TorstenDittmann Dec 13, 2023
06cd61e
Merge branch 'refactor-usage-sn' of https://github.com/appwrite/appwr…
TorstenDittmann Dec 13, 2023
9bc52e8
fix: commatation in email html
TorstenDittmann Dec 13, 2023
39d91ae
Merge pull request #7273 from appwrite/damodar/pea-15-refactor-mainte…
christyjacob4 Dec 14, 2023
1307f73
chore: refactor code
christyjacob4 Dec 14, 2023
dc89501
chore: linter
christyjacob4 Dec 14, 2023
b36c98a
Merge pull request #7274 from appwrite/refactor-usage-execution-trigger
christyjacob4 Dec 14, 2023
8c13635
Add Hooks
Meldiron Dec 15, 2023
0aaab63
Remove var dumps
Meldiron Dec 15, 2023
9f1b356
combining network inbound
shimonewman Dec 18, 2023
5e59d73
rename stats collection
lohanidamodar Dec 18, 2023
1f55844
linter fix
lohanidamodar Dec 18, 2023
caa5c4e
making visibility private
lohanidamodar Dec 18, 2023
3abb53d
Merge pull request #7301 from appwrite/fix-rename-stats
Meldiron Dec 18, 2023
b301a58
Update console
Meldiron Dec 19, 2023
b372950
Add cache to console collection
Meldiron Dec 19, 2023
42246c5
Fix console
Meldiron Dec 19, 2023
683fccc
Update console
Meldiron Dec 19, 2023
457e47c
Upgrade console
Meldiron Dec 20, 2023
05f8f8f
Fix SMS issue
Meldiron Dec 20, 2023
bfbcecd
fix deletes worker
lohanidamodar Dec 20, 2023
1023f24
Merge pull request #7310 from appwrite/fix-deletes-worker
eldadfux Dec 20, 2023
0529cff
Improve logging
Meldiron Dec 20, 2023
ccfd856
Merge branch 'refactor-usage-sn' of https://github.com/appwrite/appwr…
Meldiron Dec 20, 2023
56a374e
Upgrade console
Meldiron Dec 20, 2023
9c510da
Update console
Meldiron Dec 20, 2023
9a2f97b
metrics adjustments
shimonewman Dec 21, 2023
eff578b
metrics adjustments
shimonewman Dec 21, 2023
4e24e3c
Merge branch 'refactor-usage-sn' of github.com:appwrite/appwrite into…
shimonewman Dec 21, 2023
24d3aa4
metrics adjustments
shimonewman Dec 21, 2023
a47dcac
chore: update console
christyjacob4 Dec 21, 2023
ba44e06
metrics adjustments
shimonewman Dec 21, 2023
099308f
Merge pull request #7298 from appwrite/refactor-hamster-usage
shimonewman Dec 21, 2023
45df2d3
Merge pull request #7313 from appwrite/update-console
christyjacob4 Dec 21, 2023
6303029
chore: update console
christyjacob4 Dec 21, 2023
aa9e9aa
Merge pull request #7314 from appwrite/update-console
christyjacob4 Dec 21, 2023
042c8f8
chore: update console
christyjacob4 Dec 21, 2023
fac204b
chore: update console
christyjacob4 Dec 21, 2023
ffa4bfd
Merge pull request #7315 from appwrite/update-console
christyjacob4 Dec 21, 2023
9ee9491
chore: update console
christyjacob4 Dec 21, 2023
276a12e
Merge pull request #7316 from appwrite/update-console
christyjacob4 Dec 21, 2023
bf92ae6
chore: update console
christyjacob4 Dec 22, 2023
1eb59da
chore: run linter
christyjacob4 Dec 22, 2023
0ae5712
Merge pull request #7319 from appwrite/update-console
christyjacob4 Dec 22, 2023
1857c0e
chore: update hamster script
christyjacob4 Dec 22, 2023
394f281
chore: update hamster script
christyjacob4 Dec 22, 2023
d3143b8
chore: update hamster script
christyjacob4 Dec 22, 2023
e1ebf15
Merge pull request #7320 from appwrite/update-hamster-script
christyjacob4 Dec 22, 2023
585b904
debuging usage
shimonewman Dec 24, 2023
f1e066d
debuging usage
shimonewman Dec 24, 2023
d175156
refactor usage worker
shimonewman Dec 24, 2023
80315a0
refactor usage worker
shimonewman Dec 24, 2023
ddb7a40
refactor usage worker
shimonewman Dec 24, 2023
a8af6fd
Merge pull request #7326 from appwrite/refactor-usage-worker-sn
shimonewman Dec 24, 2023
b398338
small fix
shimonewman Dec 25, 2023
4a83790
usageHook tweaks
shimonewman Dec 25, 2023
d1f0fdd
Merge pull request #7330 from appwrite/refactor-usage-hook
shimonewman Dec 25, 2023
9382e4c
refactoring infinity metric calculation cli script, adding project id…
shimonewman Dec 26, 2023
77d423e
refactoring infinity metric calculation cli script, adding project id…
shimonewman Dec 26, 2023
18ab5ca
Merge pull request #7339 from appwrite/refactor-inf-metric-calc
shimonewman Dec 26, 2023
9889048
update console ver
shimonewman Dec 26, 2023
3bde473
update console ver
shimonewman Dec 27, 2023
260b280
preview_output_fix
shimonewman Dec 28, 2023
bf0f1ee
console version update + db lib version update
shimonewman Dec 28, 2023
643f5e8
Bump console to version 3.3.14
stnguyen90 Dec 29, 2023
4ffeb86
Merge pull request #7358 from appwrite/chore-bump-console-3.3.14
eldadfux Dec 29, 2023
3d1b61d
Bump console to version 3.3.15
stnguyen90 Dec 29, 2023
88a9fc3
Merge pull request #7359 from appwrite/chore-bump-console-3.3.15
eldadfux Dec 29, 2023
99f1543
Merge branch 'main' of github.com:appwrite/appwrite into refactor-usa…
shimonewman Jan 2, 2024
f14250b
sync with main
shimonewman Jan 2, 2024
a29cef2
feat: console hostname env variable
TorstenDittmann Dec 29, 2023
0a17e2b
feat: add new env variable to compsoe files
TorstenDittmann Dec 29, 2023
127aa3c
Merge pull request #7377 from appwrite/feat-console-hostnames-on-refa…
TorstenDittmann Jan 3, 2024
d2d36bb
Add changes from previous console platforms variable PR
stnguyen90 Jan 3, 2024
0c3ed13
Fix _APP_CONSOLE_HOSTNAMES check
stnguyen90 Jan 3, 2024
99c163d
Merge pull request #7387 from appwrite/fix-app-console-hostnames-chec…
TorstenDittmann Jan 3, 2024
ba32170
Improve password validator hook
Meldiron Jan 4, 2024
0a2be34
Fix PHP refference bug
Meldiron Jan 5, 2024
e5f0e00
Apply password validation to all places
Meldiron Jan 5, 2024
fae28b4
Fix password hashing bug
Meldiron Jan 7, 2024
9ba2eaf
fix: escape html in email params (#7409)
TorstenDittmann Jan 8, 2024
8163eef
Merge branch 'main' of github.com:appwrite/appwrite into refactor-usa…
shimonewman Jan 8, 2024
deb189f
sync with main
shimonewman Jan 8, 2024
dcc0aa6
sync with main
shimonewman Jan 8, 2024
472712d
update utopia-framework version
shimonewman Jan 8, 2024
a704825
Fix utopia-php/framework version
stnguyen90 Jan 9, 2024
747779b
Fix usage test checking wrong array key
stnguyen90 Jan 9, 2024
fc2a4e5
Update the usage test to retry since the test is flaky
stnguyen90 Jan 9, 2024
44182b4
Fix incorrect response model
stnguyen90 Jan 9, 2024
dea3c04
Fix broken usage tests
stnguyen90 Jan 9, 2024
b403a13
Merge pull request #7410 from appwrite/fix-incorrect-framework-version
christyjacob4 Jan 9, 2024
d344ba4
feat: account delete (#7415)
TorstenDittmann Jan 9, 2024
65c90c9
chore: update collection name in hamster
christyjacob4 Jan 9, 2024
a2d97b3
Merge pull request #7417 from appwrite/update-hamster
christyjacob4 Jan 9, 2024
78f7b18
fix: hotfix for redirect param in custom templates (#7437)
TorstenDittmann Jan 11, 2024
4cb4863
Rename usage_network_infinity to usage_bandwidth_infinity
PineappleIOnic Jan 12, 2024
be3e3ba
Merge pull request #7443 from appwrite/fix-bandwidth-name
christyjacob4 Jan 15, 2024
40e17ad
hamster additions
shimonewman Jan 17, 2024
f9d6da6
hamster additions
shimonewman Jan 17, 2024
a954cea
Update src/Appwrite/Platform/Workers/Hamster.php
shimonewman Jan 17, 2024
5d164e0
Update src/Appwrite/Platform/Workers/Hamster.php
shimonewman Jan 17, 2024
c1ca623
Update src/Appwrite/Platform/Workers/Hamster.php
shimonewman Jan 17, 2024
3f63b87
Update src/Appwrite/Platform/Workers/Hamster.php
shimonewman Jan 17, 2024
e524590
Update src/Appwrite/Platform/Workers/Hamster.php
shimonewman Jan 17, 2024
0d10668
hamster additions
shimonewman Jan 17, 2024
6bd810c
hamster additions
shimonewman Jan 17, 2024
a0b38a5
Merge branch 'main' of github.com:appwrite/appwrite into refactor-usa…
shimonewman Jan 18, 2024
37316f9
adding debug output to usage-worker
shimonewman Jan 18, 2024
c116de2
Added marked_for_deletion and billing_plan_downgrade
shimonewman Jan 22, 2024
0e30f65
Added marked_for_deletion and billing_plan_downgrade
shimonewman Jan 22, 2024
9fc1b0b
Added marked_for_deletion and billing_plan_downgrade
shimonewman Jan 22, 2024
ff7523d
chore: refactor code
christyjacob4 Jan 22, 2024
d04f9f4
chore: refactor code
christyjacob4 Jan 22, 2024
19b1de2
Merge branch 'refactor-usage-sn' of github.com:appwrite/appwrite into…
shimonewman Jan 22, 2024
2b865bd
Added marked_for_deletion and billing_plan_downgrade
shimonewman Jan 22, 2024
e9a13fe
Hamster additions
shimonewman Jan 22, 2024
d220c2b
Added marked_for_deletion and billing_plan_downgrade
shimonewman Jan 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ _APP_WORKER_PER_CORE=6
_APP_CONSOLE_WHITELIST_ROOT=disabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
_APP_CONSOLE_HOSTNAMES=localhost,appwrite.io,*.appwrite.io
_APP_SYSTEM_EMAIL_NAME=Appwrite
_APP_SYSTEM_EMAIL_ADDRESS=team@appwrite.io
_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=security@appwrite.io
_APP_SYSTEM_RESPONSE_FORMAT=
_APP_OPTIONS_ABUSE=disabled
_APP_OPTIONS_ROUTER_PROTECTION=disbled
_APP_OPTIONS_ROUTER_PROTECTION=disabled
_APP_OPTIONS_FORCE_HTTPS=disabled
_APP_OPTIONS_FUNCTIONS_FORCE_HTTPS=disabled
_APP_OPENSSL_KEY_V1=your-secret-key
Expand Down Expand Up @@ -50,10 +51,6 @@ _APP_STORAGE_WASABI_BUCKET=
_APP_STORAGE_ANTIVIRUS=disabled
_APP_STORAGE_ANTIVIRUS_HOST=clamav
_APP_STORAGE_ANTIVIRUS_PORT=3310
_APP_INFLUXDB_HOST=influxdb
_APP_INFLUXDB_PORT=8086
_APP_STATSD_HOST=telegraf
_APP_STATSD_PORT=8125
_APP_SMTP_HOST=maildev
_APP_SMTP_PORT=1025
_APP_SMTP_SECURE=
Expand All @@ -79,7 +76,7 @@ _APP_MAINTENANCE_RETENTION_CACHE=2592000
_APP_MAINTENANCE_RETENTION_EXECUTION=1209600
_APP_MAINTENANCE_RETENTION_ABUSE=86400
_APP_MAINTENANCE_RETENTION_AUDIT=1209600
_APP_USAGE_AGGREGATION_INTERVAL=5
_APP_USAGE_AGGREGATION_INTERVAL=60000
_APP_MAINTENANCE_RETENTION_USAGE_HOURLY=8640000
_APP_MAINTENANCE_RETENTION_SCHEDULES=86400
_APP_USAGE_STATS=enabled
Expand Down
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Version 1.4.14

## Changes
- New usage metrics collection flow [#7005](https://github.com/appwrite/appwrite/pull/7005)
- Deprecated influxdb, telegraf containers and removed all of their occurrences from the code.
- Removed _APP_INFLUXDB_HOST, _APP_INFLUXDB_PORT, _APP_STATSD_HOST, _APP_STATSD_PORT env variables.
- Removed usage labels dependency.
- Dropped type attribute from stats collection.
- Usage metrics are processed via new usage worker.
- updated Metric names.

# Version 1.4.13

## Notable changes
Expand Down Expand Up @@ -49,6 +60,7 @@
* Use getQueueSize() in the Health service's get X queue endpoints [#7073](https://github.com/appwrite/appwrite/pull/7073)
* Delete linked VCS repos and comments [#7066](https://github.com/appwrite/appwrite/pull/7066)


# Version 1.4.9

## Bug fixes
Expand Down
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ Appwrite's current structure is a combination of both [Monolithic](https://en.wi
│ ├── Task
│ ├── Template
│ ├── URL
│ ├── Usage
│ └── Utopia
└── tests # End to end & unit tests
├── e2e
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ RUN mkdir -p /storage/uploads && \
# Executables
RUN chmod +x /usr/local/bin/doctor && \
chmod +x /usr/local/bin/maintenance && \
chmod +x /usr/local/bin/usage && \
chmod +x /usr/local/bin/install && \
chmod +x /usr/local/bin/upgrade && \
chmod +x /usr/local/bin/migrate && \
Expand All @@ -95,7 +94,9 @@ RUN chmod +x /usr/local/bin/doctor && \
chmod +x /usr/local/bin/worker-messaging && \
chmod +x /usr/local/bin/worker-webhooks && \
chmod +x /usr/local/bin/worker-migrations && \
chmod +x /usr/local/bin/worker-hamster
chmod +x /usr/local/bin/worker-hamster && \
chmod +x /usr/local/bin/worker-usage


# Cloud Executabless
RUN chmod +x /usr/local/bin/hamster && \
Expand All @@ -107,7 +108,8 @@ RUN chmod +x /usr/local/bin/hamster && \
chmod +x /usr/local/bin/clear-card-cache && \
chmod +x /usr/local/bin/calc-users-stats && \
chmod +x /usr/local/bin/calc-tier-stats && \
chmod +x /usr/local/bin/get-migration-stats
chmod +x /usr/local/bin/get-migration-stats && \
chmod +x /usr/local/bin/create-inf-metric

# Letsencrypt Permissions
RUN mkdir -p /etc/letsencrypt/live/ && chmod -Rf 755 /etc/letsencrypt/live/
Expand Down
24 changes: 0 additions & 24 deletions app/cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,30 +125,6 @@
};
}, ['pools', 'dbForConsole', 'cache']);

CLI::setResource('influxdb', function (Registry $register) {
$client = $register->get('influxdb'); /** @var InfluxDB\Client $client */
$attempts = 0;
$max = 10;
$sleep = 1;

do { // check if telegraf database is ready
try {
$attempts++;
$database = $client->selectDB('telegraf');
if (in_array('telegraf', $client->listDatabases())) {
break; // leave the do-while if successful
}
} catch (\Throwable $th) {
Console::warning("InfluxDB not ready. Retrying connection ({$attempts})...");
if ($attempts >= $max) {
throw new \Exception('InfluxDB database not ready yet');
}
sleep($sleep);
}
} while ($attempts < $max);
return $database;
}, ['register']);

CLI::setResource('queue', function (Group $pools) {
return $pools->get('queue')->pop()->getResource();
}, ['pools']);
Expand Down
135 changes: 62 additions & 73 deletions app/config/collections.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,63 @@
*/

$commonCollections = [
'cache' => [
'$collection' => Database::METADATA,
'$id' => 'cache',
'name' => 'Cache',
'attributes' => [
[
'$id' => 'resource',
'type' => Database::VAR_STRING,
'format' => '',
'size' => 255,
'signed' => true,
'required' => false,
'default' => null,
'array' => false,
'filters' => [],
],
[
'$id' => 'accessedAt',
'type' => Database::VAR_DATETIME,
'format' => '',
'size' => 0,
'signed' => false,
'required' => false,
'default' => null,
'array' => false,
'filters' => ['datetime'],
],
[
'$id' => 'signature',
'type' => Database::VAR_STRING,
'format' => '',
'size' => 255,
'signed' => true,
'required' => false,
'default' => null,
'array' => false,
'filters' => [],
],
],
'indexes' => [
[
'$id' => '_key_accessedAt',
'type' => Database::INDEX_KEY,
'attributes' => ['accessedAt'],
'lengths' => [],
'orders' => [],
],
[
'$id' => '_key_resource',
'type' => Database::INDEX_KEY,
'attributes' => ['resource'],
'lengths' => [],
'orders' => [],
],
],
],

'users' => [
'$collection' => ID::custom(Database::METADATA),
'$id' => ID::custom('users'),
Expand Down Expand Up @@ -1270,10 +1327,10 @@
]
],

'stats' => [
'stats_v2' => [
'$collection' => ID::custom(Database::METADATA),
'$id' => ID::custom('stats'),
'name' => 'Stats',
'$id' => ID::custom('stats_v2'),
'name' => 'stats_v2',
'attributes' => [
[
'$id' => ID::custom('metric'),
Expand Down Expand Up @@ -1302,7 +1359,7 @@
'type' => Database::VAR_INTEGER,
'format' => '',
'size' => 8,
'signed' => false,
'signed' => true,
'required' => true,
'default' => null,
'array' => false,
Expand Down Expand Up @@ -1330,17 +1387,6 @@
'array' => false,
'filters' => [],
],
[
'$id' => ID::custom('type'),
'type' => Database::VAR_INTEGER,
'format' => '',
'size' => 1,
'signed' => false,
'required' => true,
'default' => 0, // 0 -> count, 1 -> sum
'array' => false,
'filters' => [],
],
],
'indexes' => [
[
Expand All @@ -1359,7 +1405,7 @@
],
[
'$id' => ID::custom('_key_metric_period_time'),
'type' => Database::INDEX_KEY,
'type' => Database::INDEX_UNIQUE,
'attributes' => ['metric', 'period', 'time'],
'lengths' => [],
'orders' => [Database::ORDER_DESC],
Expand Down Expand Up @@ -2883,63 +2929,6 @@
],
],

'cache' => [
'$collection' => Database::METADATA,
'$id' => 'cache',
'name' => 'Cache',
'attributes' => [
[
'$id' => 'resource',
'type' => Database::VAR_STRING,
'format' => '',
'size' => 255,
'signed' => true,
'required' => false,
'default' => null,
'array' => false,
'filters' => [],
],
[
'$id' => 'accessedAt',
'type' => Database::VAR_DATETIME,
'format' => '',
'size' => 0,
'signed' => false,
'required' => false,
'default' => null,
'array' => false,
'filters' => ['datetime'],
],
[
'$id' => 'signature',
'type' => Database::VAR_STRING,
'format' => '',
'size' => 255,
'signed' => true,
'required' => false,
'default' => null,
'array' => false,
'filters' => [],
],
],
'indexes' => [
[
'$id' => '_key_accessedAt',
'type' => Database::INDEX_KEY,
'attributes' => ['accessedAt'],
'lengths' => [],
'orders' => [],
],
[
'$id' => '_key_resource',
'type' => Database::INDEX_KEY,
'attributes' => ['resource'],
'lengths' => [],
'orders' => [],
],
],
],

'variables' => [
'$collection' => Database::METADATA,
'$id' => 'variables',
Expand Down
20 changes: 7 additions & 13 deletions app/config/locale/templates/email-inner-base.tpl
<p><a href="{{redirect}}" target="_blank">{{redirect}}</a></p>
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
<p>{{hello}}</p>

<br>

<p>{{hello}},</p>
<p>{{body}}</p>

<a href="{{redirect}}" target="_blank">{{redirect}}</a>

<p>{{footer}}</p>

<br>

<p>{{thanks}}</p>

<p>{{signature}}</p>
<p style="margin-bottom: 32px">
{{thanks}},
<br/>
{{signature}}
</p>
6 changes: 3 additions & 3 deletions app/config/platforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
[
'key' => 'web',
'name' => 'Console',
'version' => '0.3.0',
'version' => '0.5.0',
'url' => 'https://github.com/appwrite/sdk-for-console',
'package' => '',
'enabled' => true,
Expand All @@ -195,8 +195,8 @@
'family' => APP_PLATFORM_CONSOLE,
'prism' => 'javascript',
'source' => \realpath(__DIR__ . '/../sdks/console-web'),
'gitUrl' => 'git@github.com:appwrite/sdk-for-console.git',
'gitBranch' => 'dev',
'gitUrl' => 'https://github.com/appwrite/sdk-for-console.git',
'gitBranch' => 'main',
'gitRepoName' => 'sdk-for-console',
'gitUserName' => 'appwrite',
],
Expand Down
2 changes: 1 addition & 1 deletion app/config/specs/open-api3-1.4.x-client.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/open-api3-1.4.x-console.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/open-api3-1.4.x-server.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/open-api3-latest-client.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/open-api3-latest-console.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/open-api3-latest-server.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/swagger2-1.4.x-client.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/swagger2-1.4.x-console.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/swagger2-1.4.x-server.json 10000

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/swagger2-latest-client.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/swagger2-latest-console.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/config/specs/swagger2-latest-server.json

Large diffs are not rendered by default.

21 changes: 11 additions & 10 deletions app/config/variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,6 @@
'question' => '',
'filter' => ''
],
// [
// 'name' => '_APP_CONSOLE_WHITELIST_DOMAINS',
// 'description' => 'This option allows you to limit creation of users to Appwrite console for users sharing the same email domains. This option is very useful for team working with company emails domain.\n\nTo enable this option, pass a list of allowed email domains separated by a comma.',
// 'introduction' => '',
// 'default' => '',
// 'required' => false,
// 'question' => '',
// ],
[
'name' => '_APP_CONSOLE_WHITELIST_IPS',
'description' => "This last option allows you to limit creation of users in Appwrite console for users sharing the same set of IP addresses. This option is very useful for team working with a VPN service or a company IP.\n\nTo enable/activate this option, pass a list of allowed IP addresses separated by a comma.",
Expand All @@ -132,6 +124,15 @@
'question' => '',
'filter' => ''
],
[
'name' => '_APP_CONSOLE_HOSTNAMES',
'description' => 'This option allows you to add additional hostnames to your Appwrite console. This option is very useful for allowing access to the console project from additional domains. To enable it, pass a list of allowed hostnames separated by a comma.',
'introduction' => '1.5.0',
'default' => '',
'required' => false,
'question' => '',
'filter' => ''
],
[
'name' => '_APP_SYSTEM_EMAIL_NAME',
'description' => 'This is the sender name value that will appear on email messages sent to developers from the Appwrite console. The default value is: \'Appwrite\'. You can use url encoded strings for spaces and special chars.',
Expand Down Expand Up @@ -337,7 +338,7 @@
],
[
'category' => 'InfluxDB',
'description' => 'Appwrite uses an InfluxDB server for managing time-series data and server stats. The InfluxDB env vars are used to allow Appwrite server to connect to the InfluxDB container.',
'description' => 'Deprecated since 1.4.8.',
'variables' => [
[
'name' => '_APP_INFLUXDB_HOST',
Expand All @@ -361,7 +362,7 @@
],
[
'category' => 'StatsD',
'description' => 'Appwrite uses a StatsD server for aggregating and sending stats data over a fast UDP connection. The StatsD env vars are used to allow Appwrite server to connect to the StatsD container.',
'description' => 'Deprecated since 1.4.8.',
'variables' => [
[
'name' => '_APP_STATSD_HOST',
Expand Down
Loading
0