Skip to content

Commit c19fbc0

Browse files
committed
renumber those chapters
1 parent 56a40e2 commit c19fbc0

13 files changed

Lines changed: 25 additions & 29 deletions

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ In the meantime, pull requests, typofixes, and more substantial feedback + sugge
2727
| [Chapter 8: Going to Town on the MessageBus](chapter_08_all_messagebus.asciidoc) | [![Build Status](https://travis-ci.org/python-leap/code.svg?branch=chapter_08_all_messagebus)](https://travis-ci.org/python-leap/code) |
2828
| [Chapter 9: Commands](chapter_09_commands.asciidoc) | [![Build Status](https://travis-ci.org/python-leap/code.svg?branch=chapter_09_commands)](https://travis-ci.org/python-leap/code) |
2929
| [Chapter 9B: External Events for Integration](chapter_08_all_messagebus.asciidoc) | [![Build Status](https://travis-ci.org/python-leap/code.svg?branch=chapter_08_all_messagebus)](https://travis-ci.org/python-leap/code) |
30-
| [Chapter 10: CQRS](chapter_10_cqrs.asciidoc) | [![Build Status](https://travis-ci.org/python-leap/code.svg?branch=chapter_10_cqrs)](https://travis-ci.org/python-leap/code) |
31-
| [Chapter 11: Dependency Injection](chapter_11_dependency_injection.asciidoc) | [![Build Status](https://travis-ci.org/python-leap/code.svg?branch=chapter_11_dependency_injection)](https://travis-ci.org/python-leap/code) |
30+
| [Chapter 10: CQRS](chapter_11_cqrs.asciidoc) | [![Build Status](https://travis-ci.org/python-leap/code.svg?branch=chapter_11_cqrs)](https://travis-ci.org/python-leap/code) |
31+
| [Chapter 11: Dependency Injection](chapter_12_dependency_injection.asciidoc) | [![Build Status](https://travis-ci.org/python-leap/code.svg?branch=chapter_12_dependency_injection)](https://travis-ci.org/python-leap/code) |
3232
| [Epilogue 1: How do I get there from here?](epilogue_1_how_to_get_there_from_here.asciidoc) | |
3333
| [Appendix B: Project Structure](appendix_project_structure.asciidoc) | [![Build Status](https://travis-ci.org/python-leap/code.svg?branch=appendix_project_structure)](https://travis-ci.org/python-leap/code) |
3434
| [Appendix C: A major infrastructure change, made easy](appendix_csvs.asciidoc) | [![Build Status](https://travis-ci.org/python-leap/code.svg?branch=appendix_csvs)](https://travis-ci.org/python-leap/code) |

appendix_bootstrap.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NOTE: placeholder chapter, under construction
66
Congratulations on reading an appendix! Not everyone does. And yet we
77
hide so much good stuff in here...
88

9-
OK at the end of <<chapter_11_dependency_injection>> we'd left a slightly
9+
OK at the end of <<chapter_12_dependency_injection>> we'd left a slightly
1010
ugly thing -- there's a circular dependency between _flask_app.py_ and
1111
_redis_pubsub.py_. Also we had some duplication of boilerplate setup/init
1212
code in those two entrypoints, which felt a bit rough.

atlas.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"chapter_07_events_and_message_bus.asciidoc",
2121
"chapter_08_all_messagebus.asciidoc",
2222
"chapter_09_commands.asciidoc",
23-
"chapter_09B_external_events.asciidoc",
24-
"chapter_10_cqrs.asciidoc",
25-
"chapter_11_dependency_injection.asciidoc",
23+
"chapter_10_external_events.asciidoc",
24+
"chapter_11_cqrs.asciidoc",
25+
"chapter_12_dependency_injection.asciidoc",
2626

2727
"epilogue_1_how_to_get_there_from_here.asciidoc",
2828

book.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ include::chapter_08_all_messagebus.asciidoc[]
4242

4343
include::chapter_09_commands.asciidoc[]
4444

45-
include::chapter_09B_external_events.asciidoc[]
45+
include::chapter_10_external_events.asciidoc[]
4646

47-
include::chapter_10_cqrs.asciidoc[]
47+
include::chapter_11_cqrs.asciidoc[]
4848

49-
include::chapter_11_dependency_injection.asciidoc[]
49+
include::chapter_12_dependency_injection.asciidoc[]
5050

5151
include::appendix_project_structure.asciidoc[]
5252

chapter_03_abstractions.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ so that's our functional core. The service layer that we build around it
601601
and we use dependency injection to provide those services with stateful
602602
components, so we can still unit test them.
603603
604-
See <<chapter_11_dependency_injection>> for more exploration of making our
604+
See <<chapter_12_dependency_injection>> for more exploration of making our
605605
dependency injection more explicit and centralised.
606606
******************************************************************************
607607

chapter_04_service_layer.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ Whenever we find ourselves reaching for them, we often see it as an indication
457457
that something is missing from our design. You'll see a good example of that
458458
in <<chapter_07_events_and_message_bus>> when we mock out an email-sending
459459
module, but eventually we replace it with an explicit bit of dependency injection.
460-
That's discussed in <<chapter_11_dependency_injection>>.
460+
That's discussed in <<chapter_12_dependency_injection>>.
461461
462462
Regarding the definition of fakes vs mocks, the short but simplistic answer is:
463463
@@ -1162,7 +1162,7 @@ require any change to our service layer or domain layer!
11621162
TIP: If you decide you want to build a read-only endpoint for retrieving allocation
11631163
info, just do the simplest thing that can possibly work (TM), which is
11641164
`repo.get()` right in the flask handler. We'll talk more about reads vs
1165-
writes in <<chapter_10_cqrs>>.
1165+
writes in <<chapter_11_cqrs>>.
11661166
11671167
******************************************************************************
11681168

chapter_07_events_and_message_bus.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def test_sends_email_on_out_of_stock_error():
128128

129129
NOTE: If you find yourself using `mock.patch` to test external dependencies
130130
at the service layer, you should be aware that Other Testing Options Are
131-
Available (TM). See <<chapter_11_dependency_injection>>.
131+
Available (TM). See <<chapter_12_dependency_injection>>.
132132

133133

134134
//TODO (DS): Do we *really* need to see this mocky test? Why not skip straight

chapter_09_commands.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def allocate_endpoint():
196196
----
197197
====
198198

199-
It's the same wart we've drawn attention to before. In <<chapter_10_cqrs>>
199+
It's the same wart we've drawn attention to before. In <<chapter_11_cqrs>>
200200
we'll look at a way of separating out command handling from read requests.
201201

202202

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[[chapter_08B_external_events]]
1+
[[chapter_10_external_events]]
22
== Event-driven Architecture: Using Events To Integrate Microservices
33

44
NOTE: Chapter under construction.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[[chapter_10_cqrs]]
1+
[[chapter_11_cqrs]]
22
== Command-Query Responsibility Separation (CQRS)
33

44
//TODO get rid of bullets

0 commit comments

Comments
 (0)