Commit graph

6 commits

Author SHA1 Message Date
Gabriel de Souza Seibel
291551b45c
Net 687 : fix license validation failure log (#2675)
* On license validation fail, parse and store the message of the response

* Return cached response body when necessary

* Have license validation return proper val,err

* Improve logs readability on lic val error
2023-11-17 22:07:22 +04:00
Gabriel de Souza Seibel
0a88fdebd9
[NET-687] On license validation fail, parse and store the message of the response (#2669)
* On license validation fail, parse and store the message of the response

* Return cached response body when necessary

* Have license validation return proper val,err
2023-11-17 18:56:51 +04:00
Gabriel de Souza Seibel
abd6a9317c
Don't consider license invalid on 503/504 (#2650) 2023-11-01 23:37:01 +04:00
Gabriel de Souza Seibel
001442e75e
[NET-493] - Additional data fields to send to account management (#2583)
* Send relays and internet gws count to amb

* Unify usage funcs in logic pkg

* Fix ee build

* Revert "Unify usage funcs in logic pkg"

This reverts commit 28afc91f7e.

* Add more resource metrics on getUsage handler

* Use pro module's function to get server usage on lic val

* Move GetRelays to pro package
2023-10-06 10:22:58 +04:00
Gabriel de Souza Seibel
ad551a0e6a
Set the validation error when err == nil too (#2575) 2023-09-14 16:59:20 +04:00
Gabriel de Souza Seibel
1a1ba1ccf4
[NET-546] Move ee code to ee package, unify ee status and terminology (#2538)
* Move ee code to ee package and unify ee status to IsPro

* Consolidate naming for paid/professional/enterprise version as "pro". Notes:

- Changes image tags
- Changes build tags
- Changes package names
- Doesn't change links to docs that mention "ee"
- Doesn't change parameters sent to PostHog that mention "ee"

* Revert docker image tag being -pro, back to -ee

* Revert go build tag being pro, back to ee

* Add build tags for some ee content

* [2] Revert go build tag being pro, back to ee

* Fix test workflow

* Add a json tag to be backwards compatible with frontend "IsEE" check

* Add a json tag for the serverconfig struct for IsEE

* Ammend json tag to Is_EE

* fix ee tags

---------

Co-authored-by: Abhishek Kondur <abhi281342@gmail.com>
2023-09-01 07:42:05 +05:30
Renamed from ee/license.go (Browse further)