Commit Graph

69 Commits

Author SHA1 Message Date
Jack Kavanagh
a15d0864a7
handle unreachable url (#4097) 2021-10-12 17:35:29 +00:00
Opender Singh
7ffc391428
add eslint rules for semi colons (#3989)
* add rules for semi colons

* run lint fix

* remove invalid eslint disable
2021-09-01 10:50:26 -04:00
David Marby
665abdcedc
Skip migrating collections that has a missing remote project instead of cancelling the migration (#3973) 2021-08-30 18:18:21 +02:00
Dimitri Mitropoulos
7f7b9f5614
renames base project to default project in code and copy (#3939)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-08-25 12:51:40 +12:00
Opender Singh
774a8dc792
Space -> Project rename & update code-references (#3928) 2021-08-20 11:12:36 -04:00
Dimitri Mitropoulos
6e5f051902
Space Sync Error improvement (#3923) 2021-08-20 07:49:56 -04:00
Opender Singh
6a1abbf3db
Migrate collections into their remote space (#3876)
* initial implementation

* take vcs as a parameter (so it's easier to mock and test)

* update console log and exit early if not logged in

* add unit tests for migration

* add async filter and replace vcs find by root document

* lint fix

* fix memory driver and add test for hasProjectForRootDocument

* setup check on interval

* move migration logic and interval from main process to render process, because session state and a VCS instance dont work in the main process yet

* update test

* replace constructor with static class creator

* replace interval with login logout hook

* remove effect helpers

* empty commit to trigger CI
2021-08-10 23:35:05 +00:00
Opender Singh
f48cef02bd
Update some ESLint rules (#3883) 2021-08-08 05:08:56 +00:00
Opender Singh
be2c347cf1
Pull a project into the correct space (#3873)
* use selector and improve types

* Loading remote projects now requires a team id; it is no longer optional

* activate with workspace or workspace id

* extract helper

* normalize graphql return type for a remote project to include the team

* pull into the space as defined by the project team id, not by the active space. If the space doesn't exist, create it

* use helper

* make testing easier by putting the active space name as the first breadcrumb

* fix tests

* add the active space into the title

* refactor and add tests

* remove todo
2021-08-05 23:30:31 +00:00
Opender Singh
37815afd2e
Duplicate from dashboard and from settings (#3820) 2021-07-28 21:49:02 +00:00
Opender Singh
9eba2867a3
Create VCS instance even if no active workspace (#3836) 2021-07-26 15:18:12 +02:00
Opender Singh
7abde2a017
Ensure a base space always exists (+ fix gRPC sub-environments) (#3819) 2021-07-26 00:49:34 +00:00
Dimitri Mitropoulos
0178533e52
Feat/eslint import order (#3782) 2021-07-23 11:04:56 +12:00
Opender Singh
b7ca6366d0
git clone into the active space (#3775) 2021-07-20 01:05:08 +00:00
Opender Singh
3e8b5b1c20
Force to design workspace when coming from git (#3774) 2021-07-05 21:22:27 +12:00
Opender Singh
837cadebaf
Remove the need for an active workspace to always exist (#3494) 2021-06-30 07:47:17 +00:00
Opender Singh
5c32700344
ensure teamId is sent for push and pull (#3477)
* ensure teamId is provided for push and pull

* refactor

* Fix tests

* fix build

* fix lint

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-06-26 07:32:29 +12:00
Opender Singh
611d73804f
Automatically enable sync for collections created in a remote space (#3474) 2021-06-22 20:45:30 +00:00
Dimitri Mitropoulos
c0412b1092
use isWorkspace guards (#3481) 2021-06-17 09:05:31 +12:00
Dimitri Mitropoulos
b5fe435710
have and use guards for all models (#3480) 2021-06-16 14:19:00 -05:00
Opender Singh
58160e82bc
Filter remote collections by the active space (#3456)
Co-authored-by: David Marby <david@dmarby.se>
2021-06-15 04:21:06 +00:00
Opender Singh
2471147642
🧹 Convert VCS to named export and rename file (#3471)
* rename file from index.ts -> vcs.ts

* convert to named export

* fix jest.mock path for moved file

* update class mock

* update mocked function
2021-06-15 01:28:44 +12:00
David Marby
3362f30de6
Make _getOrCreateRemoteProject able to specify what team the project should belong to (#3462)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-06-11 14:54:48 +12:00
Opender Singh
f625b34a77
Fetch and store remote spaces (#3441)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-06-04 19:20:16 +12:00
David Marby
0d02db0679
Make it possible to get remote projects filtered by team (#3445) 2021-06-03 22:44:52 +02:00
Opender Singh
d619b8d84e
convert strings to a single object (#3432) 2021-06-01 08:52:41 -04:00
Opender Singh
d7b630f17b
Add formatting ESLint rules (#3425)
* add rules

* run lint:fix

* quick manual fix for lint errors

* indent fix

* add jsx prop multiline

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-05-27 14:00:32 -04:00
Josh Soref
9006babd38
fix spelling (#2976) 2021-05-25 12:16:43 -04:00
Dimitri Mitropoulos
6e073c8a38
use same array-type rule, project-wide (#3395) 2021-05-19 08:32:18 +12:00
Dimitri Mitropoulos
5f4c19da35
[TypeScript] Phase 1 & 2 (#3370)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 18:35:00 +12:00
Opender Singh
3b2306adb2
Improve git clone behavior when working with repositories with existing files (#3247) 2021-04-05 11:50:55 -04:00
Dimitri Mitropoulos
45c210eb41
SSH/SCP/HTTPS git URLs with/without .git suffix; update isomorphic-git
Co-authored-by: Opender Singh <opender94@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-01 14:36:11 +13:00
Opender Singh
2c9bffd84c
Rename Workspace verbiage (#3145) 2021-03-04 19:09:34 +01:00
Opender Singh
8e7c85c5ff
Add pull dropdown to homepage (#3074) 2021-02-12 14:52:43 +13:00
David Marby
09e910df57
Stop automatically appending .git to git repository URLs (#3054) 2021-02-09 09:17:47 +01:00
Opender Singh
1fe337dd2d
Sync & Export support for ProtoDirectory (#3014) 2021-01-25 16:27:36 +13:00
Opender Singh
4a9235f10f
Add GrpcRequest and ProtoFile as accepted models for git sync (#2846) 2020-11-24 14:31:09 +13:00
David Marby
17ea1b1812
Add the ability to delete synced workspaces from the API (#2795) 2020-11-09 23:56:13 +01:00
David Marby
edcfcf5cef
Beta sync fixes (#2753)
* Fix trailing whitespace in vcs

* Add logging to sync graphql queries

* Don't remotely create a sync project when opening the share dialog

* Fix pulling workspaces with a missing default branch

* Fix the sync merge modal

* Fix workspaces dissapearing when switching to an empty default branch
2020-10-21 12:42:36 +02:00
Opender Singh
e521d0651d
Fix hard-coded path in electron mock (#2565)
* Fix hard-coded path in electron mock

* Disable failfast strategy

* Remove path mocking, as it is no longer needed becasuse CI runs on all OSs, and it causes issues with database initialization for unit testing

* Update

* Update packages/insomnia-app/app/sync/git/__tests__/mem-plugin.test.js

Co-authored-by: David Marby <david@dmarby.se>

* Update packages/insomnia-app/app/sync/git/__tests__/mem-plugin.test.js

Co-authored-by: David Marby <david@dmarby.se>

Co-authored-by: David Marby <david@dmarby.se>
2020-08-30 23:17:15 +12:00
Opender Singh
b29be4ac2b
Handle silent failures for git push operation (#2432) 2020-07-28 11:48:55 +12:00
Gregory Schier
3883dc6feb
POC for Unit Test UI (#2315)
* Start working on insomnia-testing package to generate Mocha code

* Moved some things around

* Integration tests and ability to run multiple files

* Fix integration tests

* Rename runSuite to runMochaTests

* Add types for test results

* Fix lint errors

* Play with Chia assertions

* insomnia and chai globals, plus a bunch of improvements

* Stub chai and axios Flow types

* Ability to reference requests by ID

* Fix chai flow-typed location

* Address PR comments (small tweaks)

* Basic UI going

* Lots and lots and lots

* Pretty-much done with the unit test UI

* Minor CSS tweak

* Activity bar triple toggle and more

* Minor tweak

* Unit Test and Suite deletion

* Bump Designer version

* Fix eslint stuff

* Fix insomnia-testing tests

* Fix tests

* lib@2.2.9

* Remove tests tab from response pane

* Hook up Insomnia networking

* Fix linting

* Bump version for alpha

* Remove extra ActivityToggleSwitch

* Remove unused import

* Add test:pre-release script that excludes CLI tests

* Less repetition

* Clean some things up

* Tweaks after self-cr

* Undo request ID tag

* Swap out switch for new activity toggle component

* Extra check

* Remove dead code

* Delete dead test

* Oops, revert example code

* PR feedback

* More PR comment addresses
2020-07-01 14:17:14 -07:00
Opender Singh
43e8429b21
Rollback pending changes in git sync commit dialog (#2226) 2020-06-04 08:48:47 +12:00
Opender Singh
fae26d65ac
Fix windows tests (#2227) 2020-05-29 10:45:37 +12:00
Opender Singh
040641f5fc
Git sync commit on Windows always shows all objects as unversioned (#2215) 2020-05-29 06:44:17 +12:00
Opender Singh
5cf2f59e46
Git clone fails on Windows. This fixes it. (#2194)
Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-05-29 06:13:13 +12:00
Opender Singh
08534699e7
Fix GitLab sync (#2162)
* Down with hardcoded slugs

* Type the error modal

* Set username

* Update

* Update

* add username

* Revert .flowconfig

* Address comments

* Simplify

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-05-15 14:11:06 +12:00
Opender Singh
443d6df08d
Initial pass to combine eslint and prettier (#2166) 2020-05-15 10:54:07 +12:00
Gregory Schier
10d61796cc
Some tweaks before launch: (#2060)
* Some tweaks before launch:

- Set GA IDs
- Change git folder to `.insomnia`
- Set gravatar email on update notification

* Fix tests
2020-04-27 13:42:57 -07:00
Gregory Schier
c6a7c4d682 Initial designer merge 2020-04-26 13:33:39 -07:00