WEBVTT

00:02.000 --> 00:08.320
Right now we are using git for version control, and we have also added end to end tests to ensure that

00:08.320 --> 00:10.320
the application is working properly.

00:10.320 --> 00:12.720
So let's put everything to a test.

00:12.880 --> 00:19.880
I'm going to ask the agent to purposefully introduce a bug that will break this application, and this

00:19.880 --> 00:24.720
will allow us to run the end to end test and to ensure that they actually fail if there's something

00:24.720 --> 00:25.880
wrong with the application.

00:26.160 --> 00:33.240
And apart from this, what we also want to do is to revert the changes that are happening right now,

00:33.400 --> 00:39.560
just to make sure that in case something bad happens, we know how to revert to a previously working

00:39.560 --> 00:40.160
version.

00:40.840 --> 00:43.520
So it's saying here I've added a bug.

00:43.520 --> 00:45.000
So let's go ahead and test it out.

00:46.200 --> 00:49.000
And I go back to the categories back to home.

00:49.320 --> 00:53.760
And currently you know the home page is not displaying anything.

00:53.760 --> 00:56.000
So everything has disappeared from the home page.

00:57.160 --> 00:57.440
Okay.

00:57.480 --> 00:59.720
So let's go ahead and run the end to end test.

01:00.980 --> 01:06.220
So now what we're going to see here is also the end to end tests failing.

01:06.460 --> 01:09.540
And I click here skip and continue.

01:10.140 --> 01:15.140
And we're going to get here the HTML report in a different window.

01:15.620 --> 01:17.300
We don't really care about this so much.

01:17.300 --> 01:19.220
So it's absolutely fine for us.

01:20.100 --> 01:24.340
But it's explained here as expected the end to end test fail.

01:25.060 --> 01:25.700
All right.

01:25.700 --> 01:31.300
So in this case we have tested that there's something that doesn't work properly.

01:32.220 --> 01:34.100
Let's see exactly what's happening next.

01:34.620 --> 01:38.780
So it has now fixed the bug by reverting the root path okay.

01:38.940 --> 01:40.260
That's very very nice.

01:40.620 --> 01:44.540
I wanted it to not make any changes altogether.

01:44.540 --> 01:48.140
So this should have allowed us to figure out how to revert these changes altogether.

01:48.380 --> 01:52.780
So I'm going to ask again to introduce a bug that is breaking the application.

01:53.420 --> 01:56.620
So this time it has introduced a different bug.

01:56.820 --> 02:00.020
Of course it would be very nice to manually test it.

02:00.020 --> 02:04.800
tested, run the end to end test to make sure that this bug is indeed as it appears here.

02:06.000 --> 02:08.280
So we see here the flash cards.

02:08.280 --> 02:12.160
We're entering animals, and now the flash card doesn't appear.

02:12.440 --> 02:13.720
So definitely a bug.

02:13.760 --> 02:15.040
Now what can we do?

02:15.240 --> 02:18.440
Well, first of all we could click here on reject.

02:19.040 --> 02:21.360
So that is definitely one option.

02:21.600 --> 02:25.320
We go through the cursor route reject those changes.

02:25.320 --> 02:28.120
And we're going to get back the version that we have.

02:28.560 --> 02:33.480
This particular changes are also available here in Source Components flash card.

02:33.720 --> 02:36.560
And you can see here exactly what has changed.

02:36.560 --> 02:37.800
So this is a comment here.

02:37.800 --> 02:39.240
And we can accept or reject it.

02:39.240 --> 02:44.320
So we can see even at the file level and also at the line level what has changed.

02:44.760 --> 02:45.960
Option number one.

02:46.440 --> 02:52.040
The second option that we have is we have this graphical user interface integration.

02:52.040 --> 02:55.960
If you click on this particular button you're going to see here which changes have been made.

02:55.960 --> 03:01.620
So if you click here on flash card we're going to see here the changes that have been made, and we

03:01.620 --> 03:04.140
can simply click on this button here.

03:04.140 --> 03:08.700
This card changes and if you click on this, this change will go away.

03:08.980 --> 03:11.740
The application will work again just as before.

03:12.420 --> 03:18.980
And third option is to simply ask the agent to discard any changes.

03:18.980 --> 03:25.860
So you can see here discard any changes that are multiple ways on how we can go back to a previously

03:25.860 --> 03:26.940
working version.

03:27.540 --> 03:31.380
And in this case it's going to restore the last commit.

03:31.540 --> 03:36.020
These changes are going to disappear and the application itself should be working again.

03:36.020 --> 03:39.580
So you're going to see here it's working without any issues.

03:39.740 --> 03:45.260
So this is how we can roll back to a specific version in this case to a previous version.

03:45.260 --> 03:49.380
We also have a list of all the commits and all the changes that we made so far.

03:49.540 --> 03:55.540
We can also revert to a specific version if we want to do so, and we can do this relatively easily

03:55.540 --> 03:57.420
by talking directly to the agent.
